|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
BasicStroke
,
Graphics2D.setStroke(java.awt.Stroke)
Method Summary | |
Shape | createStrokedShape(Shape p)
Returns a path which encloses the area that should be painted when the path is stroked according to the rules defined by the object implementing the Stroke interface. |
Method Detail |
public Shape createStrokedShape(Shape p)
p
- The path that should be stroked.
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |