Class ShapeSymbol
java.lang.Object
com.bc.ceres.swing.figure.support.ShapeSymbol
- All Implemented Interfaces:
Symbol
A point symbol that is represented by a Java AWT shape geometry.
- Since:
- Ceres 0.13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShapeSymbolcreateCircle(double size) static ShapeSymbolcreatePin(double size) static ShapeSymbolcreateSquare(double size) voiddraw(Rendering rendering, FigureStyle style) Draws the symbol on the given rendering using the given style.The bounds of the symbol.getShape()booleanisHitBy(double x, double y) Tests weather this symbol is hit by the given point.
-
Constructor Details
-
ShapeSymbol
-
-
Method Details
-
createCircle
-
createSquare
-
createPin
-
getShape
-
draw
Description copied from interface:SymbolDraws 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:SymbolTests weather this symbol is hit by the given point. -
getBounds
Description copied from interface:SymbolThe bounds of the symbol.
-