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