Note
An outline should be closed to be rendered as a region.
OutlineShape, Region
| Modifier and Type | Field and Description |
|---|---|
| private final AABBox | |
| private boolean | |
| private boolean | |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final void | |
| public final int | compareTo(final Outline
the object to be compared. other)Implements java. |
| public boolean | Returns: true ifobj is an Outline, not null, equals bounds and equal vertices in the same orderthe Object to compare this Outline with obj)Overrides java. |
| public final AABBox | |
| public final Vertex | |
| public final Vertex | |
| public final int | |
| public int | |
| public final ArrayList | |
| public final int | |
| public final boolean | |
| public final boolean | |
| public final Vertex | removeVertex(final int
of the to be removed Vertex position)Removes the |
| public final boolean | Returns: true if closing performed, otherwise false for NOPif true, a clone of the first vertex will be appended,
otherwise a clone of the last vertex will be prepended. closeTail)Ensure this outline is closed. |
| public final void | |
| public final void | setVertices(final ArrayList<Vertex>
the new outline loop/strip vertices)Use the given outline loop/strip. |
| public String | |
| public final Outline | transform(final AffineTransform t, final Vertex.
Return a transformed instance with all vertices are copied and transformed. |
| private final void |
| bbox | back to summary |
|---|---|
| private final AABBox bbox | |
| closed | back to summary |
|---|---|
| private boolean closed | |
| dirtyBBox | back to summary |
|---|---|
| private boolean dirtyBBox | |
| vertices | back to summary |
|---|---|
| private ArrayList<Vertex> vertices | |
| Outline | back to summary |
|---|---|
| public Outline() Create an outline defined by control vertices. An outline can contain off Curve vertices which define curved regions in the outline. | |
| Outline | back to summary |
|---|---|
| public Outline(final Outline src) Copy ctor | |
| addVertex | back to summary |
|---|---|
| public final void addVertex(final Vertex vertex) throws NullPointerException Appends a vertex to the outline loop/strip.
| |
| addVertex | back to summary |
|---|---|
| public final void addVertex(final int position, final Vertex vertex) throws NullPointerException, IndexOutOfBoundsException Insert the
| |
| compareTo | back to summary |
|---|---|
| public final int compareTo(final Outline other) Implements java. Compare two outline's Bounding Box size.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBounds | back to summary |
|---|---|
| public final AABBox getBounds() | |
| getLastVertex | back to summary |
|---|---|
| public final Vertex getLastVertex() | |
| getVertex | back to summary |
|---|---|
| public final Vertex getVertex(final int index) | |
| getVertexCount | back to summary |
|---|---|
| public final int getVertexCount() | |
| getVertexIndex | back to summary |
|---|---|
| public int getVertexIndex(final Vertex vertex) | |
| getVertices | back to summary |
|---|---|
| public final ArrayList | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isClosed | back to summary |
|---|---|
| public final boolean isClosed() | |
| isEmpty | back to summary |
|---|---|
| public final boolean isEmpty() | |
| removeVertex | back to summary |
|---|---|
| public final Vertex removeVertex(final int position) throws IndexOutOfBoundsException Removes the Sets the bounding box dirty, hence a next call to
| |
| setClosed | back to summary |
|---|---|
| public final boolean setClosed(final boolean closeTail) Ensure this outline is closed.
Checks whether the last vertex equals to the first.
If not equal, it either appends a clone of the first vertex
or prepends a clone of the last vertex, depending on
| |
| setVertex | back to summary |
|---|---|
| public final void setVertex(final int position, final Vertex vertex) throws NullPointerException, IndexOutOfBoundsException Replaces the Sets the bounding box dirty, hence a next call to
| |
| setVertices | back to summary |
|---|---|
| public final void setVertices(final ArrayList<Vertex> vertices) Use the given outline loop/strip. Validates the bounding box. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| transform | back to summary |
|---|---|
| public final Outline transform(final AffineTransform t, final Vertex. Return a transformed instance with all vertices are copied and transformed. | |
| validateBoundingBox | back to summary |
|---|---|
| private final void validateBoundingBox() | |