org.geotools.renderer.style
Class LineStyle2D

java.lang.Object
  extended byorg.geotools.renderer.style.Style
      extended byorg.geotools.renderer.style.Style2D
          extended byorg.geotools.renderer.style.LineStyle2D
Direct Known Subclasses:
DynamicLineStyle2D, PolygonStyle2D

public class LineStyle2D
extends Style2D

A rendered style to draw the contour of shapes TODO: add support for Graphic rendering (that is, an image painted along the contour)

Author:
aaime

Field Summary
protected  java.awt.Paint contour
           
protected  java.awt.Composite contourComposite
           
protected  java.awt.Stroke stroke
           
 
Fields inherited from class org.geotools.renderer.style.Style
maxScale, minScale
 
Constructor Summary
LineStyle2D()
           
 
Method Summary
 java.awt.Paint getContour()
          Returns the contour color for the polyline to be rendered, or null if none.
 java.awt.Composite getContourComposite()
          Returns the contour Composite for the polyline to be rendered, or null if the contour is to be opaque
 java.awt.image.BufferedImage getGraphicStroke()
          Getter for property graphicStroke.
 java.awt.Stroke getStroke()
          Returns the stroke for the polyline to be rendered, or null if none.
 void setContour(java.awt.Paint contour)
          Sets the contour color for the polyline to be rendered
 void setContourComposite(java.awt.Composite contourComposite)
          Sets the contour Composite for the polyline to be rendered.
 void setGraphicStroke(java.awt.image.BufferedImage graphicStroke)
          Setter for property graphicStroke.
 void setStroke(java.awt.Stroke stroke)
          Sets the stroke for the polyline to be rendered
 java.lang.String toString()
          Returns a string representation of this style.
 
Methods inherited from class org.geotools.renderer.style.Style
getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

contour

protected java.awt.Paint contour

stroke

protected java.awt.Stroke stroke

contourComposite

protected java.awt.Composite contourComposite
Constructor Detail

LineStyle2D

public LineStyle2D()
Method Detail

getStroke

public java.awt.Stroke getStroke()
Returns the stroke for the polyline to be rendered, or null if none.

Returns:
the current stroke or null if none

setStroke

public void setStroke(java.awt.Stroke stroke)
Sets the stroke for the polyline to be rendered

Parameters:
stroke - The stroke, or null if the contour doesn't need to be stroked

getContour

public java.awt.Paint getContour()
Returns the contour color for the polyline to be rendered, or null if none.

Returns:
the current contour, or null if none

setContour

public void setContour(java.awt.Paint contour)
Sets the contour color for the polyline to be rendered

Parameters:
contour -

getContourComposite

public java.awt.Composite getContourComposite()
Returns the contour Composite for the polyline to be rendered, or null if the contour is to be opaque

Returns:
the current contour composite, or null if opaque

setContourComposite

public void setContourComposite(java.awt.Composite contourComposite)
Sets the contour Composite for the polyline to be rendered. Set it to null if the contour is to be opaque

Parameters:
contourComposite -

getGraphicStroke

public java.awt.image.BufferedImage getGraphicStroke()
Getter for property graphicStroke.

Returns:
Value of property graphicStroke.

setGraphicStroke

public void setGraphicStroke(java.awt.image.BufferedImage graphicStroke)
Setter for property graphicStroke.

Parameters:
graphicStroke - New value of property graphicStroke.

toString

public java.lang.String toString()
Returns a string representation of this style.



Copyright © GeoTools. All Rights Reserved.