public class Plot extends 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.
|
Brush |
effectiveBorderStroke(RenderContext context)
Gets the Brush that should be used to stroke the plot's borders.
|
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.
|
Brush |
getBackground()
Gets the Brush that should be used to fill the background of this plot.
|
Brush |
getBorderStroke()
Gets the Brush that should be used to stroke the borders of this plot.
|
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.
|
Brush |
getHighlightStroke()
Gets the Brush used to stroke highlighted item.
|
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(Brush value)
Sets the Brush that should be used to fill the background of this plot.
|
void |
setBorderStroke(Brush value)
Sets the Brush that should be used to stroke the borders of this plot.
|
void |
setBorderStrokeDashStyle(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(Brush value)
Sets the Brush used to stroke highlighted item.
|
void |
setHighlightStrokeDashStyle(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, visitpublic 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)
public void draw(RenderContext context)
public com.mindfusion.common.ObservableList<SeriesRenderer> getSeriesRenderers()
public void setSeriesRenderers(com.mindfusion.common.ObservableList<SeriesRenderer> value)
public void dataChanged()
dataChanged in interface DataChangedListenerpublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerpublic java.util.stream.Stream<Series> enumSeries()
enumSeries in interface SeriesContainerpublic int domainDimension(Series series)
SeriesContainerdomainDimension in interface SeriesContainerseries - A Series in this container.public Brush effectiveFill(RenderContext context)
context - A RenderContext instance.public Brush effectiveBorderStroke(RenderContext context)
context - A RenderContext instance.public Brush getBackground()
public void setBackground(Brush value)
public Brush getBorderStroke()
public void setBorderStroke(Brush value)
public java.lang.Double getBorderStrokeThickness()
public void setBorderStrokeThickness(java.lang.Double value)
public DashStyle getBorderStrokeDashStyle()
public void setBorderStrokeDashStyle(DashStyle value)
public Brush getHighlightStroke()
public void setHighlightStroke(Brush value)
public java.lang.Double getHighlightStrokeThickness()
public void setHighlightStrokeThickness(java.lang.Double value)
public DashStyle getHighlightStrokeDashStyle()
public void setHighlightStrokeDashStyle(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>