|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<Tags>
lt.monarch.chart.AbstractChartSeries<Tags,ChartProjector>
public abstract class AbstractChartSeries<Tags extends AbstractPaintTags,ChartProjector extends Projector> extends AbstractChartObject<Tags> implements ChartSeries
Base implementation for all chart series, which use a ChartDataModel for data
input. Manages automatic registration and unregistration of data model listeners.
| Modifier and Type | Field and Description |
|---|---|
protected MetaDataModel |
metaModel
Meta data model |
protected DataModel |
model
Data model |
protected AbstractModelValidator |
modelValidator
Data model validator |
protected java.lang.String |
seriesName
String representing series name |
protected Transformation |
seriesTransform
|
protected boolean |
showLegend
Boolean value if to show legend |
protected boolean |
showNullValues
Boolean value if to show null values |
protected LegendSymbol |
symbol
|
protected AxisMapper |
xMapper
X axis mapper |
protected AxisMapper |
yMapper
Y axis mapper |
protected AxisMapper |
zMapper
Z axis mapper |
| Fields inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style |
| Constructor and Description |
|---|
AbstractChartSeries()
Sole constructor. |
AbstractChartSeries(DataModel model)
Sole constructor. |
AbstractChartSeries(DataModel model,
MetaDataModel metaModel)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate()
Activates this chart series. |
protected void |
checkDataModelRequirements(DataModel dataModel)
Checks if a data model contains all required columns. |
LegendEntry[] |
createLegendEntries()
Creates legend entries for the series. |
LegendEntry |
createLegendEntry()
Creates legend entry for this chart series. |
LegendSymbol |
createLegendSymbol()
Creates legend entry symbol for the series. |
protected void |
deactivate()
Deactivates this chart series. |
void |
draw(AbstractGraphics g)
Renders chart object on the Graphics context. |
void |
fillEntitySheet(java.util.Properties id)
Fills in the property sheet of the chart series. |
Rectangle2D |
getChartObjectBounds()
Gets bounds of chart object |
DataModel |
getDataModel()
Returns chart series data model. |
java.lang.String |
getDescription()
Returns a textual description of the chart series. |
abstract java.lang.Object |
getMaxValue(DataColumnType valType)
Note: internal use only! Gets maximum value that is used by series to fit into the chart |
MetaDataModel |
getMetaDataModel()
Gets meta data model |
abstract java.lang.Object |
getMinValue(DataColumnType valType)
Note: internal use only! Gets minimum value that is used by series to fit into the chart |
AbstractModelValidator |
getModelValidator()
Gets model validator |
java.lang.String |
getName()
Gets chart series name. |
ChartEntity |
getNearestChildEntity(java.awt.Point p)
Finds series entity nearest to the specified point. |
ChartEntity |
getParentEntity()
Gets parent chart entity. |
ChartProjector |
getProjector()
Returns modified projector. |
protected java.awt.Color |
getSeriesColor()
Returns series color from default palette. |
java.lang.String |
getShortDescription()
Returns a short textual description of the chart series. |
boolean |
getShowNullValues()
Returns true if this component shows (accounts for) null values. |
int |
getSortPosition()
Returns chart object paint order index. |
AxisMapper |
getXMapper()
Gets xMapper object. |
AxisMapper |
getYMapper()
Gets yMapper object. |
AxisMapper |
getZMapper()
Gets zMapper object. |
protected void |
handleDataModelChangeEvent(DataModelChangeEvent ev)
Handles data model change event. |
void |
setLegendSymbol(LegendSymbol legendSymbol)
Sets symbol to use for representing series in legend. |
void |
setName(java.lang.String name)
Sets chart series name. |
void |
setShowNullValues(boolean show)
Sets the property indicating whether this component shows the data series null values. |
void |
setValidateData(boolean validate)
Sets whether to validate model data |
void |
showLegend(boolean show)
Specifies whether legend entry for this chart series should be displayed. |
protected void |
updateClippingToProjector(AbstractGraphics g)
|
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
chart, copy, dispose, finalize, getChart, getPaintStyle, getParent, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.engine.ChartObject |
|---|
dispose, getChart, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart |
| Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity |
|---|
getParent, getStyle |
| Field Detail |
|---|
protected final DataModel model
protected MetaDataModel metaModel
protected java.lang.String seriesName
protected boolean showLegend
protected boolean showNullValues
protected LegendSymbol symbol
protected AxisMapper xMapper
protected AxisMapper yMapper
protected AxisMapper zMapper
protected AbstractModelValidator modelValidator
protected Transformation seriesTransform
| Constructor Detail |
|---|
public AbstractChartSeries()
public AbstractChartSeries(DataModel model)
model - chart series data model
public AbstractChartSeries(DataModel model,
MetaDataModel metaModel)
model - metaModel - | Method Detail |
|---|
public int getSortPosition()
ChartObject
getSortPosition in interface ChartObjectgetSortPosition in class AbstractChartObject<Tags extends AbstractPaintTags>public DataModel getDataModel()
public void draw(AbstractGraphics g)
ChartObject
draw in interface ChartObjectg - graphics contextprotected void updateClippingToProjector(AbstractGraphics g)
protected void handleDataModelChangeEvent(DataModelChangeEvent ev)
DataModelChangeEvent is received.
Calls repaint() method.
ev - the chart data model change eventDataModelChangeEventprotected void activate()
activate in class AbstractChartObject<Tags extends AbstractPaintTags>protected void deactivate()
deactivate in class AbstractChartObject<Tags extends AbstractPaintTags>public void setName(java.lang.String name)
setName in interface ChartSeriesname - chart series namepublic java.lang.String getName()
getName in interface ChartSeriespublic java.lang.String getDescription()
getDescription in interface ChartEntityChartEntity.getDescription()public java.lang.String getShortDescription()
getShortDescription in interface ChartEntityChartEntity.getShortDescription()public ChartEntity getParentEntity()
chart().
getParentEntity in interface ChartEntitypublic void fillEntitySheet(java.util.Properties id)
fillEntitySheet in interface ChartEntityid - property sheetpublic LegendSymbol createLegendSymbol()
LegendSymbolpublic LegendEntry createLegendEntry()
createLegendEntry in interface ChartSeriespublic LegendEntry[] createLegendEntries()
createLegendEntries in interface ChartSeriespublic void showLegend(boolean show)
show - true, if legend entry for this chart series should be displayed; false otherwisepublic void setShowNullValues(boolean show)
show - true if null values are displayed and false if they are ignored (filtered).public boolean getShowNullValues()
protected java.awt.Color getSeriesColor()
public ChartEntity getNearestChildEntity(java.awt.Point p)
p - point to search series entity atpublic void setLegendSymbol(LegendSymbol legendSymbol)
legendSymbol - symbol implementation.public AxisMapper getYMapper()
public AxisMapper getXMapper()
public AxisMapper getZMapper()
public ChartProjector getProjector()
public MetaDataModel getMetaDataModel()
public AbstractModelValidator getModelValidator()
public void setValidateData(boolean validate)
validate - true if to validate datapublic abstract java.lang.Object getMaxValue(DataColumnType valType)
valType - data value columnpublic abstract java.lang.Object getMinValue(DataColumnType valType)
valType - data value column
protected void checkDataModelRequirements(DataModel dataModel)
throws MissingColumnException
MissingColumnExceptionpublic Rectangle2D getChartObjectBounds()
StyleEditorEntity
getChartObjectBounds in interface StyleEditorEntitygetChartObjectBounds in class AbstractChartObject<Tags extends AbstractPaintTags>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||