Package jcckit.plot
Class PlotCanvas
java.lang.Object
jcckit.plot.PlotCanvas
- All Implemented Interfaces:
PlotListener
- Direct Known Subclasses:
GraphicsPlotCanvas
An abstract canvas containg a single
Plot. The canvas is specified
by a ClippingRectangle, called paper. A horizontal and
vertical Anchor determine the position of the paper on the actual
device.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlotCanvas(ConfigParameters config) Creates an instance from the specified configuration parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the horizontal anchor.getPaper()Returns the paper definition.getPlot()Returns the plot.Returns the vertical anchor.voidplotChanged(PlotEvent event) Handles the spcified event.
-
Field Details
-
PAPER_KEY
Configuration parameter key.- See Also:
-
HORIZONTAL_ANCHOR_KEY
Configuration parameter key.- See Also:
-
VERTICAL_ANCHOR_KEY
Configuration parameter key.- See Also:
-
PLOT_KEY
Configuration parameter key.- See Also:
-
-
Constructor Details
-
PlotCanvas
Creates an instance from the specified configuration parameters.Key & Default Value Type Mandatory Description horizontalAnchor = center String no Horizontal position of the paper relative to the device border. Possible values are left, center, and right. paper = 0, 0, 1, 0.6 double[] no Rectangle defining the paper. The first two values determine the x- and y- coordinates (in device-independent units) of the lower-left corner. The last two values determine the upper-right corner. plot = default values of PlotConfigParameters no Definition of the Plot.verticalAnchor = center String no Vertical position of the paper relative to the device border. Possible values are top, center, and bottom. Note, that this instance registers itself at the wrapped
Plotinstance.
-
-
Method Details
-
getPaper
Returns the paper definition. -
getHorizontalAnchor
Returns the horizontal anchor. -
getVerticalAnchor
Returns the vertical anchor. -
getPlot
Returns the plot. -
connect
- Parameters:
dataPlot- Data to be connected with this plot canvas. Can be null in order to disconnect this instance from a DataPlot.
-
plotChanged
Handles the spcified event. Here nothing is done. But subclass may override this method.- Specified by:
plotChangedin interfacePlotListener
-