com.sas.graphics.components.ganttchart
Class GanttChart

com.sas.graphics.components.ganttchart.GanttChart
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class GanttChart

The GanttChart is a Swing component that uses a GanttChartDataModel (data properties) and a GanttChartModel (display properties) to create a graphical scheduling tool for planning and managing a project. In its most basic form, a Gantt chart is a bar chart that plots project activities over time.

Topics:
Minimum Specification
Functional Overview
Data Access
Display Properties
Events on the Gantt Bars
Titles and Footnotes
Behavior

Samples

Since:
SAS 9.1.2
See Also:
Graph, GraphStyle, NoteModel, GanttChartModel, GanttChartDataModel, GanttChartTableDataModel, Serialized Form

Field Summary
static java.lang.String RB_KEY
           
 
Fields inherited from class com.sas.graphics.components.Graph
footnoteContainer, titleContainer
 
Constructor Summary
GanttChart()
          Construct a GanttChart using the default GraphStyle (GraphStyle.STYLE_CONVENTION).
GanttChart(GanttChartDataModel newGanttChartDataModel)
          Construct a GanttChart, assigning ganttChartDataModel, and using the default GraphStyle (GraphStyle.STYLE_CONVENTION).
GanttChart(GanttChartDataModel newGanttChartDataModel, GraphStyle newGraphStyle)
          Construct a GanttChart assigning ganttChartDataModel and applying graphStyle.
 
Method Summary
 void addLinkListener(java.awt.event.ActionListener l)
           
 void applyColorScheme(ColorScheme scheme)
          Apply a color scheme on this Graph.
protected  void applyDataModel()
          Intended for internalUse only
protected  void applyGraphModel()
          Intended for internalUse only
 void applyGraphStyle(GraphStyle graphStyle)
          Apply the GraphStyle display properties onto the GanttChart.
 int convertRowIndexToModel(int viewRowIndex)
          Maps the index of the row in the view at viewRowIndex to the index of the row in the table model.
 int convertRowIndexToView(int modelRowIndex)
          Maps the index of the row in the table model at modelRowIndex to the index of the row in the view.
protected  void doPropertyChange(java.lang.String propertyName, java.lang.Object oldProperty, java.lang.Object newProperty)
          Internal use only.
 int getDataLevelCount()
          Returns the number of parent-child levels that will be displayed in the TableAxis if a hierarchial relationship has been defined in the data model set on the chart and a parent and task variables have been set on the chart.
 GanttChartDataModel getDataModel()
          Returns the GanttChartDataModel that provides a handle to the data along with any associated mapping properties.
 int getDisplayPolicy()
          Get how the graph is to utilize the display area when insufficient space is available.
static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
          Returns information used by the com.sas.beans.Introspector to augment the automatically introspected information about this GanttChart.
 GanttChartModel getGraphModel()
          Returns the GanttChartModel that encapsulates most of the GanttChart's display properties.
 java.awt.Color[] getLegendCategoryColors()
          This method is for internal use only.
 java.lang.String[] getLegendCategoryValues()
          This method is for internal use only.
 java.util.LinkedHashMap getLegendValuesHashMap()
          The getter method for the HashMap legendValuesIndexMap from the LegendModel class.
 com.sas.graphics.util.PrintSupport getPrintSupport()
           
 java.awt.Color getRowSelectionColor()
          This method is for internal use only.
 java.util.Collection getTreeExpansionState()
          This method is for internal use only.
 boolean isAutoRepaintEnabled()
          Returns whether or not the graph automatically repaints when any of its properties (contained in associated models GraphModel, DataModel, NoteModel, etc) has changed.
 boolean isBgAndLogoDropDownOptionToBeDisabled()
          This method return true when both the members bgImageBrowseOptionToBeDisabled and logoImageBrowseOptionToBeDisabled are true, which indicates that both options of background image and logo image have to be disabled.
 boolean isBgCheckBoxToBeDisabled()
          This method checks the boolean value of the member bgImageBrowseOptionToBeDisabled and returns true or false accordingly, which indicates whether or not to disable the option for setting background image in the GanttChart.
 boolean isLogoCheckBoxToBeDisabled()
          This method checks the boolean value of the member logoImageBrowseOptionToBeDisabled and returns true or false accordingly, which indicates whether or not to disable the option for setting logo image in the GanttChart.
 boolean isSortEnabled()
          This method is for internal use only.
 void paintBackground(java.awt.Graphics g, java.awt.Rectangle bounds, java.awt.Insets insets)
          Draw the background in a limited area.
 void prepareToPaint()
          Notify this component that an application is about to call paint directly.
 void print()
          Print using the current print settings.
 void print(com.sas.graphics.util.PrintSupport p)
          Print using the given PrintSupport object.
 java.awt.Window printPreview()
           
 void printSetup()
           
 void removeLinkListener(java.awt.event.ActionListener l)
           
