Class ShapeSymbol
- java.lang.Object
-
- com.bc.ceres.swing.figure.support.ShapeSymbol
-
-
Constructor Summary
Constructors Constructor Description ShapeSymbol(Shape shape)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ShapeSymbol
createCircle(double size)
static ShapeSymbol
createPin(double size)
static ShapeSymbol
createSquare(double size)
void
draw(Rendering rendering, FigureStyle style)
Draws the symbol on the given rendering using the given style.Rectangle2D
getBounds()
The bounds of the symbol.Shape
getShape()
boolean
isHitBy(double x, double y)
Tests weather this symbol is hit by the given point.
-
-
-
Constructor Detail
-
ShapeSymbol
public ShapeSymbol(Shape shape)
-
-
Method Detail
-
createCircle
public static ShapeSymbol createCircle(double size)
-
createSquare
public static ShapeSymbol createSquare(double size)
-
createPin
public static ShapeSymbol createPin(double size)
-
getShape
public Shape getShape()
-
draw
public void draw(Rendering rendering, FigureStyle style)
Description copied from interface:Symbol
Draws the symbol on the given rendering using the given style. The rendering's graphics is transformed so that drawing can be done directly in symbol coordinates using view units, e.g.rendering.getGraphics().draw(symbolShape);
orrendering.getGraphics().drawRenderedImage(symbolImage, null);
-
isHitBy
public boolean isHitBy(double x, double y)
Description copied from interface:Symbol
Tests weather this symbol is hit by the given point.
-
getBounds
public Rectangle2D getBounds()
Description copied from interface:Symbol
The bounds of the symbol.
-
-