Class NamedSymbol
- java.lang.Object
-
- com.bc.ceres.swing.figure.support.NamedSymbol
-
-
Field Summary
Fields Modifier and Type Field Description static NamedSymbol
CIRCLE
static NamedSymbol
CROSS
static NamedSymbol
PIN
static NamedSymbol
PLUS
static NamedSymbol
SQUARE
static NamedSymbol
STAR
-
Constructor Summary
Constructors Constructor Description NamedSymbol(String name, Symbol symbol)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(Rendering rendering, FigureStyle style)
Draws the symbol on the given rendering using the given style.Rectangle2D
getBounds()
The bounds of the symbol.String
getName()
Symbol
getSymbol()
static NamedSymbol
getSymbol(String name)
boolean
isHitBy(double x, double y)
Tests weather this symbol is hit by the given point.String
toString()
-
-
-
Field Detail
-
PLUS
public static final NamedSymbol PLUS
-
CROSS
public static final NamedSymbol CROSS
-
STAR
public static final NamedSymbol STAR
-
SQUARE
public static final NamedSymbol SQUARE
-
CIRCLE
public static final NamedSymbol CIRCLE
-
PIN
public static final NamedSymbol PIN
-
-
Method Detail
-
getSymbol
public static NamedSymbol getSymbol(String name)
-
getName
public String getName()
-
getSymbol
public Symbol 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
public Rectangle2D getBounds()
Description copied from interface:Symbol
The bounds of the symbol.
-
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);
-
-