de.erichseifert.gral.plots
Class XYPlot.XYPlotArea2D

java.lang.Object
  extended by de.erichseifert.gral.AbstractDrawable
      extended by de.erichseifert.gral.PlotArea
          extended by de.erichseifert.gral.plots.XYPlot.XYPlotArea2D
All Implemented Interfaces:
Drawable, SettingsListener, SettingsStorage
Enclosing class:
XYPlot

public static class XYPlot.XYPlotArea2D
extends PlotArea

Class that represents the drawing area of an XYPlot.


Field Summary
static Settings.Key GRID_MAJOR_COLOR
          Key for specifying the Paint instance to be used to paint the grid lines of major ticks.
static Settings.Key GRID_MAJOR_X
          Key for specifying a Boolean value which decides whether the horizontal grid lines at major ticks along the x-axis are drawn.
static Settings.Key GRID_MAJOR_Y
          Key for specifying a Boolean value which decides whether the vertical grid lines at major ticks along the y-axis are drawn.
static Settings.Key GRID_MINOR_COLOR
          Key for specifying the Paint instance to be used to paint the grid lines of minor ticks.
static Settings.Key GRID_MINOR_X
          Key for specifying a Boolean value which decides whether the horizontal grid lines at minor ticks along the x-axis are drawn.
static Settings.Key GRID_MINOR_Y
          Key for specifying a Boolean value which decides whether the vertical grid lines at minor ticks along the y-axis are drawn.
 
Fields inherited from class de.erichseifert.gral.PlotArea
BACKGROUND, BORDER, COLOR
 
Constructor Summary
XYPlot.XYPlotArea2D(XYPlot plot)
          Creates a new instance with default settings and initializes it with a plot serving as data provider.
 
Method Summary
 void draw(DrawingContext context)
          Draws the Drawable with the specified Graphics2D object.
 
Methods inherited from class de.erichseifert.gral.PlotArea
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault, settingChanged
 
Methods inherited from class de.erichseifert.gral.AbstractDrawable
getBounds, getHeight, getPreferredSize, getWidth, getX, getY, setBounds, setBounds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRID_MAJOR_X

public static final Settings.Key GRID_MAJOR_X
Key for specifying a Boolean value which decides whether the horizontal grid lines at major ticks along the x-axis are drawn.


GRID_MAJOR_Y

public static final Settings.Key GRID_MAJOR_Y
Key for specifying a Boolean value which decides whether the vertical grid lines at major ticks along the y-axis are drawn.


GRID_MAJOR_COLOR

public static final Settings.Key GRID_MAJOR_COLOR
Key for specifying the Paint instance to be used to paint the grid lines of major ticks.


GRID_MINOR_X

public static final Settings.Key GRID_MINOR_X
Key for specifying a Boolean value which decides whether the horizontal grid lines at minor ticks along the x-axis are drawn.


GRID_MINOR_Y

public static final Settings.Key GRID_MINOR_Y
Key for specifying a Boolean value which decides whether the vertical grid lines at minor ticks along the y-axis are drawn.


GRID_MINOR_COLOR

public static final Settings.Key GRID_MINOR_COLOR
Key for specifying the Paint instance to be used to paint the grid lines of minor ticks.

Constructor Detail

XYPlot.XYPlotArea2D

public XYPlot.XYPlotArea2D(XYPlot plot)
Creates a new instance with default settings and initializes it with a plot serving as data provider.

Parameters:
plot - Data provider.
Method Detail

draw

public void draw(DrawingContext context)
Description copied from interface: Drawable
Draws the Drawable with the specified Graphics2D object.

Parameters:
context - Environment used for drawing


Copyright © 2009-2010. All Rights Reserved.