public class EdgeView extends AbstractMeshView
This class provides a basic view for an Edge, i.e., a line on the grid.
Constructor and Description |
---|
EdgeView(java.lang.String name,
com.jme3.material.Material material)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This operation returns a clone of the VertexController using a deep copy.
|
void |
copy(EdgeView view)
This operation copies the contents of a VertexController into the current
object using a deep copy.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between this VertexController
and another VertexController.
|
int |
hashCode()
This operation returns the hash value of the VertexController.
|
void |
setLine(com.jme3.math.Vector3f start,
com.jme3.math.Vector3f end)
Sets the start and end points for the EdgeView.
|
void |
setSize(float size)
Sets the current size of the vertex view's sphere.
|
copy, dispose, setColor, setParentNode
public EdgeView(java.lang.String name, com.jme3.material.Material material)
The default constructor.
public void setLine(com.jme3.math.Vector3f start, com.jme3.math.Vector3f end)
start
- The start of the Edge.end
- The end of the Edge.public void setSize(float size)
setSize
in class AbstractMeshView
size
- The new radius of the vertex view's sphere.public boolean equals(java.lang.Object otherObject)
This operation is used to check equality between this VertexController and another VertexController. It returns true if the objects are equal and false if they are not.
equals
in class AbstractMeshView
otherObject
- The other object that should be compared with this one.
True if the objects are equal, false otherwise.
public int hashCode()
This operation returns the hash value of the VertexController.
hashCode
in class AbstractMeshView
The hashcode of the object.
public void copy(EdgeView view)
This operation copies the contents of a VertexController into the current object using a deep copy.
view
- The object from which the values should be copied.
public java.lang.Object clone()
This operation returns a clone of the VertexController using a deep copy.
clone
in class AbstractMeshView
The new clone.