Search
Plot2D Methods
 


 Public Methods

  Name Description

addZoomChangedListener

Adds a ZoomChangedListener method that handles events raised when the zoom factor for this Plot2D changes.

adjustDataRanges

Called at the end of data measurement pass. It sets the min and max value for the axis based on the available data if they were not explicitly set by the user. (Inherited from Plot.)

arrange

Sets the location and size of this component relative to its parent. (Inherited from Component.)

associateJComponent

  (Inherited from Component.)

createController

Component.createController override. Returns a ComponentController used to interact with this component.

dataChanged

Fired when chart data has changed. (Inherited from Plot.)

dissociateJComponent

  (Inherited from Component.)

domainDimension

Implements the SeriesContainer interface. Gets the index of the dimension whose set of values should be treated as domain of the plotted function. (Inherited from Plot.)

draw

Component.draw override. Draws the chart grid, if set and all chart graphics represented by the SeriesRenderer objects added to this Plot. (Inherited from Plot.)

effectiveBorderStroke

Gets the Brush used to stroke the Plot's borders when the users hovers over them with the mouse. (Inherited from Plot.)

effectiveFill

Gets the Brush that is used to fill the Plot's background. (Inherited from Plot.)

elementAdded

  (Inherited from Plot.)

elementRemoved

  (Inherited from Plot.)

enumSeries

Implements SeriesContainer. Returns a collection of all Series in this Plot. (Inherited from Plot.)

getActualHeight

Gets a double value specifying the component's assigned height. Valid only after calling {#link arrange}. (Inherited from Component.)

getActualWidth

Gets a double value specifying the component's assigned width. Valid only after calling arrange. (Inherited from Component.)

getAllowPan

Gets a value indicating whether users are allowed to pan this plot.

getBackground

Gets the Brush that is used to fill the background of this Plot. (Inherited from Plot.)

getBorderStroke

Gets the Brush that is used to stroke the borders of this Plot. (Inherited from Plot.)

getBorderStrokeDashStyle

Gets the stroke DashStyle of Plot borders. (Inherited from Plot.)

getBorderStrokeThickness

Gets the stroke thickness of Plot borders. (Inherited from Plot.)

getDesiredHeight

Gets a nullable double value specifying the component's desired height. Valid only after calling measure. (Inherited from Component.)

getDesiredWidth

Gets a nullable double value specifying the component's desired width. Valid only after calling measure. (Inherited from Component.)

getGridColor1

Gets the main color of the grid.

getGridColor2

Gets the alternating color of the grid.

getGridColumn

Gets the column index of this component when placed inside a GridPanel. (Inherited from Component.)

getGridLineColor

Gets the color of the grid lines.

getGridLineStyle

Gets the DashStyle of the grid lines.

getGridLineThickness

Gets the thickness of the grid lines.

getGridRow

Gets the row index of this component when placed inside a GridPanel. (Inherited from Component.)

getGridType

Gets the type of grid to draw in this plot.

getHeight

Gets a fixed height for this component. (Inherited from Component.)

getHighlightedItem

Gets the data item that should is currently highlighted. (Inherited from Plot.)

getHighlightStroke

Gets the Brush used to stroke the highlighted item. (Inherited from Plot.)

getHighlightStrokeDashStyle

Gets the stroke dash style of highlighted item. (Inherited from Plot.)

getHighlightStrokeThickness

Gets the stroke thickness of the highlighted item. (Inherited from Plot.)

getHitTestVisibility

Gets the hit-test visibility of this component. (Inherited from Component.)

getHorizontalAlignment

Gets the horizontal alignment of this component inside the layout rectangle allocated by its parent panel. (Inherited from Component.)

getIsZoomed

Gets a value indicating whether the user has zoomed into this Plot2D.

getMargin

Gets the margin space around this component relative to the layout rectangle allocated by its parent panel. (Inherited from Component.)

getParent

  (Inherited from Component.)

getPinGrid

Gets a value indicating whether grid stripes should be pinned in place or scrolled together with the plot when users pan it.

getRectInParent

Gets the boundaries of this component relative to its parent. (Inherited from Component.)

getSeriesRenderers

Gets the SeriesRenderer objects that are drawn inside this Plot. (Inherited from Plot.)

getSeriesStyle

Gets the SeriesStyle whose attributes should be used to draw the Series inside this Plot. (Inherited from Plot.)

getToolTip

Gets the component's tooltip text. (Inherited from Component.)

getVerticalAlignment

Gets the vertical alignment of this component inside the layout rectangle allocated by its parent panel. (Inherited from Component.)

getVerticalScroll

Gets whether the plot should scroll vertically when panned.

getVisibility

Gets the visibility of this component. (Inherited from Component.)

getWidth

Gets a fixed width for this component. (Inherited from Component.)

getXAxis

Gets the default Axis instance used to map X data coordinates of Series rendered inside this Plot2D to the plot's pixels.

getXInParent

Gets a double value specifying the component's horizontal position relative to its parent. (Inherited from Component.)

getYAxis

Gets default Axis instance used to map Y data coordinates of Series rendered inside this Plot2D to the plot's pixels.