protected  void selectionChanged()
          Internal use only.
 void setAutoRepaintEnabled(boolean b)
          Sets whether or not the graph automatically repaints when any of its properties (contained in associated models GraphModel, DataModel, NoteModel, etc) has changed.
 void setBgImageBrowseOptionToBeDisabled(boolean b)
          This method is used to set the value of the boolean member bgImageBrowseOptionToBeDisabled.
 void setDataModel(GanttChartDataModel newDataModel)
          Sets the GanttChartDataModel which provides a handle to the data along with any associated mapping properties to define the number and arrangement of data elements (i.e. gantt activity bars), legend and axes.
 void setDisplayPolicy(int newDisplayPolicy)
          Set how the graph is to utilize the display area.
 void setFontForegroundColor(java.awt.Color newFontColor)
          This method is for internal use only.
protected  void setGraph(javax.swing.JComponent newGraph)
          For Internal use only!
 void setGraphModel(GanttChartModel newGanttChartModel)
          Sets a GanttChartModel to define most of the GanttChart's display properties.
 void setHandCursorEnabled(boolean hand)
          Change the cursor to a hand when over a bar.
 void setLogoImageBrowseOptionToBeDisabled(boolean b)
          This method is used to set the value of the boolean member logoImageBrowseOptionToBeDisabled.
 void setPrintSupport(com.sas.graphics.util.PrintSupport ps)
           
 void setRowSelectionColor(java.awt.Color newColor)
          This method is for internal use only.
 void setRowSelectionFont(java.awt.Font newFont)
          This method is for internal use only.
 void setSortEnabled(boolean sortEnable)
          This method is for internal use only.
 void setTreeExpansionState(java.util.Collection expansionState)
          This method is for internal use only.
protected  void updateDataModelListeners()
          Internal use only.
 
Methods inherited from class com.sas.graphics.components.Graph
addActionListener, addMouseListener, addMouseMotionListener, addMouseMotionListener, clearSelection, firePropertyChange, getActionProvider, getAppliedColorSchemeName, getAppliedGraphStyleName, getBackground, getBrushBounds, getChannel, getContentsChangedListener, getDefaultGraphStyle, getDefaultHeight, getDefaultWidth, getFooter, getFootnote, getFootnote1, getFootnote2, getHeader, getListSelectionListener, getLocale, getMessageModel, getMinimumSize, getPreferredSize, getTableModelListener, getTitle, getTitle1, getTitle2, getTitle3, getTitle4, isAppliedGraphStyleModified, paint, paintAll, pick, pick, pickSelected, removeActionListener, select, select, select, select, setActionProvider, setBackground, setBounds, setFooter, setFootnote, setFootnote1, setFootnote2, setHeader, setMessageModel, setPaintContext, setTitle, setTitle1, setTitle2, setTitle3, setTitle4, update, updateDataModelListeners, validateTree
 

Field Detail

RB_KEY

public static final java.lang.String RB_KEY
See Also:
Constant Field Values
Constructor Detail

GanttChart

public GanttChart()
Construct a GanttChart using the default GraphStyle (GraphStyle.STYLE_CONVENTION).

See Also:
GraphStyle

GanttChart

public GanttChart(GanttChartDataModel newGanttChartDataModel)
Construct a GanttChart, assigning ganttChartDataModel, and using the default GraphStyle (GraphStyle.STYLE_CONVENTION). The GanttChartDataModel is accessible via the getDataModel method.

A null GanttChartDataModel parameter is equivalent to using the default constructor.

Parameters:
newGanttChartDataModel - the data to be used by this graph
See Also:
GraphStyle, GanttChartTableDataModel

GanttChart

public GanttChart(GanttChartDataModel newGanttChartDataModel,
                  GraphStyle newGraphStyle)
Construct a GanttChart assigning ganttChartDataModel and applying graphStyle. The GanttChartDataModel is accessible via the getDataModel method. The GanttChartModel (whose properties are affected by the GraphStyle application) is accessible via the getGraphModel method. The NoteModels (whose properties are affected by the GraphStyle application) are accessible via the getTitle and getFootnote methods. A null GanttChartDataModel parameter is equivalent to setDataModel(null); If graphStyle is null then GraphStyle.STYLE_CONVENTION will be applied.

