|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.graphics.BaseTileChart
public class BaseTileChart
Constructor Summary | |
---|---|
BaseTileChart()
Construct a TileChart using the default GraphStyle (GraphStyle.CONVENTION_STYLE). |
Method Summary | |
---|---|
void |
applyGraphStyle(GraphStyle graphStyle)
Apply the GraphStyle display properties onto the TileChart. |
TileChartModel |
getGraphModel()
Returns the TileChartModel that encapsulates most of the TileChart's display properties. |
ChartImageMapInfo |
getImageMapInfo()
The TileChartImageMapInfo class encapsulates the mapping of regions associated with tile elements, labels (for both axes and legends) and values (for both axes and legends) as projected onto the display area along with their associated data. |
void |
setDataModel(TileChartDataModel newDataModel)
Sets the TileChartDataModel which provides data properties along with any associated mapping properties to define the number and arrangement of data elements, legend and axes. |
void |
setGraphModel(TileChartModel newTileChartModel)
Sets a TileChartModel to define most of the TileChart's display properties. |
Methods inherited from class com.sas.servlet.tbeans.BaseActionTransformation |
---|
dispose, getActionProvider, getActionSupportType, getUniqueId, isActionVisible, listActionTypes, listAreaTypes, setActionProvider, setActionSupportType, setActionVisible, setUniqueId, write |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderViewInterface |
---|
getRequest, setRequest |
Constructor Detail |
---|
public BaseTileChart()
GraphStyle
Method Detail |
---|
public void setGraphModel(TileChartModel newTileChartModel) throws java.lang.IllegalArgumentException
Typically applyGraphStyle is used to modify the graphs display properties.
newTileChartModel
- the TileChartModel that encapsulates the TileChart's display properties
java.lang.IllegalArgumentException
- if newTileChartModel is null.getGraphModel()
,
TileChartModel.apply(com.sas.graphics.components.tilechart.TileChartModel)
,
GraphStyle
public TileChartModel getGraphModel()
setGraphModel(com.sas.graphics.components.tilechart.TileChartModel)
,
TileChartModel.apply(com.sas.graphics.components.tilechart.TileChartModel)
public void setDataModel(TileChartDataModel newDataModel)
Any change in the TileChartDataModel properties will cause the TileChart 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 TileChart's paint behavior is needed.
Note: Data value changes will also trigger TileChart to update.
A valid TileChartDataModel is required to draw a graph.
newDataModel
- provides data propertiesTileChartTableDataModel
,
TileChartOLAPDataModel
public ChartImageMapInfo getImageMapInfo()
public void applyGraphStyle(GraphStyle graphStyle)
The GraphStyle enforces certain constraints that are not enforced on the Graph's display models (TileChartModel and NoteModels). For example only one value text color may be specified on the GraphStyle, whereas the TileChartModel 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 TileChartModel and the title and footnote NoteModels. The TileChart 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 TileChart. Similarly modifying any of TileChart's display properties after this method has been called will have no affect on the GraphStyle properties. To affect any change in the TileChart display appearance the modified GraphStyle or a different GraphStyle would need to be applied again.
A blind PropertyChangeEvent is fired by the TileChart after the apply is made.
No action is taken if a null GraphStyle is passed in.
applyGraphStyle
in class com.sas.servlet.tbeans.graphics.BaseGraph
graphStyle
- the GraphStyle whose properties are conveyed to the TileChartNoteModel
,
TileChartModel
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |