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 NamedSymbolstatic final NamedSymbolstatic final NamedSymbolstatic final NamedSymbolstatic final NamedSymbolstatic final NamedSymbol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Rendering rendering, FigureStyle style) Draws the symbol on the given rendering using the given style.The bounds of the symbol.getName()static NamedSymbolbooleanisHitBy(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:SymbolTests weather this symbol is hit by the given point. -
getBounds
Description copied from interface:SymbolThe bounds of the symbol. -
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); -
toString
-