|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectStyle
Style2D
LineStyle2D
public class LineStyle2D
A rendered style to draw the contour of shapes TODO: add support for Graphic rendering (that is, an image painted along the contour)
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 |
BufferedImage |
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(BufferedImage 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 |
---|
getMaxScale, getMinScale, isScaleInRange, setMinMaxScale |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Paint contour
protected Stroke stroke
protected Composite contourComposite
Constructor Detail |
---|
public LineStyle2D()
Method Detail |
---|
public Stroke getStroke()
null
if none.
public void setStroke(Stroke stroke)
stroke
- The stroke, or null if the contour doesn't need to be strokedpublic Paint getContour()
null
if none.
public void setContour(Paint contour)
contour
- public Composite getContourComposite()
null
if the contour is to be opaque
public void setContourComposite(Composite contourComposite)
null
if the contour is to be opaque
contourComposite
- public BufferedImage getGraphicStroke()
public void setGraphicStroke(BufferedImage graphicStroke)
graphicStroke
- New value of property graphicStroke.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |