Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
The stroking primitives of the Graphics2D interface include the drawPath method and any other methods that are implemented in terms of that method such as drawLine, drawRect, drawRoundRect, drawOval, drawArc, drawPolyline, and drawPolygon.
The objects of the classes implementing Stroke must be immutable (i.e. read-only) because the Graphics2D will not clone these objects either when they are set as an attribute with the setStroke method or when the Graphics2D object is itself cloned. If a Stroke object were modified after it was set in the state of the Graphics2D then the behavior of subsequent rendering would be undefined.
Method Summary | |
Shape | createStrokedShape(Shape p)
|
Method Detail |
public Shape createStrokedShape(Shape p)
p
- The path that should be stroked.
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |