public class EdgeController extends BasicController implements ITransparentController, IWireframeController
Constructor and Description |
---|
EdgeController(Edge model,
BasicView view)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
double[] |
getEndLocation()
Gets the location for the edge's second vertex
|
double |
getLength()
Get the edge's length.
|
double[] |
getStartLocation()
Gets the location for the edge's first vertex.
|
boolean |
isTransparent()
Method to check whether or not the controller is currently in transparent
mode.
|
boolean |
isWireframe()
Method to check whether or not the controller is currently in wireframe
mode.
|
void |
setTransparentMode(boolean transparent)
Sets whether or not the part should be rendered transparently.
|
void |
setWireframeMode(boolean on)
Set the controller's view to display in either wireframe or filled mode
|
void |
update(IManagedUpdateable component,
SubscriptionType[] type)
Receive an update, including the source component and type of event that
triggered the update.
|
addEntity, addEntityToCategory, copy, dispose, equals, getDisposed, getEntities, getEntitiesFromCategory, getEntitiesFromCategory, getModel, getProperty, getRepresentation, getRotation, getScale, getSize, getSkew, getSubscriptions, getTransformation, getTranslation, getUpdateManager, getView, hashCode, isRoot, isSelected, refresh, register, removeEntity, setDisposed, setEntities, setProperties, setProperty, setRoot, setRotation, setScale, setSelected, setSize, setSkew, setTransformation, setTranslation, setView, unregister
getClass, notify, notifyAll, toString, wait, wait, wait
addEntity, addEntityToCategory, copy, dispose, getDisposed, getEntities, getEntitiesFromCategory, getEntitiesFromCategory, getModel, getProperty, getRepresentation, getRotation, getScale, getSize, getSkew, getTransformation, getTranslation, getUpdateManager, getView, isRoot, isSelected, refresh, removeEntity, setDisposed, setEntities, setProperties, setProperty, setRoot, setRotation, setScale, setSelected, setSize, setSkew, setTransformation, setTranslation, setView
register, unregister
getSubscriptions
public double[] getStartLocation()
public double[] getEndLocation()
public double getLength()
public void update(IManagedUpdateable component, SubscriptionType[] type)
IManagedUpdateableListener
update
in interface IManagedUpdateableListener
update
in class BasicController
component
- The updateable component the update is coming fromtype
- The event type that of the updatepublic java.lang.Object clone()
clone
in class BasicController
public boolean isWireframe()
IWireframeController
isWireframe
in interface IWireframeController
public void setWireframeMode(boolean on)
IWireframeController
setWireframeMode
in interface IWireframeController
on
- If true, sets the view to display its mesh in wireframe mode.
If false, sets the view to display its mesh normally.public boolean isTransparent()
ITransparentController
isTransparent
in interface ITransparentController
public void setTransparentMode(boolean transparent)
ITransparentController
setTransparentMode
in interface ITransparentController