jcckit
Class Graphics2DPlotCanvas
java.lang.Object
jcckit.plot.PlotCanvas
jcckit.GraphicsPlotCanvas
jcckit.GraphicsPlotCanvas2
jcckit.Graphics2DPlotCanvas
- All Implemented Interfaces:
- PlotListener
- public class Graphics2DPlotCanvas
- extends GraphicsPlotCanvas2
A subclass of GraphicsPlotCanvas
for
the Graphics2DRenderer
.
- Author:
- Franz-Josef Elmer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANTI_ALIASINGD_KEY
public static final java.lang.String ANTI_ALIASINGD_KEY
- Key of a configuration parameter.
- See Also:
- Constant Field Values
_renderer
protected java.lang.String _renderer
Graphics2DPlotCanvas
public Graphics2DPlotCanvas(ConfigParameters config)
- Creates an instance from the specified configuration parameters.
Key & Default Value | Type | Mandatory |
Description |
antiAliasing = true |
boolean | no |
If true everything will be rendererd
anti-aliasing. |
In addition the configuration parameters of the
s constructor of the superclass GraphicsPlotCanvas
apply.
createGraphicsCanvas
protected void createGraphicsCanvas()
- Creates an instance of
Graphics2DPlotCanvas.Graphics2DCanvas
which wraps the rendered plot.
- Overrides:
createGraphicsCanvas
in class GraphicsPlotCanvas
createGraphicsJPanel
protected void createGraphicsJPanel()
- Creates an instance of
Graphics2DPlotCanvas.Graphics2DJPanel
which wraps the rendered plot.
- Overrides:
createGraphicsJPanel
in class GraphicsPlotCanvas2
draw2DInto
public void draw2DInto(java.awt.Image image)
- Draws the plot into the specified image by using Java2D API.
Can be used for off-screen renderering if double-buffering is switched
off. Otherwise NullPointerException will be thrown.
mapCursorPosition
public GraphPoint mapCursorPosition(int x,
int y)
- Maps the cursor position onto a point in device-independent coordinates.
- Overrides:
mapCursorPosition
in class GraphicsPlotCanvas
- Parameters:
x
- X-coordinate of the cursor.y
- Y-coordinate of the cursor.
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Shows a plot in a Frame. The plot (data and layout) is
defined in the .properties file specified by the first
command line argument.
Usage: java jcckit.Graphics2DPlotCanvas [-r <renderer class>]
<properties file>
- Throws:
java.lang.Exception