|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<java.awt.geom.Point2D>
strokes.Stroke
public class Stroke
A stroke, i.e., a vector of points.
Field Summary | |
---|---|
static short |
HORIZONTAL_MIRROR
|
static short |
VERTICAL_MIRROR
|
Constructor Summary | |
---|---|
Stroke()
Builds an empty stroke. |
Method Summary | |
---|---|
Stroke |
append(Stroke stroke)
Builds a new stroke by concatenating another stroke to this stroke (it does not modify this stroke). |
static Stroke |
arc(double startAngle,
double extent,
boolean clockwise)
|
static Stroke |
arche()
|
static Stroke |
corner()
|
static Stroke |
cross()
|
static Stroke |
freeStroke(java.awt.geom.GeneralPath gp)
Computes a new stroke given a GeneralPath . |
static Stroke |
helix(double nbRevolutions,
double a,
double b)
|
static Stroke |
line()
|
static Stroke |
loop()
|
Stroke |
mirrorStroke(short axis)
Builds a new stroke by mirroring this stroke (it does not modify this stroke). |
Stroke |
rotateStroke(double angleInRadians)
Builds a new stroke by rotating this stroke (it does not modify this stroke). |
static Stroke |
spiral(double nbRevolutions)
|
static Stroke |
wave()
|
static Stroke |
zigzag()
|
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Field Detail |
---|
public static short VERTICAL_MIRROR
public static short HORIZONTAL_MIRROR
Constructor Detail |
---|
public Stroke()
Method Detail |
---|
public Stroke rotateStroke(double angleInRadians)
angleInRadians
- The angle in radians
angleInRadians
.public Stroke append(Stroke stroke)
stroke
- The stroke concatenate
stroke
to this stroke.public Stroke mirrorStroke(short axis)
axis
- The axis: VERTICAL_MIRROR
or HORIZONTAL_MIRROR
.
public static Stroke corner()
public static Stroke spiral(double nbRevolutions)
nbRevolutions
- The number of revolutions
public static Stroke helix(double nbRevolutions, double a, double b)
nbRevolutions
- The number of revolutions.a
- b
-
public static Stroke wave()
public static Stroke zigzag()
public static Stroke arche()
public static Stroke line()
public static Stroke arc(double startAngle, double extent, boolean clockwise)
startAngle
- The starting angleextent
- The extentclockwise
- The rotation direction (clockwise or counter clockwise)
public static Stroke loop()
public static Stroke cross()
public static Stroke freeStroke(java.awt.geom.GeneralPath gp)
GeneralPath
.
gp
- The general path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |