|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnodebox.graphics.AbstractTransformable
nodebox.graphics.AbstractGeometry
public abstract class AbstractGeometry
| Field Summary |
|---|
| Fields inherited from interface nodebox.graphics.IGeometry |
|---|
DEFAULT_POINT_AMOUNT |
| Constructor Summary | |
|---|---|
AbstractGeometry()
|
|
| Method Summary | |
|---|---|
abstract IGeometry |
clone()
Clone the geometry, returning a new copy that is totally independent from the original. |
void |
extend(Iterator<Point> points)
Extend the current geometry with the given list of points. |
void |
extend(Point[] points)
Extend the current geometry with the given list of points. |
Point[] |
makePoints()
Make 100 new points along the contours of the existing path. |
Point[] |
makePoints(int amount)
Make 100 new points along the contours of the existing path. |
abstract AbstractGeometry |
mapPoints(com.google.common.base.Function<Point,Point> pointFunction)
Change all points in the geometry and return a mutated copy. |
abstract Point |
pointAt(double t)
|
protected double |
pointDelta(int amount,
boolean closed)
Calculate how far the points would be apart, given the specified amount and whether the geometry is closed. |
| Methods inherited from class nodebox.graphics.AbstractTransformable |
|---|
getTransformDelegate, rotate, rotateRadians, scale, scale, setTransformDelegate, skew, skew, translate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nodebox.graphics.IGeometry |
|---|
addPoint, addPoint, flatten, flattened, getPointCount, getPoints, makePoints, resampleByAmount, resampleByLength |
| Methods inherited from interface nodebox.graphics.Grob |
|---|
getBounds, getTransformDelegate, isEmpty, rotate, rotateRadians, scale, scale, setTransformDelegate, skew, skew, transform, translate |
| Methods inherited from interface nodebox.graphics.Drawable |
|---|
draw |
| Constructor Detail |
|---|
public AbstractGeometry()
| Method Detail |
|---|
public void extend(Iterator<Point> points)
extend in interface IGeometrypoints - the points to add to the geometry.public void extend(Point[] points)
extend in interface IGeometrypoints - the points to add to the geometry.public Point[] makePoints()
makePoints in interface IGeometrypublic Point[] makePoints(int amount)
IGeometry
makePoints in interface IGeometryamount - the amount of points to distribute.
protected double pointDelta(int amount,
boolean closed)
amount - the amount of pointsclosed - whether the geometry is closed
public abstract Point pointAt(double t)
public abstract IGeometry clone()
IGeometry
clone in interface Grobclone in interface IGeometryclone in class AbstractTransformablepublic abstract AbstractGeometry mapPoints(com.google.common.base.Function<Point,Point> pointFunction)
pointFunction - The function to apply to each point.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||