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 TypeMethodDescriptionvoid
rollBackGraphics
(Graphics aGraphics, int aPainterMode, Object aObject) Resets theGraphics
to its original state.setupGraphics
(Graphics aGraphics, int aPainterMode, Object aObject) Sets up theGraphics
for a certain object.
-
Method Details
-
setupGraphics
Sets up theGraphics
for a certain object. This method returns aGraphics
object that may be the originalGraphics
, or a newly createdGraphics
object. This is done to allow providers to create customGraphics
extensions to support advanced features such as strokes with an image.- Parameters:
aGraphics
- theGraphics
to configure.aPainterMode
- the painter mode for which theGraphics
has to be set up, seeILcdGXYPainter
aObject
- the object for which theGraphics
has to be set up.- Returns:
- the prepared
Graphics
.
-
rollBackGraphics
Resets theGraphics
to its original state.- Parameters:
aGraphics
- theGraphics
instance that was returned bysetupGraphics(java.awt.Graphics, int, Object)
.aPainterMode
- the painter mode that was used to set up theGraphics
, seeILcdGXYPainter
aObject
- the object for which theGraphics
was set up
-