Parameters:
newGanttChartDataModel - provides a data handle with associated mapping properties
newGraphStyle - the set of graph display properties
See Also:
NoteModel, GanttChartModel, GanttChartTableDataModel
Method Detail

getTreeExpansionState

public java.util.Collection getTreeExpansionState()
This method is for internal use only. Return a collection containing the objects of type TreeTableRow, that are expanded in the tree.

See Also:
setTreeExpansionState(java.util.Collection)

setTreeExpansionState

public void setTreeExpansionState(java.util.Collection expansionState)
This method is for internal use only. Refresh the expansion state of the tree: which nodes are expanded and which are collapsed. This is particularly useful if you have a particular set of nodes that you want expanded.The collection should contain the objects of type TreeTableRow.

See Also:
getTreeExpansionState()

setSortEnabled

public void setSortEnabled(boolean sortEnable)
This method is for internal use only. This method is used to enable the sorting for the Tree.By default it is true.

See Also:
isSortEnabled()

isSortEnabled

public boolean isSortEnabled()
This method is for internal use only. This method returns boolean , true if the sorting is enabled else returns false.By default it is true.

See Also:
setSortEnabled(boolean)

getLegendCategoryValues

public java.lang.String[] getLegendCategoryValues()
This method is for internal use only. Returns an array of strings representing legend entries for category values.


getLegendCategoryColors

public java.awt.Color[] getLegendCategoryColors()
This method is for internal use only. Returns an array of colors associated with the legend entries.


setRowSelectionColor

public void setRowSelectionColor(java.awt.Color newColor)
This method is for internal use only. sets the associated color to the row selection background.


getRowSelectionColor

public java.awt.Color getRowSelectionColor()
This method is for internal use only. sets the associated color to the row selection background.


setRowSelectionFont

public void setRowSelectionFont(java.awt.Font newFont)
This method is for internal use only. sets the associated font to the selected row.


setFontForegroundColor

public void setFontForegroundColor(java.awt.Color newFontColor)
This method is for internal use only. sets the associated font color for the selected row.


setGraphModel

public void setGraphModel(GanttChartModel newGanttChartModel)
                   throws java.lang.IllegalArgumentException
Sets a GanttChartModel to define most of the GanttChart's display properties. Modifying any GanttChartModel property triggers the GanttChart to update. The update is asynchronous and delayed so modifying multiple properties in quick succession will result in only a single update. Use the FullPaintInterface if greater control over the GanttChart's paint behavior is necessary.

Typically applyGraphStyle is used to modify the graphs display properties.

Parameters:
newGanttChartModel - the GanttChartModel that encapsulates the GanttChart's display properties
Throws:
java.lang.IllegalArgumentException - if newGanttChartModel is null.
See Also:
getGraphModel(), GanttChartModel.apply(com.sas.graphics.components.ganttchart.GanttChartModel), GraphStyle

getGraphModel

public GanttChartModel getGraphModel()
Returns the GanttChartModel that encapsulates most of the GanttChart's display properties.

Returns:
the GanttChartModel that encapsulates most of the GanttChart's display properties
See Also:
setGraphModel(com.sas.graphics.components.ganttchart.GanttChartModel), GanttChartModel.apply(com.sas.graphics.components.ganttchart.GanttChartModel)

setDataModel

public void setDataModel(GanttChartDataModel newDataModel)
Sets the GanttChartDataModel which provides a handle to the data along with any associated mapping properties to define the number and arrangement of data elements (i.e. gantt activity bars), legend and axes.

Any change in the GanttChartDataModel properties will cause the GanttChart to update. The update is asynchronous and delayed so modifying multiple properties in quick succession will result in only a single update. The FullPaintInterface can be used if greater control over the GanttChart's paint behavior is needed.

Note: Data value changes will also trigger GanttChart to update.

A valid GanttChartDataModel is required to draw a graph.

Parameters:
newDataModel - provides a handle to the data along with any associated mapping properties
See Also:
getDataModel(), GanttChartTableDataModel

getDataModel

public GanttChartDataModel getDataModel()
Returns the GanttChartDataModel that provides a handle to the data along with any associated mapping properties.

