org.geotools.renderer.style
Class LineStyle2D

Object
  extended by Style
      extended by Style2D
          extended by LineStyle2D
All Implemented Interfaces:
Cloneable
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  Paint contour
           
protected  Composite contourComposite
           
protected  Stroke stroke
           
 
Fields inherited from class Style
maxScale, minScale
 
Constructor Summary
LineStyle2D()
           
 
Method Summary
 Paint getContour()
          Returns the contour color for the polyline to be rendered, or null if none.
 Composite getContourComposite()
          Returns the contour Composite for the polyline to be rendered, or null if the contour is to be opaque
 Style2D getGraphicStroke()
          Getter for property graphicStroke.
 Stroke getStroke()
          Returns the stroke for the polyline to be rendered, or null if none.
 void setContour(Paint contour)
          Sets the contour color for the polyline to be rendered
 void setContourComposite(Composite contourComposite)
          Sets the contour Composite for the polyline to be rendered.
 void setGraphicStroke(Style2D graphicStroke)
          Setter for property graphicStroke.
 void setStroke(Stroke stroke)
          Sets the stroke for the polyline to be rendered
 String toString()
          Returns a string representation of this style.
 
Methods inherited from class Style
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

contour

protected Paint contour

stroke

protected Stroke stroke

contourComposite

protected Composite contourComposite
Constructor Detail

LineStyle2D

public LineStyle2D()
Method Detail

getStroke

public 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(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 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(Paint contour)
Sets the contour color for the polyline to be rendered

Parameters:
contour -

getContourComposite

public 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(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 Style2D getGraphicStroke()
Getter for property graphicStroke.

Returns:
Value of property graphicStroke.

setGraphicStroke

public void setGraphicStroke(Style2D graphicStroke)
Setter for property graphicStroke.

Parameters:
graphicStroke - New value of property graphicStroke.

toString

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

Overrides:
toString in class Object


Copyright © 1996-2014 Geotools. All Rights Reserved.