Inheritance diagram for org.math.plot.render.AWTDrawer:
Definition at line 14 of file AWTDrawer.java.
Public Member Functions | |
AWTDrawer (PlotCanvas _canvas) | |
void | resetBaseProjection () |
void | setColor (Color c) |
void | setGradient (double[] xy0, Color c0, double[] xy1, Color c1) |
void | setFont (Font f) |
Color | getColor () |
Font | getFont () |
int[] | project (double...pC) |
int[] | projectBase (double...rC) |
void | translate (int...t) |
void | dilate (int[] screenOrigin, double[] screenRatio) |
void | drawText (String label, double...pC) |
void | drawTextBase (String label, double...rC) |
void | drawLineBase (double[]...rC) |
void | drawLine (double[]...pC) |
void | drawDot (double...pC) |
void | drawPolygon (double[]...pC) |
void | fillPolygon (float alpha, double[]...pC) |
void | drawImage (Image img, float alpha, double[] _xyzSW, double[] _xyzSE, double[] _xyzNW) |
AffineTransform | getAffineTransform (int width, int height, double[] _xyzSW, double[] _xyzSE, double[] _xyzNW) |
Protected Attributes | |
Projection | projection |
Static Package Functions | |
static boolean | isDiff (double[] x, int[] y) |
static double | sign (double x) |
static double | sqr (double x) |
void org.math.plot.render.AWTDrawer.resetBaseProjection | ( | ) | [virtual] |
Method used to reinitialize the plot when the base has changed (bounds or scale)
Implements org.math.plot.render.AbstractDrawer.
Definition at line 27 of file AWTDrawer.java.
References org.math.plot.render.Projection.initBaseCoordsProjection(), and org.math.plot.render.AWTDrawer.projection.
00027 { 00028 projection.initBaseCoordsProjection(); 00029 }
int [] org.math.plot.render.AWTDrawer.project | ( | double... | pC | ) | [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 |
Implements org.math.plot.render.AbstractDrawer.
Definition at line 83 of file AWTDrawer.java.
References org.math.plot.render.AWTDrawer.projection, and org.math.plot.render.Projection.screenProjection().
Referenced by org.math.plot.render.AWTDrawer.setGradient().
00083 { 00084 return projection.screenProjection(pC); 00085 }
int [] org.math.plot.render.AWTDrawer.projectBase | ( | double... | rC | ) | [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 |
Implements org.math.plot.render.AbstractDrawer.
Definition at line 92 of file AWTDrawer.java.
References org.math.plot.render.AWTDrawer.projection, and org.math.plot.render.Projection.screenProjectionBaseRatio().
00092 { 00093 return projection.screenProjectionBaseRatio(rC); 00094 }
void org.math.plot.render.AWTDrawer.translate | ( | int... | t | ) | [virtual] |
Plot ActionMode : translation of the plot
t | mouse translation in pixels |
Implements org.math.plot.render.AbstractDrawer.
Definition at line 101 of file AWTDrawer.java.
References org.math.plot.render.AWTDrawer.projection, and org.math.plot.render.Projection.translate().
00101 { 00102 projection.translate(t); 00103 }
void org.math.plot.render.AWTDrawer.dilate | ( | int[] | screenOrigin, | |
double[] | screenRatio | |||
) | [virtual] |
Plot ActionMode : dilatation of the plot
screenOrigin | mouse initial position | |
screenRatio | mouse final position relative to plot panel size |
Implements org.math.plot.render.AbstractDrawer.
Definition at line 110 of file AWTDrawer.java.
References org.math.plot.render.Projection.dilate(), and org.math.plot.render.AWTDrawer.projection.
00110 { 00111 projection.dilate(screenOrigin, screenRatio); 00112 }