Returns:
the GanttChartDataModel that provides a handle to the data along with any associated mapping properties
See Also:
setDataModel(com.sas.graphics.components.ganttchart.GanttChartDataModel), GanttChartTableDataModel

setDisplayPolicy

public void setDisplayPolicy(int newDisplayPolicy)
                      throws java.lang.IllegalArgumentException
Set how the graph is to utilize the display area. The graph will always utilize all the display area supplied to it however there are occasions when the display area provided to the graph is less than optimal size to draw the graph well. Various factors can contribute to this including font selection, data assignments, number of data observations, whether or not the legend is displayed, etc.

When insufficient display area is available, the gantt chart uses scroll bars and only displays a portion of the graph and table.

GraphConstants.DISPLAY_SCROLL_AS_NEEDED is the default behavior and GraphConstants.DISPLAY_AUTOMATIC will behave behave the same way as scroll as needed. Specifing GraphConstants.DISPLAY_SCROLL_ENABLED and GraphConstants.FIT_TO_SCREEN have no meaning to the GanttChart.

The default value is GraphConstants.DISPLAY_SCROLL_AS_NEEDED. Valid values are:
GraphConstants.DISPLAY_SCROLL_AS_NEEDED GraphConstants.DISPLAY_SCROLL_ENABLED: GraphConstants.DISPLAY_AUTOMATIC:

Overrides:
setDisplayPolicy in class Graph
Parameters:
newDisplayPolicy - how the Graph should utilize the dislay area
Throws:
java.lang.IllegalArgumentException - if newDisplayPolicy is invalid.
See Also:
getDisplayPolicy()

getDisplayPolicy

public int getDisplayPolicy()
Get how the graph is to utilize the display area when insufficient space is available. Valid values are:
GraphConstants.DISPLAY_SCROLL_ENABLED GraphConstants.DISPLAY_SCROLL_AS_NEEDED

Overrides:
getDisplayPolicy in class Graph
Returns:
how the Graph should utilize the display area when insufficient space is available
See Also:
setDisplayPolicy(int)

applyGraphModel

protected void applyGraphModel()
Description copied from class: Graph
Intended for internalUse only

Overrides:
applyGraphModel in class Graph

applyDataModel

protected void applyDataModel()
Description copied from class: Graph
Intended for internalUse only

Specified by:
applyDataModel in class Graph

convertRowIndexToModel

public int convertRowIndexToModel(int viewRowIndex)
Maps the index of the row in the view at viewRowIndex to the index of the row in the table model.

Parameters:
viewRowIndex - - the index of the row in the view
Returns:
the index of the corresponding row in the table model

convertRowIndexToView

public int convertRowIndexToView(int modelRowIndex)
Maps the index of the row in the table model at modelRowIndex to the index of the row in the view. Returns -1 if the row is not being displayed in the view.

Parameters:
modelRowIndex - - the index of the row in the table model
Returns:
the index of the corresponding row in the view

setHandCursorEnabled

public void setHandCursorEnabled(boolean hand)
Change the cursor to a hand when over a bar.


getDataLevelCount

public int getDataLevelCount()
Returns the number of parent-child levels that will be displayed in the TableAxis if a hierarchial relationship has been defined in the data model set on the chart and a parent and task variables have been set on the chart. The default value of 0 will be returned until setDataModel() has been called on the chart with a data model containing parent-child relationships and setParentVariable() as well as setTaskVariable() in the GanttChartTableDataModel.

Returns:
the number of parent-child levels
See Also:
TableAxisModel, GanttChartTableDataModel

prepareToPaint

public void prepareToPaint()
Notify this component that an application is about to call paint directly. This method is useful when attempting to get the Graph to draw into an image (or other application provided GraphicsContext).

As per java standard practices; "paint" should never be called directly by an application. However if it is necessary to render the Graph directly then the use of paintAll(Graphics) or printAll(Graphics) is acceptable.

Graphs asynchronously update to keep their view in sync with their model properties (Graphmodel, DataModel, NoteModel etc.). A direct call to paintAll or printAll does not allow for the graph to asynchronously sync up with their model proeprties. prepareToPaint provides this synchronization point necessary for the Graphs to update their component structure as needed.

Note: Used in a headless environment, Graphs will never asynchronously update and therefore require a call to prepareToPaint to render into a GraphicsContext.

The headless and non-headless cases can be handled slightly differently. In the non-headless case the asynchronous updating needs to be halted. This is done by setting the "autoRepaintEnabled" property to false. The default for autoRepaintEnabled is true, allowing the graph to automatically resync and repaint as model properties are modified.

