|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.ganttchart.GanttChartAnnotationTableDataModel
public class GanttChartAnnotationTableDataModel
A GanttChartAnnotationTableDataModel sets annotations to display on a Gantt chart. The annotations can flag start or finish dates for any task, or they can flag other significant dates within the schedule. The annotations can be marker symbols or labels, each of which must be defined in the data.
Although a GanttChartTableDataModel can define annotations, a GanttChartAnnotationTableDataModel is more flexible because it separates the annotation data from the schedule data and can define multiple annotations for the same task.
GanttChartDataModel
,
GanttChart
Constructor Summary | |
---|---|
GanttChartAnnotationTableDataModel()
Default Constructor |
|
GanttChartAnnotationTableDataModel(javax.swing.table.TableModel newModel)
Constructor with assigned model |
Method Summary | |
---|---|
void |
apply(GanttChartAnnotationTableDataModel 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 GanttChartAnnotateTableDataModel . |
Variable |
getLabelColorVariable()
Returns the data column that was most recently set in the TextColor role by the setLabelColorVariable() method. |
Variable |
getLabelJustificationVariable()
Returns the data column that was most recently set in the Justification role by the setJustificaionVariable() method. |
Variable |
getLabelVariable()
Returns the data column that was most recently set in the Text role by the setLabelVariable() method. |
Variable |
getLocationVariable()
Returns the data column that was most recently set in the Location role by the setLocationVariable() method. |
javax.swing.table.TableModel |
getModel()
Returns the Swing TableModel containing chart data. |
Variable |
getPositionVariable()
Returns the data column that was most recently set in the Position role by the setPositionVariable() method. |
Variable |
getSymbolColorVariable()
Returns the data column that was most recently set in the SymbolColor role by the setSymbolColorVariable() method. |
Variable |
getSymbolVariable()
Returns the data column that was most recently set in the Symbol role by the setSymbolVariable() method. |
Variable |
getTaskVariable()
Returns the data column that was most recently set in the Task role by the setTaskVariable() method. |
int |
hashCode()
Computes the hash code for this GanttChartAnnotateTableDataModel . |
void |
setLabelColorVariable(Variable newVariable)
Specifies a variable containing color values for the text markers. |
void |
setLabelJustificationVariable(Variable newVariable)
Specifies a variable containing justification values for the text. |
void |
setLabelVariable(Variable newVariable)
Specifies a variable containing text string to annotate on the gantt bars. |
void |
setLocationVariable(Variable newVariable)
Specifies a variable containing which gantt box variable value to locate the annotation on. |
void |
setModel(javax.swing.table.TableModel newModel)
Sets Swing TableModel containing chart data. |
void |
setPositionVariable(Variable newVariable)
Specifies a variable containing the date position to place the annotation. |
void |
setSymbolColorVariable(Variable newVariable)
Specifies a variable containing color values for the marker symbols. |
void |
setSymbolVariable(Variable newVariable)
Specifies the Variable that contains values denoting which symbol to draw. |
void |
setTaskVariable(Variable newVariable)
Specifies a variable containing the task variable value in which to annotate (draw) the marker and text on. |
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 GanttChartAnnotationTableDataModel()
public GanttChartAnnotationTableDataModel(javax.swing.table.TableModel newModel)
Method Detail |
---|
public void apply(GanttChartAnnotationTableDataModel theOtherModel)
theOtherModel
- properties applied to this instancepublic boolean equals(java.lang.Object obj)
GanttChartAnnotateTableDataModel
.
The result is true
if and only if the argument is not
null
and is a GanttChartAnnotateTableDataModel
object that has the same
property values as this object.
equals
in class DataModel
obj
- the object to test for equality with this
GanttChartAnnotateTableDataModel
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 setTaskVariable(Variable newVariable)
Define the marker to be drawn with the setSymbolVariable() and define the text to be drawn with the setTextVariable() method calls.
newVariable
- contains task variable values to annotate.getTaskVariable()
public Variable getTaskVariable()
setTaskVariable(com.sas.graphics.components.Variable)
public void setLocationVariable(Variable newVariable)
Valid values for this variable are:
newVariable
- contains where to locate the annotationgetLocationVariable()
public Variable getLocationVariable()
setLocationVariable(com.sas.graphics.components.Variable)
public void setPositionVariable(Variable newVariable)
Note: This variable must be the same format as the chart's Start and Finish Variables
and have a valid date format specifed on the newVariable.
Examples of valid date formats are:
newVariable
- contains the date position to place the annotation
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getPositionVariable()
public Variable getPositionVariable()
setPositionVariable(com.sas.graphics.components.Variable)
public void setSymbolVariable(Variable newVariable)
SYMBOL_CIRCLE
SYMBOL_PLUS
SYMBOL_TRIANGLE
SYMBOL_SQUARE
SYMBOL_X
SYMBOL_TRIANGLE_DOWN
SYMBOL_DIAMOND
SYMBOL_ASTER
SYMBOL_CIRCLE_BOLD
SYMBOL_PLUS_BOLD
SYMBOL_TRIANGLE_BOLD
SYMBOL_SQUARE_BOLD
SYMBOL_X_BOLD
SYMBOL_TRIANGLE_DOWN_BOLD
SYMBOL_DIAMOND_BOLD
SYMBOL_ASTER_BOLD
SYMBOL_CIRCLE_FILLED
SYMBOL_CROSS_FILLED
SYMBOL_TRIANGLE_FILLED
SYMBOL_SQUARE_FILLED
SYMBOL_SALTIRE_FILLED
SYMBOL_TRIANGLE_DOWN_FILLED
SYMBOL_DIAMOND_FILLED
SYMBOL_STAR_FILLED
SYMBOL_VENUS
SYMBOL_MARS
SYMBOL_EARTH
SYMBOL_VENUS_BOLD
SYMBOL_MARS_BOLD
SYMBOL_VENUS_FILLED
SYMBOL_MARS_FILLED
SYMBOL_EARTH_FILLED
SYMBOL_HORIZONTAL
SYMBOL_VERTICAL
SYMBOL_HORIZONTAL_BOLD
SYMBOL_VERTICAL_BOLD
SYMBOL_RECTANGLE_HORIZONTAL_FILLED
SYMBOL_RECTANGLE_VERTICAL_FILLED
SYMBOL_PLUS_X
SYMBOL_CIRCLE_PLUS
SYMBOL_CI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BOL_CHAIN_BOLD
SYMBOL_ARROW_BOLD
SYMBOL_TRIANGLE_LEFT_FILLED
SYMBOL_TRIANGLE_RIGHT_FILLED
SYMBOL_HOME_FILLED
SYMBOL_HOME_DOWN_FILLED
SYMBOL_DIAMOND_NARROW_FILLED
SYMBOL_HOME_NARROW_FILLED
SYMBOL_HOME_NARROW_DOWN_FILLED
SYMBOL_FLAG_FILLED
SYMBOL_ARROW_WIDE_FILLED
SYMBOL_ARROW_WIDE_DOWN_FILLED
SYMBOL_CIRCLE_ARROW_WIDE_FILLED
SYMBOL_CIRCLE_ARROW_WIDE_DOWN_FILLED
SYMBOL_CIRCLE_TRIANGLE_FILLED
SYMBOL_CIRCLE_TRIANGLE_DOWN_FILLED
SYMBOL_CIRCLE_ODD_FILLED
SYMBOL_HOURGLASS_FILLED
SYMBOL_HEART_FILLED
SYMBOL_CLUB_FILLED
SYMBOL_SPADE_FILLED
SYMBOL_ARROW_NARROW_FILLED
SYMBOL_ARROW_NARROW_DOWN_FILLED
SYMBOL_ARROW_NARROW_LEFT_FILLED
SYMBOL_ARROW_NARROW_RIGHT_FILLED
SYMBOL_FEMALE_FIGURE_FILLED
SYMBOL_MALE_FIGURE_FILLED
SYMBOL_FEMALE_FIGURE
SYMBOL_MALE_FIGURE
SYMBOL_RECTANGLE_HORIZONTAL
SYMBOL_RECTANGLE_VERTICAL
SYMBOL_ARROW_DOWN
SYMBOL_ARROW_LEFT
SYMBOL_ARROW_RIGHT
SYMBOL_ARROW_DOWN_BOLD
SYMBOL_ARROW_LEFT_BOLD
SYMBOL_ARROW_RIGHT_BOLD
SYMBOL_ARROW_NARROW
SYMBOL_ARROW_NARROW_DOWN
SYMBOL_ARROW_NARROW_LEFT
SYMBOL_ARROW_NARROW_RIGHT
SYMBOL_CLUB
SYMBOL_SPADE
SYMBOL_HEXAGON
SYMBOL_HEXAGON_VERTICAL
SYMBOL_HEXAGON_FILLED
SYMBOL_HEXAGON_VERTICAL_FILLED
newVariable
- Variable containing valid values for symbols.getSymbolVariable()
public Variable getSymbolVariable()
setSymbolVariable(com.sas.graphics.components.Variable)
public void setLabelVariable(Variable newVariable)
newVariable
- contains text strings to annotategetLabelVariable()
public Variable getLabelVariable()
setLabelVariable(com.sas.graphics.components.Variable)
public void setSymbolColorVariable(Variable newVariable)
newVariable
- contains marker symbol colorgetSymbolColorVariable()
public Variable getSymbolColorVariable()
setSymbolColorVariable(com.sas.graphics.components.Variable)
public void setLabelColorVariable(Variable newVariable)
newVariable
- contains text marker colorgetLabelColorVariable()
public Variable getLabelColorVariable()
setLabelColorVariable(com.sas.graphics.components.Variable)
public void setLabelJustificationVariable(Variable newVariable)
newVariable
- contains where to justify the textgetLocationVariable()
,
setLabelVariable(com.sas.graphics.components.Variable)
,
setPositionVariable(com.sas.graphics.components.Variable)
public Variable getLabelJustificationVariable()
setLabelJustificationVariable(com.sas.graphics.components.Variable)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |