public class Plot2D extends Plot
Constructor and Description |
---|
Plot2D()
Initializes a new instance of the Plot2D class.
|
Modifier and Type | Method and Description |
---|---|
void |
addZoomChangedListener(ZoomChangedListener listener) |
com.mindfusion.charting.components.ComponentController |
createController(RenderContext context)
Component.createController override.
|
protected void |
drawGrid(RenderContext context)
Plot.drawGrid override.
|
protected void |
drawOrigins(RenderContext context)
Draws the plot's axis origin lines.
|
protected void |
fireZoomChanged() |
boolean |
getAllowPan()
Gets a value indicating whether users are allowed to pan this plot.
|
java.awt.Color |
getGridColor1()
Gets the main color of the grid.
|
java.awt.Color |
getGridColor2()
Gets the alternating color of the grid.
|
java.awt.Color |
getGridLineColor()
Gets the color of the grid lines.
|
com.mindfusion.drawing.DashStyle |
getGridLineStyle()
Gets the style of the grid lines.
|
java.lang.Double |
getGridLineThickness()
Gets the thickness of the grid lines.
|
GridType |
getGridType()
Gets the type of grid to draw in this plot.
|
boolean |
getIsZoomed()
Gets a value indicating whether the user has zoomed into this plot.
|
boolean |
getPinGrid()
Gets a value indicating whether grid stripes should be pinned
in place or scroll together with the plot when users pan it.
|
boolean |
getVerticalScroll()
Gets whether the plot should scroll vertically when panned.
|
Axis |
getXAxis()
Gets default Axis instance used to map X data coordinates of series
rendered inside this plot to the plot's pixels.
|
Axis |
getYAxis()
Gets default Axis instance used to map Y data coordinates of series
rendered inside this plot to the plot's pixels.
|
void |
removeZoomChangedListener(ZoomChangedListener listener) |
void |
resetZoom()
Resets the zoom level to original axis ranges.
|
void |
setAllowPan(boolean value)
Sets a value indicating whether users are allowed to pan this plot.
|
void |
setGridColor1(java.awt.Color value)
Sets the main color of the grid.
|
void |
setGridColor2(java.awt.Color value)
Sets the alternating color of the grid.
|
void |
setGridLineColor(java.awt.Color value)
Sets the color of the grid lines.
|
void |
setGridLineStyle(com.mindfusion.drawing.DashStyle value)
Sets the style of the grid lines.
|
void |
setGridLineThickness(java.lang.Double value)
Sets the thickness of the grid lines.
|
void |
setGridType(GridType value)
Sets the type of grid to draw in this plot.
|
void |
setPinGrid(boolean value)
Sets a value indicating whether grid stripes should be pinned
in place or scroll together with the plot when users pan it.
|
void |
setVerticalScroll(boolean value)
Sets whether the plot should scroll vertically when panned.
|
void |
setXAxis(Axis value)
Sets default Axis instance used to map X data coordinates of series
rendered inside this plot to the plot's pixels.
|
void |
setYAxis(Axis value)
Sets default Axis instance used to map Y data coordinates of series
rendered inside this plot to the plot's pixels.
|
void |
visit(com.mindfusion.charting.components.ComponentVisitor visitor)
Component.visit override.
|
void |
zoomOut(java.util.List<Axis> axes)
Zooms out from current data range.
|
adjustDataRanges, dataChanged, domainDimension, draw, effectiveBorderStroke, effectiveFill, elementAdded, elementRemoved, enumSeries, getBackground, getBorderStroke, getBorderStrokeDashStyle, getBorderStrokeThickness, getHighlightedItem, getHighlightStroke, getHighlightStrokeDashStyle, getHighlightStrokeThickness, getSeriesRenderers, getSeriesStyle, measure, measureDataRanges, propertyChange, setBackground, setBorderStroke, setBorderStrokeDashStyle, setBorderStrokeThickness, setHighlightedItem, setHighlightStroke, setHighlightStrokeDashStyle, setHighlightStrokeThickness, setSeriesRenderers, setSeriesStyle, startMeasureData
add, arrange, associateJComponent, 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
public com.mindfusion.charting.components.ComponentController createController(RenderContext context)
createController
in class com.mindfusion.charting.components.Component
context
- A RenderContext instance.public Axis getXAxis()
public void setXAxis(Axis value)
public Axis getYAxis()
public void setYAxis(Axis value)
public GridType getGridType()
public void setGridType(GridType value)
public boolean getPinGrid()
public void setPinGrid(boolean value)
public void visit(com.mindfusion.charting.components.ComponentVisitor visitor)
visit
in class com.mindfusion.charting.components.Component
visitor
- An instance of a ComponentVisitor -derived class.protected void drawGrid(RenderContext context)
context
- A RenderContext instance.protected void drawOrigins(RenderContext context)
Plot
context
- A RenderContext instance.public void zoomOut(java.util.List<Axis> axes)
axes
- The axes whose ranges should be scaled.public void resetZoom()
public boolean getIsZoomed()
public boolean getAllowPan()
public void setAllowPan(boolean value)
public boolean getVerticalScroll()
public void setVerticalScroll(boolean value)
public java.awt.Color getGridLineColor()
public void setGridLineColor(java.awt.Color value)
public java.lang.Double getGridLineThickness()
public void setGridLineThickness(java.lang.Double value)
public com.mindfusion.drawing.DashStyle getGridLineStyle()
public void setGridLineStyle(com.mindfusion.drawing.DashStyle value)
public java.awt.Color getGridColor1()
public void setGridColor1(java.awt.Color value)
public java.awt.Color getGridColor2()
public void setGridColor2(java.awt.Color value)
public void addZoomChangedListener(ZoomChangedListener listener)
public void removeZoomChangedListener(ZoomChangedListener listener)
protected void fireZoomChanged()