Interface Style
-
- All Superinterfaces:
Cloneable
- All Known Subinterfaces:
ChoosableStyle
,SLDImporter.SizedStrokeFillStyle
,SLDImporter.StrokeFillStyle
- All Known Implementing Classes:
AbstractSelectionRenderer
,ArrowLineStringEndpointStyle
,ArrowLineStringEndpointStyle.Feathers
,ArrowLineStringEndpointStyle.FeathersEnd
,ArrowLineStringEndpointStyle.FeathersStart
,ArrowLineStringEndpointStyle.NarrowSolidEnd
,ArrowLineStringEndpointStyle.NarrowSolidStart
,ArrowLineStringEndpointStyle.OpenEnd
,ArrowLineStringEndpointStyle.OpenStart
,ArrowLineStringEndpointStyle.SolidEnd
,ArrowLineStringEndpointStyle.SolidStart
,ArrowLineStringMiddlepointStyle
,ArrowLineStringMiddlepointStyle.NarrowSolidMiddle
,ArrowLineStringSegmentStyle
,ArrowLineStringSegmentStyle.NarrowSolid
,ArrowLineStringSegmentStyle.Open
,ArrowLineStringSegmentStyle.Solid
,BasicStyle
,BitmapVertexStyle
,CircleLineStringEndpointStyle
,CircleLineStringEndpointStyle.End
,CircleLineStringEndpointStyle.Start
,CircleVertexStyle
,ColorThemingStyle
,CrossVertexStyle
,DelegatingStyle
,DummyStyle
,FeatureSelectionRenderer
,LabelStyle
,LineStringEndpointStyle
,LineStringSegmentStyle
,LineStringSelectionRenderer
,LineStringStyle
,LineStringVertexStyle
,MeasurementStyle
,MetricsLineStringSegmentStyle
,MetricsLineStringSegmentStyle.LengthAngle
,NoteStyle
,PartSelectionRenderer
,PinEqualCoordinatesStyle
,ReferencedImageStyle
,RingVertexStyle
,SegmentDownhillArrowStyle
,SegmentDownhillArrowStyle.NarrowSolidMiddle
,SegmentDownhillArrowStyle.Open
,SegmentDownhillArrowStyle.Solid
,SelectionBackgroundRenderer
,SquareVertexStyle
,SRIDStyle
,SRIDStyle
,StarVertexStyle
,TextBasedVertexStyle
,TriangleVertexStyle
,VertexIndexLineSegmentStyle
,VertexIndexLineSegmentStyle.VertexIndex
,VertexStyle
,VertexXYLineSegmentStyle
,VertexXYLineSegmentStyle.VertexXY
,VertexZValueStyle
,VertexZValueStyle.VertexZValue
,XBasicStyle
public interface Style extends Cloneable
Must have a parameterless constructor so it can be created by Java2XML.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
clone()
void
initialize(Layer layer)
Called before #paint is applied to each Feature.boolean
isEnabled()
void
paint(Feature f, Graphics2D g, Viewport viewport)
void
setEnabled(boolean enabled)
-
-
-
Method Detail
-
paint
void paint(Feature f, Graphics2D g, Viewport viewport) throws Exception
- Throws:
Exception
-
initialize
void initialize(Layer layer)
Called before #paint is applied to each Feature.- Parameters:
layer
- the layer on which to apply this style
-
clone
Object clone()
-
setEnabled
void setEnabled(boolean enabled)
-
isEnabled
boolean isEnabled()
- Returns:
- false if #paint should not be called e.g. because vertices are not shown. Don't need to check whether the layer is visible.
-
-