Constructor and Description |
---|
TransformedStroke(Stroke base,
AffineTransform at)
Creates a TransformedStroke based on another Stroke
and an AffineTransform.
|
Modifier and Type | Method and Description |
---|---|
Shape |
createStrokedShape(Shape s)
Strokes the given Shape with this stroke, creating an outline.
|
Stroke |
getBaseStroke()
Gets basic stroke.
|
AffineTransform |
getTransform()
Gets a transformation.
|
public TransformedStroke(Stroke base, AffineTransform at)
Creates a TransformedStroke based on another Stroke and an AffineTransform.
base
- The stroke base.at
- The affine transformation.public AffineTransform getTransform()
Gets a transformation.
public Shape createStrokedShape(Shape s)
Strokes the given Shape with this stroke, creating an outline. This outline is distorted by our AffineTransform relative to the outline which would be given by the base stroke, but only in terms of scaling (i.e. thickness of the lines), as translation and rotation are undone after the stroking.
createStrokedShape
in interface Stroke
s
- As shape to be outlined.public Stroke getBaseStroke()
Gets basic stroke.