edu.umd.cs.piccolox.util
Class PSemanticStroke
java.lang.Object
edu.umd.cs.piccolox.util.PSemanticStroke
- All Implemented Interfaces:
- Stroke
- Direct Known Subclasses:
- PFixedWidthStroke
abstract class PSemanticStroke
- extends Object
- implements Stroke
- Version:
- 1.3
- Author:
- Marcus Rohrmoser
- See Also:
PPath,
Stroke
THRESHOLD
protected static final double THRESHOLD
- See Also:
- Constant Field Values
stroke
protected final Stroke stroke
PSemanticStroke
protected PSemanticStroke(Stroke stroke)
createStrokedShape
public Shape createStrokedShape(Shape s)
- Ask
getActiveScale(), call newStroke(float) if
necessary and delegate to Stroke.createStrokedShape(Shape).
- Specified by:
createStrokedShape in interface Stroke
- Parameters:
s -
equals
public boolean equals(Object obj)
- Returns true if this stroke is equivalent to the object provided.
- Overrides:
equals in class Object
- Parameters:
obj - Object being tested
- Returns:
- true if object is equivalent
getActiveScale
protected float getActiveScale()
- Detect the current scale. Made protected to enable custom
re-implementations.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
newStroke
protected abstract Stroke newStroke(float activeScale)
- Factory to create a new internal stroke delegate. Made protected to
enable custom re-implementations.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 1995-2010 Piccolo2D. All Rights Reserved.