public class SimpleCircle extends VectorSymbol
Constructor and Description |
---|
SimpleCircle() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a cloned instance of the current symbol.
|
void |
draw(java.awt.Graphics2D g2d,
int x,
int y,
float scaleFactor,
double angle,
java.awt.Color fillColor,
java.awt.Color borderColor,
boolean propLineThickness)
Draws the current symbol using the specified parameters at the specified DC
location.
|
void |
draw(java.awt.Graphics2D g2d,
int x,
int y,
float scaleFactor,
double angle,
java.awt.Color fillColor,
java.awt.Color borderColor,
float borderThickness)
Draws the current symbol using the specified parameters at the specified DC
location.
|
Rectangle |
getBounds(int x,
int y,
float scaleFactor) |
java.lang.String |
toSvg(int strokeWidth,
java.awt.Color fillColor,
java.awt.Color strokeColor) |
public Rectangle getBounds(int x, int y, float scaleFactor)
public void draw(java.awt.Graphics2D g2d, int x, int y, float scaleFactor, double angle, java.awt.Color fillColor, java.awt.Color borderColor, boolean propLineThickness)
Symbol
draw
in class Symbol
g2d
- the graphicsx
- the x-coordinatey
- the y-coordinatescaleFactor
- the scale factor to draw the symbolangle
- in radian, the angle used to get the symbol orientationfillColor
- the fill color. If null is specified, only the border with be
drawn.borderColor
- the line colorpropLineThickness
- if you want to get a symbol with a proportional line thicknesspublic void draw(java.awt.Graphics2D g2d, int x, int y, float scaleFactor, double angle, java.awt.Color fillColor, java.awt.Color borderColor, float borderThickness)
Symbol
draw
in class Symbol
g2d
- the graphicsx
- the x-coordinatey
- the y-coordinatescaleFactor
- the scale factor to draw the symbolangle
- in radian, the angle used to get the symbol orientationfillColor
- the fill color. If null is specified, only the border with be
drawn.borderColor
- the line colorborderThickness
- the vector symbol border thicknesspublic java.lang.Object clone()
Symbol
public java.lang.String toSvg(int strokeWidth, java.awt.Color fillColor, java.awt.Color strokeColor)
toSvg
in class VectorSymbol