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

Inner Class Summary
protected  class Graphics2DPlotCanvas.Graphics2DCanvas
          AWT component which actually shows the rendered plot.
 
Inner classes inherited from class jcckit.GraphicsPlotCanvas
GraphicsPlotCanvas.GraphicsCanvas
 
Field Summary
static java.lang.String ANTI_ALIASINGD_KEY
          Key of a configuration parameter.
 
Fields inherited from class jcckit.GraphicsPlotCanvas
_canvas, BACKGROUND_KEY, FOREGROUND_KEY
 
Fields inherited from class jcckit.plot.PlotCanvas
HORIZONTAL_ANCHOR_KEY, PAPER_KEY, PLOT_KEY, VERTICAL_ANCHOR_KEY
 
Constructor Summary
Graphics2DPlotCanvas(ConfigParameters config)
          Creates an instance from the specfied configuration parameters.
 
Method Summary
protected  void createGraphicsCanvas()
          Creates an instance of Graphics2DPlotCanvas.Graphics2DCanvas.
static void main(java.lang.String[] args)
          Shows a plot in a Frame.
 GraphPoint mapCursorPosition(int x, int y)
          Maps the cursor position onto a point in device-independent coordinates.
 
Methods inherited from class jcckit.GraphicsPlotCanvas
connectDataAndShow, getGraphicsCanvas, plotChanged
 
Methods inherited from class jcckit.plot.PlotCanvas
connect, getHorizontalAnchor, getPaper, getPlot, getVerticalAnchor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANTI_ALIASINGD_KEY

public static final java.lang.String ANTI_ALIASINGD_KEY
Key of a configuration parameter.
Constructor Detail

Graphics2DPlotCanvas

public Graphics2DPlotCanvas(ConfigParameters config)
Creates an instance from the specfied configuration parameters.
Key & Default ValueTypeMandatory Description
antiAliasing = true booleanno If true everything will be rendererd anti-aliasing.
In addition the configuration parameters of the s constructor of the superclass GraphicsPlotCanvas apply.
Method Detail

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>