public class Plot extends com.mindfusion.charting.components.Component implements SeriesContainer, com.mindfusion.common.ObservableListListener<SeriesRenderer>, java.beans.PropertyChangeListener, DataChangedListener
Constructor and Description |
---|
Plot() |
Modifier and Type | Method and Description |
---|---|
void |
adjustDataRanges(RenderContext context)
Called at the end of data measurement pass.
|
void |
dataChanged() |
int |
domainDimension(Series series)
Gets the index of the dimension whose set of values should be treated as domain of plotted function.
|
void |
draw(RenderContext context)
Component.draw override.
|
com.mindfusion.drawing.Brush |
effectiveBorderStroke(RenderContext context)
Gets the Brush that should be used to stroke the plot's borders.
|
com.mindfusion.drawing.Brush |
effectiveFill(RenderContext context)
Gets the Brush that should be used to fill the plot's background.
|
void |
elementAdded(SeriesRenderer newElement) |
void |
elementRemoved(SeriesRenderer oldElement) |
java.util.stream.Stream<Series> |
enumSeries()
Implements SeriesContainer.
|
com.mindfusion.drawing.Brush |
getBackground()
Gets the Brush that should be used to fill the background of this plot.
|
com.mindfusion.drawing.Brush |
getBorderStroke()
Gets the Brush that should be used to stroke the borders of this plot.
|
com.mindfusion.drawing.DashStyle |
getBorderStrokeDashStyle()
Gets the stroke dash style of plot borders.
|
java.lang.Double |
getBorderStrokeThickness()
Gets the stroke thickness of plot borders.
|
HitResult |
getHighlightedItem()
Gets the data item that should be drawn highlighted.
|
com.mindfusion.drawing.Brush |
getHighlightStroke()
Gets the Brush used to stroke highlighted item.
|
com.mindfusion.drawing.DashStyle |
getHighlightStrokeDashStyle()
Gets the stroke dash style of highlighted item.
|
java.lang.Double |
getHighlightStrokeThickness()
Gets the stroke thickness of highlighted item.
|
com.mindfusion.common.ObservableList<SeriesRenderer> |
getSeriesRenderers()
Gets the SeriesRenderer objects that should draw inside this plot.
|
SeriesStyle |
getSeriesStyle()
Gets a SeriesStyle whose attributes should be used to
draw series inside this plot, unless their own renderers
have a local SeriesStyle value set for respective attribute.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Component.measure override.
|
void |
measureDataRanges(RenderContext context)
Measures data of all SeriesRenderer objects drawn inside this plot.
|
void |
propertyChange(java.beans.PropertyChangeEvent e) |
void |
setBackground(com.mindfusion.drawing.Brush value)
Sets the Brush that should be used to fill the background of this plot.
|
void |
setBorderStroke(com.mindfusion.drawing.Brush value)
Sets the Brush that should be used to stroke the borders of this plot.
|
void |
setBorderStrokeDashStyle(com.mindfusion.drawing.DashStyle value)
Sets the stroke dash style of plot borders.
|
void |
setBorderStrokeThickness(java.lang.Double value)
Sets the stroke thickness of plot borders.
|
void |
setHighlightedItem(HitResult value)
Sets the data item that should be drawn highlighted.
|
void |
setHighlightStroke(com.mindfusion.drawing.Brush value)
Sets the Brush used to stroke highlighted item.
|
void |
setHighlightStrokeDashStyle(com.mindfusion.drawing.DashStyle value)
Sets the stroke dash style of highlighted item.
|
void |
setHighlightStrokeThickness(java.lang.Double value)
Sets the stroke thickness of highlighted item.
|
void |
setSeriesRenderers(com.mindfusion.common.ObservableList<SeriesRenderer> value)
Sets the SeriesRenderer objects that should draw inside this plot.
|
void |
setSeriesStyle(SeriesStyle value)
Sets a SeriesStyle whose attributes should be used to
draw series inside this plot, unless their own renderers
have a local SeriesStyle value set for respective attribute.
|
void |
startMeasureData(RenderContext context)
Called in the beginning of data measurement pass.
|
add, arrange, associateJComponent, createController, dissociateJComponent, effectiveMeasuredHeight, effectiveMeasuredWidth, getActualHeight, getActualWidth, getDesiredHeight, getDesiredWidth, getGridColumn, getGridRow, getHeight, getHitTestVisibility, getHorizontalAlignment, getMargin, getParent, getRectInParent, getToolTip, getVerticalAlignment, getVisibility, getWidth, getXInParent, getYInParent, hitTest, invalidate, invalidate, invalidate, invalidateLayout, invalidateLayout, localToRoot, rootToLocal, setActualHeight, setActualWidth, setDesiredHeight, setDesiredWidth, setGridColumn, setGridRow, setHeight, setHitTestVisibility, setHorizontalAlignment, setMargin, setParent, setToolTip, setVerticalAlignment, setVisibility, setWidth, setXInParent, setYInParent, visit
public SeriesStyle getSeriesStyle()
public void setSeriesStyle(SeriesStyle value)
public HitResult getHighlightedItem()
public void setHighlightedItem(HitResult value)
public void startMeasureData(RenderContext context)
context
- A RenderContext instance.public void measureDataRanges(RenderContext context)
context
- A RenderContext instance.public void adjustDataRanges(RenderContext context)
context
- A RenderContext instance.public void measure(double maxWidth, double maxHeight, RenderContext context)
measure
in class com.mindfusion.charting.components.Component
maxWidth
- The maximum width provided by parent component.maxHeight
- The maximum height provided by parent component.context
- A RenderContext instance.public void draw(RenderContext context)
draw
in class com.mindfusion.charting.components.Component
context
- A RenderContext instance.public com.mindfusion.common.ObservableList<SeriesRenderer> getSeriesRenderers()
public void setSeriesRenderers(com.mindfusion.common.ObservableList<SeriesRenderer> value)
public void dataChanged()
dataChanged
in interface DataChangedListener
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public java.util.stream.Stream<Series> enumSeries()
enumSeries
in interface SeriesContainer
public int domainDimension(Series series)
SeriesContainer
domainDimension
in interface SeriesContainer
series
- A Series in this container.public com.mindfusion.drawing.Brush effectiveFill(RenderContext context)
context
- A RenderContext instance.public com.mindfusion.drawing.Brush effectiveBorderStroke(RenderContext context)
context
- A RenderContext instance.public com.mindfusion.drawing.Brush getBackground()
public void setBackground(com.mindfusion.drawing.Brush value)
public com.mindfusion.drawing.Brush getBorderStroke()
public void setBorderStroke(com.mindfusion.drawing.Brush value)
public java.lang.Double getBorderStrokeThickness()
public void setBorderStrokeThickness(java.lang.Double value)
public com.mindfusion.drawing.DashStyle getBorderStrokeDashStyle()
public void setBorderStrokeDashStyle(com.mindfusion.drawing.DashStyle value)
public com.mindfusion.drawing.Brush getHighlightStroke()
public void setHighlightStroke(com.mindfusion.drawing.Brush value)
public java.lang.Double getHighlightStrokeThickness()
public void setHighlightStrokeThickness(java.lang.Double value)
public com.mindfusion.drawing.DashStyle getHighlightStrokeDashStyle()
public void setHighlightStrokeDashStyle(com.mindfusion.drawing.DashStyle value)
public void elementAdded(SeriesRenderer newElement)
elementAdded
in interface com.mindfusion.common.ObservableListListener<SeriesRenderer>
public void elementRemoved(SeriesRenderer oldElement)
elementRemoved
in interface com.mindfusion.common.ObservableListListener<SeriesRenderer>