Package com.luciad.ogc.sld.view.gxy
Interface ILcdSLDGraphicsProvider
- All Known Implementing Classes:
ALcdSLDGraphicsProvider
public interface ILcdSLDGraphicsProvider
Sets up and restore
Graphics objects.
Implementations of this interface are used by the ALcdSLDSymbolizerPainter
extensions to implement a style defined by a SLD symbolizer.-
Method Summary
Modifier and TypeMethodDescriptionvoidrollBackGraphics(Graphics aGraphics, int aPainterMode, Object aObject) Resets theGraphicsto its original state.setupGraphics(Graphics aGraphics, int aPainterMode, Object aObject) Sets up theGraphicsfor a certain object.
-
Method Details
-
setupGraphics
Sets up theGraphicsfor a certain object. This method returns aGraphicsobject that may be the originalGraphics, or a newly createdGraphicsobject. This is done to allow providers to create customGraphicsextensions to support advanced features such as strokes with an image.- Parameters:
aGraphics- theGraphicsto configure.aPainterMode- the painter mode for which theGraphicshas to be set up, seeILcdGXYPainteraObject- the object for which theGraphicshas to be set up.- Returns:
- the prepared
Graphics.
-
rollBackGraphics
Resets theGraphicsto its original state.- Parameters:
aGraphics- theGraphicsinstance that was returned bysetupGraphics(java.awt.Graphics, int, Object).aPainterMode- the painter mode that was used to set up theGraphics, seeILcdGXYPainteraObject- the object for which theGraphicswas set up
-