Modifier and Type | Field and Description |
---|---|
protected Stroke |
stroke |
protected static double |
THRESHOLD |
Modifier | Constructor and Description |
---|---|
protected |
PSemanticStroke(Stroke stroke) |
Modifier and Type | Method and Description |
---|---|
Shape |
createStrokedShape(Shape s)
Ask
getActiveScale() , call newStroke(float) if
necessary and delegate to Stroke.createStrokedShape(Shape) . |
boolean |
equals(Object obj)
Returns true if this stroke is equivalent to the object provided.
|
protected float |
getActiveScale()
Detect the current scale.
|
int |
hashCode() |
protected abstract Stroke |
newStroke(float activeScale)
Factory to create a new internal stroke delegate.
|
String |
toString() |
protected static final double THRESHOLD
protected final Stroke stroke
protected PSemanticStroke(Stroke stroke)
public Shape createStrokedShape(Shape s)
getActiveScale()
, call newStroke(float)
if
necessary and delegate to Stroke.createStrokedShape(Shape)
.createStrokedShape
in interface Stroke
s
- public boolean equals(Object obj)
protected float getActiveScale()
protected abstract Stroke newStroke(float activeScale)
Copyright © 1995-2012 Piccolo2D. All Rights Reserved.