Class PointSymbol
java.lang.Object
com.bc.ceres.swing.figure.support.PointSymbol
- All Implemented Interfaces:
Symbol
A symetric point symbol that has its reference point in its center.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PointSymbol
createCross
(double size) static PointSymbol
createPlus
(double size) static PointSymbol
createStar
(double size) void
draw
(Rendering rendering, FigureStyle style) Draws the symbol on the given rendering using the given style.The bounds of the symbol.boolean
isHitBy
(double x, double y) Tests weather this symbol is hit by the given point.
-
Method Details
-
createPlus
-
createCross
-
createStar
-
draw
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
Description copied from interface:Symbol
The bounds of the symbol.
-