Class ImageSymbol
- java.lang.Object
- 
- com.bc.ceres.swing.figure.support.ImageSymbol
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageSymbolcreateIcon(String imageResourcePath)static ImageSymbolcreateIcon(String imageResourcePath, double refX, double refY)static ImageSymbolcreateIcon(String imageResourcePath, double refX, double refY, Class callerClass)static ImageSymbolcreateIcon(String imageResourcePath, Class callerClass)voiddraw(Rendering rendering, FigureStyle style)Draws the symbol on the given rendering using the given style.Rectangle2DgetBounds()The bounds of the symbol.BufferedImagegetImage()doublegetRefX()doublegetRefY()StringgetResourcePath()booleanisHitBy(double x, double y)Tests weather this symbol is hit by the given point.
 
- 
- 
- 
Method Detail- 
createIconpublic static ImageSymbol createIcon(String imageResourcePath) 
 - 
createIconpublic static ImageSymbol createIcon(String imageResourcePath, Class callerClass) 
 - 
createIconpublic static ImageSymbol createIcon(String imageResourcePath, double refX, double refY) 
 - 
createIconpublic static ImageSymbol createIcon(String imageResourcePath, double refX, double refY, Class callerClass) 
 - 
getResourcePathpublic String getResourcePath() 
 - 
getImagepublic BufferedImage getImage() 
 - 
getRefXpublic double getRefX() - Returns:
- The X-coordinate of the reference point.
 
 - 
getRefYpublic double getRefY() - Returns:
- The Y-coordinate of the reference point.
 
 - 
drawpublic void draw(Rendering rendering, FigureStyle style) 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);
 - 
isHitBypublic boolean isHitBy(double x, double y)Description copied from interface:SymbolTests weather this symbol is hit by the given point.
 - 
getBoundspublic Rectangle2D getBounds() Description copied from interface:SymbolThe bounds of the symbol.
 
- 
 
-