jcckit
Class Graphics2DPlotCanvas
java.lang.Object
|
+--jcckit.plot.PlotCanvas
|
+--jcckit.GraphicsPlotCanvas
|
+--jcckit.Graphics2DPlotCanvas
- All Implemented Interfaces:
- PlotListener
- public class Graphics2DPlotCanvas
- extends GraphicsPlotCanvas
A subclass of GraphicsPlotCanvas
for
the Graphics2DRenderer
.
- Author:
- Franz-Josef Elmer
Field Summary |
static java.lang.String |
ANTI_ALIASINGD_KEY
Key of a configuration parameter. |
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.
Graphics2DPlotCanvas
public Graphics2DPlotCanvas(ConfigParameters config)
- Creates an instance from the specfied 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
.
- Overrides:
createGraphicsCanvas
in class GraphicsPlotCanvas
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
<properties file>