getYInParent

Gets a double value specifying the component's vertical position relative to its parent. (Inherited from Component.)

hitTest

Returns the component containing specified point. (Inherited from Component.)

invalidate

Overloaded.   (Inherited from Component.)

invalidateLayout

Overloaded.   (Inherited from Component.)

localToRoot

Transforms the specified point to the coordinate system of the root panel. (Inherited from Component.)

measure

Component.measure override. Measures the desired size of this component. (Inherited from Plot.)

measureDataRanges

Measures data of all SeriesRenderer objects drawn inside this Plot using the specified RenderContext. (Inherited from Plot.)

propertyChange

Fired when a property of this Plot was changed. (Inherited from Plot.)

removeZoomChangedListener

Removes the specified ZoomChangedListener.

resetZoom

Resets the zoom level to the initial Axis ranges.

rootToLocal

Transforms the specified point to the coordinate system of this component. (Inherited from Component.)

setActualHeight

Sets a double value specifying the component's assigned height. (Inherited from Component.)

setActualWidth

Sets a double value specifying the component's assigned width. (Inherited from Component.)

setAllowPan

Sets a value indicating whether users are allowed to pan this plot.

setBackground

Sets the Brush that is used to fill the background of this Plot. (Inherited from Plot.)

setBorderStroke

Sets the Brush that is used to stroke the borders of this Plot. (Inherited from Plot.)

setBorderStrokeDashStyle

Sets the DashStyle of the stroke for the Plot borders. (Inherited from Plot.)

setBorderStrokeThickness

Sets the stroke thickness of Plot borders. (Inherited from Plot.)

setDesiredHeight

Sets a nullable double value specifying the component's desired height. (Inherited from Component.)

setDesiredWidth

Sets a nullable double value specifying the component's desired width. (Inherited from Component.)

setGridColor1

Sets the main color of the grid.

setGridColor2

Sets the alternating color of the grid.

setGridColumn

Sets the column index of this component when placed inside a GridPanel. (Inherited from Component.)

setGridLineColor

Sets the color of the grid lines.

setGridLineStyle

Sets the DashStyle of the grid lines.

setGridLineThickness

Sets the thickness of the grid lines.

setGridRow

Sets the row index of this component when placed inside a GridPanel. (Inherited from Component.)

setGridType

Sets the type of grid to draw in this Plot2D.

setHeight

Sets a fixed height for this component. (Inherited from Component.)

setHighlightedItem

Sets the data item that must be drawn highlighted. (Inherited from Plot.)

setHighlightStroke

Sets the Brush used to stroke highlighted item. (Inherited from Plot.)

setHighlightStrokeDashStyle

Sets the DashStyle of the highlighted item. (Inherited from Plot.)

setHighlightStrokeThickness

Sets the stroke thickness of the highlighted item. (Inherited from Plot.)

setHitTestVisibility

Sets the hit-test visibility of this component. (Inherited from Component.)

setHorizontalAlignment

Sets the horizontal alignment of this component inside the layout rectangle allocated by its parent panel. (Inherited from Component.)

setMargin

Sets the margin space around this component relative to the layout rectangle allocated by its parent panel. (Inherited from Component.)

setParent

  (Inherited from Component.)

setPinGrid

Sets a value indicating whether grid stripes should be pinned in place or scroll together with the plot when users pan it.

setSeriesRenderers

Sets the SeriesRenderer objects that should draw inside this plot. (Inherited from Plot.)

setSeriesStyle

Sets a SeriesStyle whose attributes should be used to draw Series inside this Plot. (Inherited from Plot.)

setToolTip

Sets the component's tooltip text. (Inherited from Component.)

setVerticalAlignment

Sets the vertical alignment of this component inside the layout rectangle allocated by its parent panel. (Inherited from Component.)

setVerticalScroll

Sets a value that indicates whether the plot should scroll vertically when panned.

setVisibility

Sets the visibility of this component. (Inherited from Component.)

setWidth

Sets a fixed width for this component. (Inherited from Component.)

setXAxis

Sets the default Axis instance used to map X data coordinates of Series rendered inside this Plot2D to the plot's pixels.

setXInParent

Sets a double value specifying the component's horizontal position relative to its parent. (Inherited from Component.)

setYAxis

Sets the default Axis instance used to map Y data coordinates of Series rendered inside this Plot2D to the plot's pixels.

setYInParent

Sets a double value specifying the component's vertical position relative to its parent. (Inherited from Component.)

startMeasureData

Called at the beginning of a data measurement pass. (Inherited from Plot.)

visit

Component.visit override. Calls visitor's visitPlot method.

zoomOut

Zooms out from the current data range.

 Protected Methods

  Name Description

add

Sums specified nullable double values. (Inherited from Component.)

drawGrid

Plot.drawGrid override. Draws the grid specified by the GridType property in the specified RenderContext.

drawOrigins

 

effectiveMeasuredHeight

  (Inherited from Component.)

effectiveMeasuredWidth

  (Inherited from Component.)

fireZoomChanged

Raised when the zoom factor has changed.

 See Also