Jazz API Documentation

edu.umd.cs.jazz.component
Interface ZStroke

All Superinterfaces:
ZAppearance
All Known Implementing Classes:
ZCoordList, ZRectangle

public interface ZStroke
extends ZAppearance

ZStroke represents the "stroke" attribute of a visual component. Any visual components that support a stroke should implement this interface. A stroke describes the rendering details of drawing a path - including details such as pen width, join style, cap style, and dashes.


Method Summary
 float getPenWidth()
          Get the width of the pen used to draw the visual component.
 java.awt.Stroke getStroke()
          Get the stroke used to draw the visual component.
 void setPenWidth(float width)
          Set the width of the pen used to draw the visual component.
 void setStroke(java.awt.Stroke stroke)
          Set the stroke used to draw the visual component.
 

Method Detail

getPenWidth

public float getPenWidth()
Get the width of the pen used to draw the visual component.
Returns:
the pen width.

setPenWidth

public void setPenWidth(float width)
Set the width of the pen used to draw the visual component. If the pen width is set here, then the stroke is set to solid (un-dashed), with a "butt" cap style, and a "bevel" join style.
Parameters:
width - the pen width.

getStroke

public java.awt.Stroke getStroke()
Get the stroke used to draw the visual component.
Returns:
the stroke.

setStroke

public void setStroke(java.awt.Stroke stroke)
Set the stroke used to draw the visual component.
Parameters:
stroke - the stroke.

Jazz API Documentation