edu.umd.cs.piccolox.util
Class PSemanticStroke
java.lang.Object
edu.umd.cs.piccolox.util.PSemanticStroke
- All Implemented Interfaces:
- java.awt.Stroke
- Direct Known Subclasses:
- PFixedWidthStroke
abstract class PSemanticStroke
- extends java.lang.Object
- implements java.awt.Stroke
- Version:
- 1.3
- Author:
- Marcus Rohrmoser
- See Also:
PPath
,
Stroke
Field Summary |
protected java.awt.Stroke |
stroke
|
protected static double |
THRESHOLD
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
THRESHOLD
protected static final double THRESHOLD
- See Also:
- Constant Field Values
stroke
protected final java.awt.Stroke stroke
PSemanticStroke
protected PSemanticStroke(java.awt.Stroke stroke)
createStrokedShape
public java.awt.Shape createStrokedShape(java.awt.Shape s)
- Ask
getActiveScale()
, call newStroke(float)
if
necessary and delegate to Stroke.createStrokedShape(Shape)
- Specified by:
createStrokedShape
in interface java.awt.Stroke
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getActiveScale
protected float getActiveScale()
- Detect the current scale. Made protected to enable custom
re-implementations.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
newStroke
protected abstract java.awt.Stroke newStroke(float activeScale)
- Factory to create a new internal stroke delegate. Made protected to
enable custom re-implementations.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1995-2009 Piccolo2D. All Rights Reserved.