Example writing to an image. Note for readability exception handling has been ignored.

 static public void main(String args[])
 {
    BufferedImage bi = new BufferedImage(640,480,BufferedImage.TYPE_INT_RGB);
    Graphics ig = bi.createGraphics();

    // Create Graph
    GanttChart graph = new GanttChart();
 
    // This call is not necessary if you are running in a headless environment.
    graph.setAutoRepaintEnabled(false);
    
    // ... assign data and model properties here ...
    graph.setDataModel(newGraphData());
    
    {// Render sequence
        graph.setBounds(0,0,bi.getWidth(null),bi.getHeight(null)); // Define the size of the Graph
        graph.addNotify(); // Makes the component displayable.
        graph.prepareToPaint(); // do property synchronization
        graph.paintAll(ig); // render into some graphics context
    }
 
    // Dispose of image graphics context
    ig.dispose();                
    
    // Save immage to disk
    File file = new File("graph.jpg");
    try
    {
        ImageIO.write(bi, "jpg", file);
    }
    catch (IOException e)
    {
        System.out.println("ImageIO.write failed.");
    }
 }
 

Specified by:
prepareToPaint in class Graph

setAutoRepaintEnabled

public void setAutoRepaintEnabled(boolean b)
Sets whether or not the graph automatically repaints when any of its properties (contained in associated models GraphModel, DataModel, NoteModel, etc) has changed. The default value is true.

The setting of this property to false implies that the application will be responsible for synchronizing the graph with its models using the prepareToPaint method.

Note: This method should NOT be used when also allowing interactive table editing. Unreliable results are sure to occur. This method was added to suport rendering into an off screen graphics context such as an image.

Specified by:
setAutoRepaintEnabled in class Graph
Parameters:
b - true means to automatically update
See Also:
isAutoRepaintEnabled()

isAutoRepaintEnabled

public boolean isAutoRepaintEnabled()
Returns whether or not the graph automatically repaints when any of its properties (contained in associated models GraphModel, DataModel, NoteModel, etc) has changed.

Specified by:
isAutoRepaintEnabled in class Graph
See Also:
setAutoRepaintEnabled(boolean)

getExtendedBeanInfo

public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
Returns information used by the com.sas.beans.Introspector to augment the automatically introspected information about this GanttChart.

Returns:
the ExtendedBeanInfo for this class

applyGraphStyle

public void applyGraphStyle(GraphStyle graphStyle)
Apply the GraphStyle display properties onto the GanttChart. The use of this method is a convenient way to quickly and easily affect the GanttChart's appearance. The GanttChartModel (accessible via the getGraphModel method) properties and the NoteModels (accessible via the getTitle and getFootnote methods) properties are modified by this method.

The GraphStyle enforces certain constraints that are not enforced on the Graph's display models (GanttChartModel and NoteModels). For example only one value text color may be specified on the GraphStyle, whereas the GanttChartModel supports setting different value text colors between axes, legends and data element text. Most presentations only require a single color for all types of value text, which is easily achieved by applying a GraphStyle.

Applying a GraphStyle will modify the display properties of the GanttChartModel and the title and footnote NoteModels. The GanttChart does not retain a link to the GraphStyle after this method has been called. Modifying any of the GraphStyle properties after this method has been called will have no affect on the GanttChart. Similarly modifying any of GanttChart's display properties after this method has been called will have no affect on the GraphStyle properties. To affect any change in the GanttChart display appearance the modified GraphStyle or a different GraphStyle would need to be applied again.

A blind PropertyChangeEvent is fired by the GanttChart after the apply is made.

No action is taken if a null GraphStyle is passed in.

Overrides:
applyGraphStyle in class Graph
Parameters:
graphStyle - the GraphStyle whose properties are conveyed to the GanttChart
See Also:
NoteModel, GanttChartModel

applyColorScheme

public void applyColorScheme(ColorScheme scheme)
Apply a color scheme on this Graph.

Note: ColorScheme is currently geared towards solid fill colors only. Changing gradient and image fills will have to be handled by directly on the GanttChartModel.

Overrides:
applyColorScheme in class Graph
Parameters:
scheme - ColorScheme object containing a set of colors for the charts.

selectionChanged

protected void selectionChanged()
Description copied from class: Graph
Internal use only. Invoked when the selection has changed.

Specified by:
selectionChanged in class Graph

updateDataModelListeners

