public class EdgeController extends AbstractMeshController
This class provides a controller for Edge instances, and it creates an EdgeView for an Edge. It also listens for changes to its Edge, at which point it updates its EdgeView. It can also send updates to the Edge model based on user input.
component
Constructor and Description |
---|
EdgeController(Edge edge,
java.util.concurrent.ConcurrentLinkedQueue<AbstractMeshController> queue,
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 Edge using a deep copy.
|
void |
copy(AbstractMeshController controller)
This operation copies the contents of a Edge into the current object
using a deep copy.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between this Edge and another
Edge.
|
int |
hashCode()
This operation returns the hash value of the Edge.
|
void |
syncView()
(non-Javadoc)
|
void |
update(IUpdateable component)
Overrides the default behavior to make sure the appropriate properties
that derive directly from the model get marked as dirty.
|
dispose, getInverseScale, getParentNode, getScale, getSize, getState, setParentNode, setScale, setSize, setState
public EdgeController(Edge edge, java.util.concurrent.ConcurrentLinkedQueue<AbstractMeshController> queue, com.jme3.material.Material material)
The default constructor.
edge
- The Edge managed by this controller.
queue
- The queue used for updating views handled by this and other controllers.
public boolean equals(java.lang.Object otherObject)
This operation is used to check equality between this Edge and another Edge. It returns true if the objects are equal and false if they are not.
equals
in class AbstractMeshController
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 Edge.
hashCode
in class AbstractMeshController
The hashcode of the object.
public void copy(AbstractMeshController controller)
This operation copies the contents of a Edge into the current object using a deep copy.
copy
in class AbstractMeshController
controller
- The object from which the values should be copied.
public java.lang.Object clone()
This operation returns a clone of the Edge using a deep copy.
clone
in class AbstractMeshController
The new clone.
public void syncView()
syncView
in class AbstractMeshController
AbstractMeshController.syncView()
public void update(IUpdateable component)
update
in interface IUpdateableListener
update
in class AbstractMeshController
component
- The component that was updated in some way.