|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.ganttchart.GanttChartBreakTimeTableDataModel
public class GanttChartBreakTimeTableDataModel
A GanttChartBreaktimeTableDataModel sets breaktimes on a Gantt chart. The breaks can be different for individual task bars and the calendar variable found here is mapped to the GanttChartTableDataModel.setCalendarVariable() set on the schedule table.
GanttChartDataModel
,
GanttChart
Constructor Summary | |
---|---|
GanttChartBreakTimeTableDataModel()
Default Constructor |
|
GanttChartBreakTimeTableDataModel(javax.swing.table.TableModel newModel)
Constructor with assigned model |
Method Summary | |
---|---|
void |
apply(GanttChartBreakTimeTableDataModel theOtherModel)
Utility method to convey properties contained in "theOtherModel" to this object. |
boolean |
equals(java.lang.Object obj)
Determines whether another object is equal to this GanttChartBreaktimeTableDataModel . |
Variable |
getCalendarVariable()
Returns the data column that was most recently set in the calendar role by the setCalendarVariable() method. |
Variable |
getDurationVariable()
Returns the data column that was most recently set in the Duration role by the setDurationVariable() method. |
Variable |
getFinishVariable()
Returns the data column that was most recently set in the finish role by the setStartVariable() method. |
javax.swing.table.TableModel |
getModel()
Returns the Swing TableModel containing chart data. |
Variable |
getStartVariable()
Returns the data column that was most recently set in the start role by the setStartVariable() method. |
int |
hashCode()
Computes the hash code for this GanttChartAnnotateTableDataModel . |
void |
setCalendarVariable(Variable newVariable)
Specifies a variable containing the calendar variable value in which to draw breaks in schedule. |
void |
setDurationVariable(Variable newVariable)
Duration of a break. |
void |
setFinishVariable(Variable newVariable)
Specifies a variable containing the finish variable value in which to draw breaks in schedule. |
void |
setModel(javax.swing.table.TableModel newModel)
Sets Swing TableModel containing chart data. |
void |
setStartVariable(Variable newVariable)
Specifies a variable containing the start variable value in which to draw breaks in schedule. |
Methods inherited from class com.sas.graphics.components.DataModel |
---|
apply, getLocale, getRulesContext, getSortStrategy, setLocale, setRulesContext, setSortStrategy |
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Constructor Detail |
---|
public GanttChartBreakTimeTableDataModel()
public GanttChartBreakTimeTableDataModel(javax.swing.table.TableModel newModel)
Method Detail |
---|
public void apply(GanttChartBreakTimeTableDataModel theOtherModel)
theOtherModel
- properties applied to this instancepublic boolean equals(java.lang.Object obj)
GanttChartBreaktimeTableDataModel
.
The result is true
if and only if the argument is not
null
and is a GanttChartBreaktimeTableDataModel
object that has the same
property values as this object.
equals
in class DataModel
obj
- the object to test for equality with this
GanttChartBreaktimeTableDataModel
true
if the objects are the same;
false
otherwise.public int hashCode()
GanttChartAnnotateTableDataModel
.
hashCode
in class DataModel
public void setModel(javax.swing.table.TableModel newModel)
newModel
- containing chart datagetModel()
public javax.swing.table.TableModel getModel()
setModel(javax.swing.table.TableModel)
public void setStartVariable(Variable newVariable)
Note: This variable must be the same format as the chart's schedule EarlyStart and EarlyFinish Variables
and have a valid date format specifed on the newVariable.
Examples of valid date formats are:
newVariable
- contains the date position to start a break time.
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getStartVariable()
public Variable getStartVariable()
setStartVariable(com.sas.graphics.components.Variable)
public void setFinishVariable(Variable newVariable)
Note: This variable must be the same format as the chart's schedule EarlyStart and EarlyFinish Variables
and have a valid date format specifed on the newVariable.
Examples of valid date formats are:
newVariable
- contains the date position to finish a break time.
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getFinishVariable()
public Variable getFinishVariable()
setFinishVariable(com.sas.graphics.components.Variable)
public void setDurationVariable(Variable newVariable)
newVariable
- duration value for a break.getDurationVariable()
public Variable getDurationVariable()
setDurationVariable(com.sas.graphics.components.Variable)
public void setCalendarVariable(Variable newVariable)
newVariable
- contains the calendar for a break time.getCalendarVariable()
public Variable getCalendarVariable()
setCalendarVariable(com.sas.graphics.components.Variable)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |