Class NamedSymbol
java.lang.Object
com.bc.ceres.swing.figure.support.NamedSymbol
- All Implemented Interfaces:
Symbol
A symbol with a (well-known) name.
- Since:
- Ceres 0.13
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NamedSymbol
static final NamedSymbol
static final NamedSymbol
static final NamedSymbol
static final NamedSymbol
static final NamedSymbol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Rendering rendering, FigureStyle style) Draws the symbol on the given rendering using the given style.The bounds of the symbol.getName()
static NamedSymbol
boolean
isHitBy
(double x, double y) Tests weather this symbol is hit by the given point.toString()
-
Field Details
-
PLUS
-
CROSS
-
STAR
-
SQUARE
-
CIRCLE
-
PIN
-
-
Constructor Details
-
NamedSymbol
-
-
Method Details
-
getSymbol
-
getName
-
getSymbol
-
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. -
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);
-
toString
-