public abstract class AWTDrawer extends AbstractDrawer
| Modifier and Type | Field and Description |
|---|---|
Projection |
projection |
base_offset, canvas, color, comp2D, CONTINOUS_LINE, CROSS_DOT, DEFAULT_COLOR, DEFAULT_DOT_RADIUS, DEFAULT_FONT, DEFAULT_LINE_WIDTH, dot_pattern, dot_radius, DOT_SQUARE_PATTERN, DOT_TRIANGLE_PATTERN, dot_type, DOTTED_LINE, font, line_type, line_width, PATTERN_DOT, ROUND_DOT, screen_offset, text_angle, text_Eastoffset, text_Northoffset| Constructor and Description |
|---|
AWTDrawer(PlotCanvas _canvas) |
| Modifier and Type | Method and Description |
|---|---|
void |
dilate(int[] screenOrigin,
double[] screenRatio)
Plot ActionMode : dilatation of the plot
|
void |
drawCrossDot(double... pC) |
void |
drawImage(Image img,
float alpha,
double[] _xyzSW,
double[] _xyzSE,
double[] _xyzNW) |
void |
drawLine(double[]... pC) |
void |
drawLineBase(double[]... rC) |
void |
drawPatternDot(double... pC) |
void |
drawPolygon(double[]... pC) |
void |
drawRoundDot(double... pC) |
void |
drawShadowedText(String label,
float alpha,
double... pC) |
void |
drawText(String label,
double... pC) |
void |
drawTextBase(String label,
double... rC) |
void |
fillPolygon(float alpha,
double[]... pC) |
AffineTransform |
getAffineTransform(int width,
int height,
double[] _xyzSW,
double[] _xyzSE,
double[] _xyzNW) |
Color |
getColor() |
Font |
getFont() |
int[] |
project(double... pC)
Returns the screen coordinates coresponding to plot coordinates Used to
test if mouse is pointing on a plot.
|
int[] |
projectBase(double... rC)
Returns the screen coordinates coresponding to plot coordinates Used to
test if mouse is pointing on a plot.
|
void |
resetBaseProjection()
Method used to reinitialize the plot when the base has changed (bounds or
scale)
|
void |
setColor(Color c) |
void |
setFont(Font f) |
void |
setGradient(double[] xy0,
Color c0,
double[] xy1,
Color c1) |
void |
translate(int... t)
Plot ActionMode : translation of the plot
|
drawCoordinate, drawDot, getBaseOffset, getDotPattern, getDotRadius, getDotType, getGraphics2D, getLineWidth, getScreenOffset, getTextAngle, getTextOffset, initGraphics, resetGradient, setBaseOffset, setDotPattern, setDotRadius, setDotType, setLineType, setLineWidth, setScreenOffset, setTextAngle, setTextOffset, stringToPattern, stringToPatternpublic Projection projection
public AWTDrawer(PlotCanvas _canvas)
public void resetBaseProjection()
AbstractDrawerresetBaseProjection in class AbstractDrawerpublic void setColor(Color c)
setColor in class AbstractDrawerpublic void setGradient(double[] xy0,
Color c0,
double[] xy1,
Color c1)
setGradient in class AbstractDrawerpublic void setFont(Font f)
setFont in class AbstractDrawerpublic Color getColor()
getColor in class AbstractDrawerpublic Font getFont()
getFont in class AbstractDrawerpublic int[] project(double... pC)
AbstractDrawerproject in class AbstractDrawerpC - plot ccordinates to project in screenpublic int[] projectBase(double... rC)
AbstractDrawerprojectBase in class AbstractDrawerrC - plot ccordinates to project in screenpublic void translate(int... t)
AbstractDrawertranslate in class AbstractDrawert - mouse translation in pixelspublic void dilate(int[] screenOrigin,
double[] screenRatio)
AbstractDrawerdilate in class AbstractDrawerscreenOrigin - mouse initial positionscreenRatio - mouse final position relative to plot panel sizepublic void drawText(String label, double... pC)
drawText in class AbstractDrawerpublic void drawShadowedText(String label, float alpha, double... pC)
drawShadowedText in class AbstractDrawerpublic void drawTextBase(String label, double... rC)
drawTextBase in class AbstractDrawerpublic void drawLineBase(double[]... rC)
drawLineBase in class AbstractDrawerpublic void drawLine(double[]... pC)
drawLine in class AbstractDrawerpublic void drawRoundDot(double... pC)
drawRoundDot in class AbstractDrawerpublic void drawCrossDot(double... pC)
drawCrossDot in class AbstractDrawerpublic void drawPatternDot(double... pC)
drawPatternDot in class AbstractDrawerpublic void drawPolygon(double[]... pC)
drawPolygon in class AbstractDrawerpublic void fillPolygon(float alpha,
double[]... pC)
fillPolygon in class AbstractDrawerpublic void drawImage(Image img, float alpha, double[] _xyzSW, double[] _xyzSE, double[] _xyzNW)
drawImage in class AbstractDrawerpublic AffineTransform getAffineTransform(int width, int height, double[] _xyzSW, double[] _xyzSE, double[] _xyzNW)
Copyright © 2015. All rights reserved.