public class BezierEdge extends Edge
An Edge comprising a Bezier curve between its two Vertices.
component
iComponentListener
Constructor and Description |
---|
BezierEdge()
A nullary constructor.
|
BezierEdge(java.util.ArrayList<Vertex> vertices)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptMeshVisitor(IMeshPartVisitor visitor)
This method calls the
IMeshPartVisitor 's visit method. |
java.lang.Object |
clone()
This operation returns a clone of the BezierEdge using a deep copy.
|
void |
copy(BezierEdge edge)
This operation copies the contents of a BezierEdge into the current
object using a deep copy.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between this BezierEdge and
another BezierEdge.
|
int |
hashCode()
This operation returns the hash value of the BezierEdge.
|
copy, getEndLocation, getLength, getStartLocation, getVertexIds, unregister, update
copy, getDescription, getId, getName, register, setDescription, setId, setName, update
public BezierEdge()
A nullary constructor. This creates an Edge with no vertices and initializes any fields necessary for the minimal function of an Edge. Required for persistence.
public BezierEdge(java.util.ArrayList<Vertex> vertices)
The default constructor.
vertices
- The two Vertices this Edge connects.
public int hashCode()
This operation returns the hash value of the BezierEdge.
hashCode
in interface Identifiable
hashCode
in class Edge
The hash of the Object.
Identifiable.hashCode()
public boolean equals(java.lang.Object otherObject)
This operation is used to check equality between this BezierEdge and another BezierEdge. It returns true if the BezierEdges are equal and false if they are not.
equals
in interface Identifiable
equals
in class Edge
otherObject
- The other Object that should be compared with this one.
True if the Objects are equal, false otherwise.
Identifiable.equals(Object otherObject)
public void copy(BezierEdge edge)
This operation copies the contents of a BezierEdge into the current object using a deep copy.
edge
- The Object from which the values should be copied.
public java.lang.Object clone()
This operation returns a clone of the BezierEdge using a deep copy.
clone
in interface Identifiable
clone
in class Edge
The new clone.
public void acceptMeshVisitor(IMeshPartVisitor visitor)
This method calls the IMeshPartVisitor
's visit method.
acceptMeshVisitor
in interface IMeshPart
acceptMeshVisitor
in class Edge
visitor
-
The IMeshPartVisitor
that is visiting this
IMeshPart
.