Package viewer.symbols
Class PolygonSymbol
java.lang.Object
viewer.symbols.Symbol
viewer.symbols.PolygonSymbol
public class PolygonSymbol extends Symbol
Marker to display polygons on the map.
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.ColorfillColorprotected java.awt.Strokestrokeprotected java.awt.ColorstrokeColor -
Constructor Summary
Constructors Constructor Description PolygonSymbol(Feature feature)PolygonSymbol(Feature feature, java.awt.Color strokeColor)PolygonSymbol(Feature feature, java.awt.Color strokeColor, java.awt.Color fillColor)PolygonSymbol(Feature feature, java.awt.Color strokeColor, java.awt.Stroke stroke)PolygonSymbol(Feature feature, java.awt.Color strokeColor, java.awt.Stroke stroke, java.awt.Color fillColor) -
Method Summary
Modifier and Type Method Description voiddraw(java.awt.Graphics2D g, Transformation t)This method is called to draw this Symbol into a specified Graphics object.
-
Field Details
-
stroke
protected java.awt.Stroke stroke -
strokeColor
protected java.awt.Color strokeColor -
fillColor
protected java.awt.Color fillColor
-
-
Constructor Details
-
PolygonSymbol
- Parameters:
feature- feature which the polygon is associated to
-
PolygonSymbol
- Parameters:
feature- feature which the polygon is associated tostrokeColor- stroke color
-
PolygonSymbol
- Parameters:
feature- feature which the polygon is associated tostrokeColor- stroke colorstroke- stroke
-
PolygonSymbol
public PolygonSymbol(Feature feature, java.awt.Color strokeColor, java.awt.Stroke stroke, java.awt.Color fillColor)- Parameters:
feature- feature which the polygon is associated tostrokeColor- stroke colorstroke- stroke objectfillColor- fill color
-
PolygonSymbol
- Parameters:
feature- feature feature which the polygon is associated tostrokeColor- stroke colorfillColor- fill color
-
-
Method Details