public abstract class TemporaryObject
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
TemporaryObject(java.util.List<DirectedEdge> edges)
Construct a new TemporaryObject.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds()
Get the bounds of this object.
|
java.util.List<DirectedEdge> |
getEdges()
Get the edges of this object.
|
TemporaryObject |
getNeighbour(DirectedEdge edge)
Get the neighbour through a particular edge.
|
java.awt.Shape |
getShape()
Get the Shape of this object.
|
boolean |
isDuplicate(TemporaryObject other)
Check if this object is a duplicate of another.
|
boolean |
isEntirelyInside(TemporaryObject other)
Check if this object is a entirely inside another.
|
java.util.List<GMLCoordinates> |
makeGMLCoordinates()
Turn the edges into a list of coordinates.
|
protected void |
replaceEdge(Edge edge,
java.util.Collection<Edge> replacements)
Replace an edge with a set of replacement edges.
|
void |
setNeighbour(DirectedEdge edge,
TemporaryObject neighbour)
Set the neighbour through a particular edge.
|
void |
setNeighbour(Edge edge,
TemporaryObject neighbour)
Set the neighbour through a particular edge.
|
protected TemporaryObject(java.util.List<DirectedEdge> edges)
edges
- The edges of the object in counter-clockwise order.public java.util.List<DirectedEdge> getEdges()
public TemporaryObject getNeighbour(DirectedEdge edge)
edge
- The edge to look up.public void setNeighbour(DirectedEdge edge, TemporaryObject neighbour)
edge
- The edge to set the neighbour of.neighbour
- The new neighbour for that edge.public void setNeighbour(Edge edge, TemporaryObject neighbour)
edge
- The edge to set the neighbour of.neighbour
- The new neighbour for that edge.public java.util.List<GMLCoordinates> makeGMLCoordinates()
public java.awt.geom.Rectangle2D getBounds()
public java.awt.Shape getShape()
public boolean isDuplicate(TemporaryObject other)
other
- The other object to check against.public boolean isEntirelyInside(TemporaryObject other)
other
- The other object to check against.