Inheritance diagram for org.math.plot.render.AbstractDrawer:
Definition at line 12 of file AbstractDrawer.java.
Public Member Functions | |
AbstractDrawer (PlotCanvas _canvas) | |
void | initGraphics (Graphics2D _comp2D) |
abstract void | resetBaseProjection () |
void | setColor (Color c) |
void | resetGradient () |
void | setFont (Font f) |
void | setTextOffset (double _cornerEast, double _cornerNorth) |
void | setTextAngle (double _angle) |
void | setDotType (int _dot_type) |
void | setDotRadius (int _dot_radius) |
void | setDotPattern (boolean[][] _dot_pattern) |
void | setLineType (int _line_type) |
void | setLineWidth (int _line_width) |
void | setBaseOffset (double..._boffset) |
void | setScreenOffset (int..._soffset) |
Color | getColor () |
Font | getFont () |
double[] | getTextOffset () |
double | getTextAngle () |
int | getDotType () |
int | getDotRadius () |
boolean[][] | getDotPattern () |
double[] | getBaseOffset () |
int[] | getScreenOffset () |
abstract int[] | project (double...pC) |
abstract int[] | projectBase (double...rC) |
abstract void | translate (int...t) |
abstract void | dilate (int[] screenOrigin, double[] screenRatio) |
void | drawCoordinate (double[] pC) |
Static Public Member Functions | |
static boolean[][] | stringToPattern (String empty, String...c) |
static boolean[] | stringToPattern (String empty, String c) |
Public Attributes | |
PlotCanvas | canvas |
Static Public Attributes | |
static final int | ROUND_DOT = 1 |
static final int | CROSS_DOT = 2 |
static final int | PATTERN_DOT = 0 |
static final int | CONTINOUS_LINE = 1 |
static final int | DOTTED_LINE = 2 |
static final int | DEFAULT_DOT_RADIUS = 2 |
static final int | DEFAULT_LINE_WIDTH = 1 |
static final boolean[][] | DOT_TRIANGLE_PATTERN = stringToPattern("_", "___#___", "__#_#__", "__#_#__", "_#___#_", "_#___#_", "#######") |
static final boolean[][] | DOT_SQUARE_PATTERN = stringToPattern("_", "######", "#____#", "#____#", "#____#", "#____#", "######") |
static final Font | DEFAULT_FONT = new Font("BitStream Vera Sans", Font.PLAIN, 12) |
static final Color | DEFAULT_COLOR = Color.BLACK |
Protected Attributes | |
Graphics2D | comp2D |
Font | font = DEFAULT_FONT |
double | text_Eastoffset |
double | text_Northoffset |
double | text_angle |
Color | color = DEFAULT_COLOR |
double[] | base_offset |
int[] | screen_offset |
int | dot_type = ROUND_DOT |
int | dot_radius = DEFAULT_DOT_RADIUS |
boolean[][] | dot_pattern = DOT_TRIANGLE_PATTERN |
int | line_type = CONTINOUS_LINE |
int | line_width = DEFAULT_LINE_WIDTH |
void org.math.plot.render.AbstractDrawer.initGraphics | ( | Graphics2D | _comp2D | ) |
Method used to initialize drawer to DEFAULT values
Definition at line 75 of file AbstractDrawer.java.
References org.math.plot.render.AbstractDrawer.comp2D.
Referenced by org.math.plot.canvas.PlotCanvas.paint().
00075 { 00076 comp2D = _comp2D; 00077 }
abstract void org.math.plot.render.AbstractDrawer.resetBaseProjection | ( | ) | [pure virtual] |
Method used to reinitialize the plot when the base has changed (bounds or scale)
Implemented in org.math.plot.render.AWTDrawer.
Referenced by org.math.plot.canvas.PlotCanvas.componentResized(), and org.math.plot.canvas.PlotCanvas.resetBase().
abstract int [] org.math.plot.render.AbstractDrawer.project | ( | double... | pC | ) | [pure virtual] |
Returns the screen coordinates coresponding to plot coordinates Used to test if mouse is pointing on a plot.
pC | plot ccordinates to project in screen |
Implemented in org.math.plot.render.AWTDrawer.
Referenced by org.math.plot.plots.ScatterPlot.isSelected(), org.math.plot.plots.HistogramPlot3D.isSelected(), org.math.plot.plots.HistogramPlot2D.isSelected(), org.math.plot.plots.GridPlot3D.isSelected(), org.math.plot.plots.CloudPlot3D.isSelected(), org.math.plot.plots.CloudPlot2D.isSelected(), org.math.plot.plots.BoxPlot3D.isSelected(), org.math.plot.plots.BoxPlot2D.isSelected(), and org.math.plot.plotObjects.Axis.isSelected().
abstract int [] org.math.plot.render.AbstractDrawer.projectBase | ( | double... | rC | ) | [pure virtual] |
Returns the screen coordinates coresponding to plot coordinates Used to test if mouse is pointing on a plot.
pC | plot ccordinates to project in screen |
Implemented in org.math.plot.render.AWTDrawer.
abstract void org.math.plot.render.AbstractDrawer.translate | ( | int... | t | ) | [pure virtual] |
Plot ActionMode : translation of the plot
t | mouse translation in pixels |
Implemented in org.math.plot.render.AWTDrawer.
Referenced by org.math.plot.canvas.PlotCanvas.mouseDragged(), and org.math.plot.canvas.Plot3DCanvas.mouseDragged().
abstract void org.math.plot.render.AbstractDrawer.dilate | ( | int[] | screenOrigin, | |
double[] | screenRatio | |||
) | [pure virtual] |
Plot ActionMode : dilatation of the plot
screenOrigin | mouse initial position | |
screenRatio | mouse final position relative to plot panel size |
Implemented in org.math.plot.render.AWTDrawer.
Referenced by org.math.plot.canvas.PlotCanvas.mouseReleased(), and org.math.plot.canvas.PlotCanvas.mouseWheelMoved().