|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.ganttchart.GanttChartTableDataModel
public class GanttChartTableDataModel
A GanttChartTableDataModel encapsulates relational data from a javax.swing.table.TableModel and maps the TableModel's data columns onto a GanttChart component. To do the mapping, it assigns variable roles to the data columns that will be used in the graph, and the assigned roles determine the data display.
Generally, the GanttChartTableDataModel is used to access a project's list of tasks and its significant schedule dates, such as the project's predicted start and finish dates, actual start and finish dates, and baseline dates.
The GanttChartTableDataModel can also define annotations to display on the chart. The annotations can be marker symbols or text labels and can include the color values to use for the annotation display.
Annotations that are defined in a GanttChartTableDataModel are limited to one annotation per task. To assign multiple annotations per task, or to separate annotation data from schedule data, create a separate data source for the annotations and define them with a GanttChartAnnotationTableDataModel. NOTE: These annotations are not included in the public api and are experimental and subject to change in future releases.
GanttChartDataModel
,
GanttChart
Constructor Summary | |
---|---|
GanttChartTableDataModel()
Default Constructor |
|
GanttChartTableDataModel(javax.swing.table.TableModel newModel)
Constructor with assigned model |
Method Summary | |
---|---|
void |
apply(GanttChartTableDataModel 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 GanttChartTableDataModel . |
Variable |
getActualFinishVariable()
Returns the data column that was most recently set in the ActualFinish role by the setActualFinishVariable() method. |
Variable |
getActualStartVariable()
Returns the data column that was most recently set in the ActualStart role by the setActualStartVariable() method. |
Variable |
getAnnotationLabelColorVariable()
Returns the data column that was most recently set in the AnnotationLabelColor role by the setAnnotationLabelColorVariable() method. |
Variable |
getAnnotationLabelJustificationVariable()
Returns the data column that was most recently set in the AnnotationLabelJustification role by the setannotationLabelJustificationVariable() method. |
Variable |
getAnnotationLabelVariable()
Returns the data column that was most recently set in the AnnotationLabel role by the setAnnotationLabelVariable() method. |
Variable |
getAnnotationLocationVariable()
Returns the data column that was most recently set in the AnnotationLocation role by the setAnnotationLocationVariable() method. |
Variable |
getAnnotationPositionVariable()
Returns the data column that was most recently set in the AnnotationPosition role by the setAnnotationPositionVariable() method. |
Variable |
getAnnotationSymbolColorVariable()
Returns the data column that was most recently set in the AnnotationSymbolColor role by the setAnnotationSymbolColorVariable() method. |
Variable |
getAnnotationSymbolVariable()
Returns the data column that was most recently set in the AnnotationSymbol role by the setAnnotationSymbolVariable() method. |
GanttChartAnnotationTableDataModel |
getAnnotationTableDataModel()
|
Variable |
getAnnotationTaskVariable()
Returns the data column that was most recently set in the AnnotationTask role by the setAnnotationTaskVariable() method. |
Variable[] |
getAuxiliaryVariable()
Returns the array of data columns that was most recently set by the setAuxiliaryVariable() method. |
Variable |
getBaselineFinishVariable()
Returns the data column that was most recently set in the BaselineFinish role by the setBaselineFinishVariable() method. |
Variable |
getBaselineStartVariable()
Returns the data column that was most recently set in the BaselineStart role by the setBaselineStartVariable() method. |
GanttChartBreakTimeTableDataModel |
getBreakTimeTableDataModel()
|
Variable |
getCalendarVariable()
Returns the data column that was most recently set in the calendar role by the setCalendarVariable() method. |
Variable |
getColorVariable()
Returns the data column that was most recently set in the Color role by the setColorVariable() method. |
Variable |
getCustomSchedule1FinshVariable()
Returns the data column that was most recently set in the Custom Schedule 1 Finish role. |
Variable |
getCustomSchedule1StartVariable()
Returns the data column that was most recently set in the CustomSchedule1Start role. |
Variable |
getCustomSchedule2FinshVariable()
Returns the data column that was most recently set in the Custom Schedule 2 Finish role. |
Variable |
getCustomSchedule2StartVariable()
Returns the data column that was most recently set in the Custom Schedule 2 Start role. |
Variable[] |
getDataTipVariable()
Returns the array of data columns that was most recently set by the setDataTipVariable() method. |
Variable |
getDescriptionVariable()
Returns the data column that was most recently set in the Description role by the setDescriptionVariable() method. |
Variable |
getDrawBarVariable()
Returns the data column that was most recently set in the DrawBar role by the setDrawBarVariable() method. |
Variable |
getDurationVariable()
Returns the data column that was most recently set in the Duration role by the setDurationVariable() method. |
Variable |
getEarlyFinishVariable()
Returns the data column that was most recently set in the EarlyFinish role by the setEarlyFinishVariable() method. |
Variable |
getEarlyStartVariable()
Returns the data column that was most recently set in the EarlyStart role by the setEarlyStartVariable() method. |
Variable |
getLateFinishVariable()
Returns the data column that was most recently set in the LateFinish role by the setLateFinishVariable() method. |
Variable |
getLateStartVariable()
Returns the data column that was most recently set in the LateStart role by the setLateStartVariable() method. |
javax.swing.table.TableModel |
getModel()
Returns the Swing TableModel containing chart data. |
Variable |
getParentVariable()
Returns the data column that was most recently set in the Parent role by the setParentVariable() method. |
Variable |
getReplaceWithChildrenVariable()
Returns the data column that was most recently set in the ReplaceWithChildren role by the setReplaceWithChildrenVariable() method. |
Variable |
getResourceFinishVariable()
Returns the data column that was most recently set in the ResourceFinish role by the setResourceFinishVariable() method. |
Variable |
getResourceStartVariable()
Returns the data column that was most recently set in the ResourceStart role by the setResourceStartVariable() method. |
java.lang.String |
getRoot()
Returns the text that is used for the root of a treetable. |
javax.swing.ListSelectionModel |
getSelectionModel()
Returns the ListSelectionModel that indicates which data values are selected. |
Variable |
getStyleByVariable()
Returns the data column that was most recently set in the StyleBy role by the setStyleByVariable() method. |
Variable |
getSuccessorVariable()
Returns the data column that was most recently set in the Successor role by the setSuccessorVariable() method. |
Variable |
getTargetVariable()
Returns the data column that was most recently set in the Target role by the setTargetVariable() 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 GanttChartTableDataModel . |
boolean |
isTime()
Deprecated. use |
void |
setActualFinishVariable(Variable newVariable)
Specifies a variable containing the calendar date work actually ended on an activity. |
void |
setActualStartVariable(Variable newVariable)
Specifies a variable containing the calendar date work actually began on an activity. |
void |
setAnnotationLabelColorVariable(Variable newVariable)
Specifies a variable containing color values for the text used for displaying annotations. |
void |
setAnnotationLabelJustificationVariable(Variable newVariable)
Specifies a String variable whose values identify justification to use for displaying annotations. |
void |
setAnnotationLabelVariable(Variable newVariable)
Specifies a String Variable whose values specify the text to use for displaying annotations. |
void |
setAnnotationLocationVariable(Variable newVariable)
Specifies a String variable whose values identify a date-axis location to use for displaying annotations. |
void |
setAnnotationPositionVariable(Variable newVariable)
Specifies a variable whose values identify a specific date-axis location to use for displaying annotations. |
void |
setAnnotationSymbolColorVariable(Variable newVariable)
Specifies a variable containing color values for the marker symbols used for displaying annotations. |
void |
setAnnotationSymbolVariable(Variable newVariable)
Specifies a Variable whose values specify the symbol to use for displaying annotations. |
void |
setAnnotationTableDataModel(GanttChartAnnotationTableDataModel annotationTableDataModel)
Sets the annotation data model that will be used to set annotations on the chart. |
void |
setAnnotationTaskVariable(Variable newVariable)
Specifies a variable whose values identify the task bars to use for displaying annotations on the chart. |
void |
setAuxiliaryVariable(Variable[] newVariables)
Specifies an array of Variables that are included among the variables that are passed in the events on the Gantt bars. |
void |
setBaselineFinishVariable(Variable newVariable)
Specifies a variable containing calendar date of when work is scheduled to end on an activity. |
void |
setBaselineStartVariable(Variable newVariable)
Specifies variable containing the calendar date when work was scheduled to begin on an activity. |
void |
setBreakTimeTableDataModel(GanttChartBreakTimeTableDataModel breakTimeTableDataModel)
Sets the break time data model that will be used to |
void |
setCalendarVariable(Variable newVariable)
Specifies a variable containing the calendar variable value in which to draw breaks in schedule. |
void |
setColorVariable(Variable newVariable)
Specifies a variable containing the color values for the bars. |
void |
setCustomSchedule1FinishVariable(Variable newVariable)
Specifies the variable containing Custom Schedule 1 constraint finish dates. |
void |
setCustomSchedule1StartVariable(Variable newVariable)
Specifies the variable containing Custom Schedule 1 constraint finish dates. |
void |
setCustomSchedule2FinishVariable(Variable newVariable)
Specifies the variable containing Custom Schedule 2 constraint finish dates. |
void |
setCustomSchedule2StartVariable(Variable newVariable)
Specifies the variable containing Custom Schedule 2 constraint finish dates. |
void |
setDataTipVariable(Variable[] newVariables)
Specifies an array of Variables to be displayed in the data tip. |
void |
setDescriptionVariable(Variable newVariable)
Specifies a variable containing text to be displayed in the TreeTable instead of the actual Task variable values. |
void |
setDrawBarVariable(Variable newVariable)
Specifies a numeric Variable for determining whether chart bars are drawn. |
void |
setDurationVariable(Variable newVariable)
Duration of an activity. |
void |
setEarlyFinishVariable(Variable newVariable)
Specifies a variable containing the earliest possible point in time on which the uncompleted portions of an activity can finish, based on the network logic and any schedule constraints. |
void |
setEarlyStartVariable(Variable newVariable)
Specifies a variable containing the earliest possible point in time on which the uncompleted portions of an activity can start, based on the network logic and any schedule constraints. |
void |
setLateFinishVariable(Variable newVariable)
Specifies the latest possible point in time that an activity can be completed without delaying a specific milestone (usually the project finish date). |
void |
setLateStartVariable(Variable newVariable)
Specifies variable contining the latest possible point in time that an activity can begin without delaying a specified milestone (ususally the project finish date). |
void |
setModel(javax.swing.table.TableModel newModel)
Sets Swing TableModel containing chart data. |
void |
setParentVariable(Variable newVariable)
Specifies a variable containing the parent value for each task and is used in displaying hierarchial tasks on the task axis. |
void |
setReplaceWithChildrenVariable(Variable newVariable)
Specifies a variable whose values let the chart know if it is to draw the children of this task on this row instead of drawing the task bar. |
void |
setResourceFinishVariable(Variable newVariable)
Specifies the variable containing resource constraint finish dates. |
void |
setResourceStartVariable(Variable newVariable)
Specifies variable containing resource constraint start date. |
void |
setRoot(java.lang.String newRootText)
Identifies the data value for the task in the tree root position in a hierarchical treetable. |
void |
setSelectionModel(javax.swing.ListSelectionModel newModel)
Sets the ListSelectionModel which indicates which data values are selected. |
void |
setStyleByVariable(Variable newVariable)
Specifies Style By Variable for coloring chart bars. |
void |
setSuccessorVariable(Variable newVariable)
Specifies a successor Variable for an activity. |
void |
setTargetVariable(Variable newVariable)
Specifies a variable containing the target dates Note: All chart's date Variables must be in the same date format and have a valid date format specifed on the Variable. |
void |
setTaskVariable(Variable newVariable)
Specifies Task Variable for chart bars. |
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 GanttChartTableDataModel()
public GanttChartTableDataModel(javax.swing.table.TableModel newModel)
Method Detail |
---|
public void apply(GanttChartTableDataModel theOtherModel)
theOtherModel
- properties applied to this instancepublic void setRoot(java.lang.String newRootText)
newRootText
- string to be used for root nodegetRoot()
public java.lang.String getRoot()
setRoot(java.lang.String)
public void setAnnotationTableDataModel(GanttChartAnnotationTableDataModel annotationTableDataModel)
annotationTableDataModel
- The annotationTableDataModel to set.public GanttChartAnnotationTableDataModel getAnnotationTableDataModel()
public void setBreakTimeTableDataModel(GanttChartBreakTimeTableDataModel breakTimeTableDataModel)
breakTimeTableDataModel
- The break time TableDataModel to set.public GanttChartBreakTimeTableDataModel getBreakTimeTableDataModel()
public boolean equals(java.lang.Object obj)
GanttChartTableDataModel
.
The result is true
if and only if the argument is not
null
and is a GanttChartTableDataModel
object that has the same
property values as this object.
equals
in class DataModel
obj
- the object to test for equality with this
GanttChartTableDataModel
true
if the objects are the same;
false
otherwise.public int hashCode()
GanttChartTableDataModel
.
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 setSelectionModel(javax.swing.ListSelectionModel newModel)
newModel
- the ListSelectionModel containing the indicies of the selected data values.
java.lang.IllegalArgumentException
- if newModel
is null
.getSelectionModel()
public javax.swing.ListSelectionModel getSelectionModel()
setSelectionModel(javax.swing.ListSelectionModel)
public boolean isTime()
GanttChart.isDateAxisSASTime()
,
GanttChart.isDateAxisSASDate()
,
GanttChart.isDateAxisSASDateTime()
public void setCalendarVariable(Variable newVariable)
newVariable
- contains the calendar for a break time.getCalendarVariable()
public Variable getCalendarVariable()
setCalendarVariable(com.sas.graphics.components.Variable)
public void setTaskVariable(Variable newVariable)
newVariable
- contains the task variable for each activity.getTaskVariable()
public Variable getTaskVariable()
setTaskVariable(com.sas.graphics.components.Variable)
public void setStyleByVariable(Variable newVariable)
LegendModel.setCatagories(String[])
method
must be used to associate the legend entries with the Gantt bars. To establish the association,
each string value passed to setCategories()
must match a value from the StyleBy variable including
and white space.
The following code fragment sets the String variable ActionItems as the
StyleBy variable and defines three values for the legend entries. For the legend to display correctly,
variable ActionItems must contain the values Write Specifications
, Prototype App
, and
Marketing Campaign
.
// Set the StyleBy variable on the GanttChartTableDataModel
dataModel.setStyleByVariable(new Variable("ActionItems"));
// Define values for the legend entries
String legendVals[] = new String[3];
legendVals[0] = "Write Specifications";
legendVals[1] = "Prototype App";
legendVals[2] = "Marketing Campaign";
// Set the entry values on the legend
ganttChartModel.getLegendModel().setCategories(legendVals);
newVariable
- contains the style by variable.getStyleByVariable()
public Variable getStyleByVariable()
setStyleByVariable(com.sas.graphics.components.Variable)
public void setDrawBarVariable(Variable newVariable)
newVariable
- contains a variable for bar drawing.getDrawBarVariable()
public Variable getDrawBarVariable()
setDrawBarVariable(com.sas.graphics.components.Variable)
public Variable getSuccessorVariable()
setSuccessorVariable(com.sas.graphics.components.Variable)
public void setSuccessorVariable(Variable newVariable)
GraphModel.setConnectingLinesEnabled()
must be set to
true
in order for the chart to display the connecting lines.
newVariable
- contains the successor variables for each activity.getSuccessorVariable()
public void setEarlyStartVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- contains earliest start date
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getEarlyStartVariable()
public Variable getEarlyStartVariable()
setEarlyStartVariable(com.sas.graphics.components.Variable)
public void setEarlyFinishVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- contains earliest finish date
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getEarlyFinishVariable()
public Variable getEarlyFinishVariable()
setEarlyFinishVariable(com.sas.graphics.components.Variable)
public void setLateStartVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- containing latest possible date to begin
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getLateStartVariable()
public Variable getLateStartVariable()
setLateStartVariable(com.sas.graphics.components.Variable)
public void setLateFinishVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- containing latest finish date
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getLateFinishVariable()
public Variable getLateFinishVariable()
setLateFinishVariable(com.sas.graphics.components.Variable)
public void setResourceStartVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- containing resource constraint start dates.
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getResourceStartVariable()
public Variable getResourceStartVariable()
setResourceStartVariable(com.sas.graphics.components.Variable)
public void setResourceFinishVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- resource finish dates
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getResourceFinishVariable()
public Variable getResourceFinishVariable()
setResourceFinishVariable(com.sas.graphics.components.Variable)
public void setActualStartVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- date work began
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getActualStartVariable()
public Variable getActualStartVariable()
setActualStartVariable(com.sas.graphics.components.Variable)
public void setCustomSchedule1StartVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- Custom Schedule 1 finish dates
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getCustomSchedule1StartVariable()
public Variable getCustomSchedule1StartVariable()
setCustomSchedule1StartVariable(com.sas.graphics.components.Variable)
public void setCustomSchedule1FinishVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- Custom Schedule 1 finish dates
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getCustomSchedule1FinshVariable()
public Variable getCustomSchedule1FinshVariable()
setCustomSchedule1FinishVariable(com.sas.graphics.components.Variable)
public void setCustomSchedule2StartVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- Custom Schedule 2 start dates
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getCustomSchedule2StartVariable()
public Variable getCustomSchedule2StartVariable()
setCustomSchedule2StartVariable(com.sas.graphics.components.Variable)
public void setCustomSchedule2FinishVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- Custom Schedule 2 finish dates
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getCustomSchedule2FinshVariable()
public Variable getCustomSchedule2FinshVariable()
setCustomSchedule2FinishVariable(com.sas.graphics.components.Variable)
public void setActualFinishVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- contains actual end date
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getActualFinishVariable()
public Variable getActualFinishVariable()
setActualFinishVariable(com.sas.graphics.components.Variable)
public void setBaselineStartVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- when work was scheduled to begin
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getBaselineStartVariable()
public Variable getBaselineStartVariable()
setBaselineStartVariable(com.sas.graphics.components.Variable)
public void setBaselineFinishVariable(Variable newVariable)
Note: All chart's Start and Finish Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- containing end dates for an activity.
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getBaselineFinishVariable()
public Variable getBaselineFinishVariable()
setBaselineFinishVariable(com.sas.graphics.components.Variable)
public void setDurationVariable(Variable newVariable)
newVariable
- duration value for an activity.getDurationVariable()
public Variable getDurationVariable()
setDurationVariable(com.sas.graphics.components.Variable)
public void setTargetVariable(Variable newVariable)
Note: All chart's date Variables must be in the same date format and
have a valid date format specifed on the Variable.
Examples of valid date formats are:
newVariable
- contains target date
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getTargetVariable()
public Variable getTargetVariable()
setTargetVariable(com.sas.graphics.components.Variable)
public void setDescriptionVariable(Variable newVariable)
newVariable
- contains descriptive informationgetDescriptionVariable()
public Variable getDescriptionVariable()
setDescriptionVariable(com.sas.graphics.components.Variable)
public void setColorVariable(Variable newVariable)
newVariable
- contains color valuesgetColorVariable()
public Variable getColorVariable()
setColorVariable(com.sas.graphics.components.Variable)
public void setParentVariable(Variable newVariable)
newVariable
- contains parent values for each taskgetParentVariable()
public Variable getParentVariable()
setParentVariable(com.sas.graphics.components.Variable)
public void setAnnotationTaskVariable(Variable newVariable)
The annotation can be a symbol or text, depending on whether setAnnotationSymbolVariable() or setAnnotationLabelVariable() is also called. The annotation's position on the date axis is determined by setAnnotationLocationVariable() or setAnnotationPositionVariable().
newVariable
- contains a variable whose values identify the task bars to use for displaying annotationsgetAnnotationTaskVariable()
,
setAnnotationSymbolVariable(com.sas.graphics.components.Variable)
,
setAnnotationLabelVariable(com.sas.graphics.components.Variable)
,
setAnnotationLocationVariable(com.sas.graphics.components.Variable)
,
setAnnotationPositionVariable(com.sas.graphics.components.Variable)
public Variable getAnnotationTaskVariable()
setAnnotationTaskVariable(com.sas.graphics.components.Variable)
public void setAnnotationLocationVariable(Variable newVariable)
The annotation can be a symbol or text, depending on whether setAnnotationSymbolVariable() or setAnnotationLabelVariable() is also called. You can call setAnnotationPositionVariable() to set an absolute position for the annotation rather than this relative location.
newVariable
- contains where to locate the marker or textgetAnnotationLocationVariable()
,
setAnnotationSymbolVariable(com.sas.graphics.components.Variable)
,
setAnnotationLabelVariable(com.sas.graphics.components.Variable)
,
setAnnotationPositionVariable(com.sas.graphics.components.Variable)
public Variable getAnnotationLocationVariable()
setAnnotationLocationVariable(com.sas.graphics.components.Variable)
public void setAnnotationPositionVariable(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:
The annotation can be a symbol or text, depending on whether setAnnotationSymbolVariable() or setAnnotationLabelVariable() is also called. You can call setAnnotationLocationVariable() to set annotation positions that are relative to to the task's start or finish dates.
newVariable
- contains the date position to place the marker or text
java.lang.IllegalArgumentException
- if format is null, needs a valid date format specifed.getAnnotationPositionVariable()
,
setAnnotationLocationVariable(com.sas.graphics.components.Variable)
,
setAnnotationSymbolVariable(com.sas.graphics.components.Variable)
,
setAnnotationLabelVariable(com.sas.graphics.components.Variable)
public Variable getAnnotationPositionVariable()
setAnnotationPositionVariable(com.sas.graphics.components.Variable)
public void setAnnotationSymbolVariable(Variable newVariable)
MarkerStyle.SYMBOL_DIAMOND_FILLED
.
Call setAnnotationLocationVariable() to position the symbol at a date-axis location that is based on a task start or finish date. Call setAnnotationPositionVariable() to position the symbol at a specific location on the date axis.
newVariable
- Variable containing valid values for symbols.getAnnotationSymbolVariable()
,
setAnnotationLocationVariable(com.sas.graphics.components.Variable)
,
setAnnotationLabelVariable(com.sas.graphics.components.Variable)
,
setAnnotationPositionVariable(com.sas.graphics.components.Variable)
public Variable getAnnotationSymbolVariable()
setAnnotationSymbolVariable(com.sas.graphics.components.Variable)
public void setAnnotationLabelVariable(Variable newVariable)
Call setAnnotationLocationVariable() to position the text at a date-axis location that is based on a task start or finish date. Call setAnnotationPositionVariable() to position the text at a specific location on the date axis.
newVariable
- contains text strings to drawgetAnnotationLabelVariable()
,
setAnnotationSymbolVariable(com.sas.graphics.components.Variable)
,
setAnnotationLocationVariable(com.sas.graphics.components.Variable)
,
setAnnotationPositionVariable(com.sas.graphics.components.Variable)
public Variable getAnnotationLabelVariable()
setAnnotationLabelVariable(com.sas.graphics.components.Variable)
public void setAnnotationSymbolColorVariable(Variable newVariable)
newVariable
- contains marker symbol colorgetAnnotationSymbolColorVariable()
,
setAnnotationSymbolVariable(com.sas.graphics.components.Variable)
public Variable getAnnotationSymbolColorVariable()
setAnnotationSymbolColorVariable(com.sas.graphics.components.Variable)
public void setAnnotationLabelColorVariable(Variable newVariable)
newVariable
- contains text marker colorgetAnnotationLabelColorVariable()
,
setAnnotationLabelVariable(com.sas.graphics.components.Variable)
public Variable getAnnotationLabelColorVariable()
setAnnotationLabelColorVariable(com.sas.graphics.components.Variable)
public void setAnnotationLabelJustificationVariable(Variable newVariable)
newVariable
- contains where to justify the textgetAnnotationLocationVariable()
,
setAnnotationLabelVariable(com.sas.graphics.components.Variable)
,
setAnnotationPositionVariable(com.sas.graphics.components.Variable)
public Variable getAnnotationLabelJustificationVariable()
setAnnotationLabelJustificationVariable(com.sas.graphics.components.Variable)
public void setReplaceWithChildrenVariable(Variable newVariable)
newVariable
- contains 1 for TRUE and 0 for FALSEgetReplaceWithChildrenVariable()
public Variable getReplaceWithChildrenVariable()
setReplaceWithChildrenVariable(com.sas.graphics.components.Variable)
public void setDataTipVariable(Variable[] newVariables)
The following code fragment specifies two variables for the data tip display and uses them to replace the default data tip display:
// Create an array of variables to set in the data tip display
Variable dataTipVars[] = new Variable[2];
dataTipVars[0] = new Variable("Task");
dataTipVars[1] = new Variable("Duration");
ganttChart.getGraphModel().getDataTipModel().setContent(GraphConstants.DATA_TIP_REPLACE);
newVariables
- array of Variables to display in data tip
java.lang.IllegalArgumentException
- if a non-null array of zero length is passed in.getDataTipVariable()
,
setAuxiliaryVariable(com.sas.graphics.components.Variable[])
public Variable[] getDataTipVariable()
setDataTipVariable(com.sas.graphics.components.Variable[])
public void setAuxiliaryVariable(Variable[] newVariables)
newVariables
- contains Variables for GraphActionEvent return.
java.lang.IllegalArgumentException
- if a non-null array of zero length is passed in.getAuxiliaryVariable()
,
setDataTipVariable(com.sas.graphics.components.Variable[])
public Variable[] getAuxiliaryVariable()
setAuxiliaryVariable(com.sas.graphics.components.Variable[])
,
setDataTipVariable(com.sas.graphics.components.Variable[])
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |