com.davisor.graphics
Class ScaledStroke
java.lang.Object
java.awt.BasicStroke
com.davisor.graphics.ScaledStroke
- All Implemented Interfaces:
- com.davisor.core.Dupable, java.awt.Stroke
- public class ScaledStroke
- extends java.awt.BasicStroke
- implements com.davisor.core.Dupable
ScaledStroke allows convenient BasicStroke scaling. Like
BasicStroke, ScaledStroke is immutable.
- Since:
- JDK1.2
| Fields inherited from class java.awt.BasicStroke |
CAP_BUTT, CAP_ROUND, CAP_SQUARE, JOIN_BEVEL, JOIN_MITER, JOIN_ROUND |
|
Constructor Summary |
ScaledStroke(java.awt.BasicStroke stroke,
float scale)
|
|
Method Summary |
com.davisor.core.Dupable |
dup()
"Duplicates" this immutable object. |
float |
getScale()
Gets the scaling factor that this stroke was created with. |
java.awt.BasicStroke |
getStroke()
Gets the basic stroke that this stroke was created from. |
| Methods inherited from class java.awt.BasicStroke |
createStrokedShape, equals, getDashArray, getDashPhase, getEndCap, getLineJoin, getLineWidth, getMiterLimit, hashCode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ScaledStroke
public ScaledStroke(java.awt.BasicStroke stroke,
float scale)
dup
public com.davisor.core.Dupable dup()
- "Duplicates" this immutable object. In practice, it returns a
reference to this object.
- Specified by:
dup in interface com.davisor.core.Dupable
getScale
public float getScale()
- Gets the scaling factor that this stroke was created with.
getStroke
public java.awt.BasicStroke getStroke()
- Gets the basic stroke that this stroke was created from.
Copyright © 2001-2004 Davisor Oy. All Rights Reserved.