protected void updateDataModelListeners()
Internal use only.

Specified by:
updateDataModelListeners in class Graph
See Also:
Graph.updateDataModelListeners(Object model, Object selectionModel)

doPropertyChange

protected void doPropertyChange(java.lang.String propertyName,
                                java.lang.Object oldProperty,
                                java.lang.Object newProperty)
Internal use only.

Overrides:
doPropertyChange in class Graph

addLinkListener

public void addLinkListener(java.awt.event.ActionListener l)

removeLinkListener

public void removeLinkListener(java.awt.event.ActionListener l)

setGraph

protected void setGraph(javax.swing.JComponent newGraph)
Description copied from class: Graph
For Internal use only! Assigns a graph component.

Overrides:
setGraph in class Graph
Parameters:
newGraph - the graph value along with any assigned styles.

Note: a null graph value will cause the graph (if any) that is located at the specified position to be removed.

Note: if the message styles have not been assigned then the graph will determine the default styles by the position.

See Also:
Graph.getGraph()

print

public void print(com.sas.graphics.util.PrintSupport p)
Print using the given PrintSupport object.

To customize your print settings, make a PrintSupport object, customize that, and then call this method.

The passed-in PrintSupport object is remembered and used by subsequent calls to print(), which may allow the user to make interactive changes to it through the print setup dialog.

Parameters:
p -

See Also:
print(com.sas.graphics.util.PrintSupport)

print

public void print()
Print using the current print settings. If no print settings have been assigned yet, start with defaults.

Print settings could be assigned by calling print(PrintSupport), or by interactive changes made in the print setup dialog.

See Also:
print(PrintSupport)

setPrintSupport

public void setPrintSupport(com.sas.graphics.util.PrintSupport ps)

getPrintSupport

public com.sas.graphics.util.PrintSupport getPrintSupport()

printSetup

public void printSetup()

printPreview

public java.awt.Window printPreview()

paintBackground

public void paintBackground(java.awt.Graphics g,
                            java.awt.Rectangle bounds,
                            java.awt.Insets insets)
Draw the background in a limited area.

Overrides:
paintBackground in class Graph
Parameters:
g - - the graphics context with which to draw.
bounds - - size of area to paint. (x and y are unused?)
insets - - margin (?)

setBgImageBrowseOptionToBeDisabled

public void setBgImageBrowseOptionToBeDisabled(boolean b)
This method is used to set the value of the boolean member bgImageBrowseOptionToBeDisabled.

Parameters:
b - is the boolean variable whose value would be assigned to the member bgImageBrowseOptionToBeDisabled.

setLogoImageBrowseOptionToBeDisabled

public void setLogoImageBrowseOptionToBeDisabled(boolean b)
This method is used to set the value of the boolean member logoImageBrowseOptionToBeDisabled.

Parameters:
b - is the boolean variable whose value would be assigned to the member logoImageBrowseOptionToBeDisabled.

isBgCheckBoxToBeDisabled

public boolean isBgCheckBoxToBeDisabled()
This method checks the boolean value of the member bgImageBrowseOptionToBeDisabled and returns true or false accordingly, which indicates whether or not to disable the option for setting background image in the GanttChart.

Returns:
true if the boolean member bgImageBrowseOptionToBeDisabled is true. false otherwise.

isLogoCheckBoxToBeDisabled

public boolean isLogoCheckBoxToBeDisabled()
This method checks the boolean value of the member logoImageBrowseOptionToBeDisabled and returns true or false accordingly, which indicates whether or not to disable the option for setting logo image in the GanttChart.

Returns:
true if the boolean member logoImageBrowseOptionToBeDisabled is true. false otherwise.

isBgAndLogoDropDownOptionToBeDisabled

public boolean isBgAndLogoDropDownOptionToBeDisabled()
This method return true when both the members bgImageBrowseOptionToBeDisabled and logoImageBrowseOptionToBeDisabled are true, which indicates that both options of background image and logo image have to be disabled. Hence, the drop down option of View -> Background and logo... itself can be disabled.

Returns:
true if both bgImageBrowseOptionToBeDisabled and logoImageBrowseOptionToBeDisabled are true. false otherwise.

getLegendValuesHashMap

public java.util.LinkedHashMap getLegendValuesHashMap()
The getter method for the HashMap legendValuesIndexMap from the LegendModel class.

Returns:
HashMap of legend values index map



Copyright © 2009 SAS Institute Inc. All Rights Reserved.