public class FXLinearEdgeView extends BasicView implements ITransparentView, IWireframeView
Constructor and Description |
---|
FXLinearEdgeView()
The nullary constructor.
|
FXLinearEdgeView(Edge model)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
Representation<javafx.scene.Group> |
getRepresentation()
Creates a representation wrapping an object which represents the part's
model in a native data type for the application associated with this
view.
|
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 |
refresh(IMesh model)
Refreshes the representation of the model.
|
void |
setController(IController controller)
Associates the view's controller with the representation's data
structure, so that user interactions with the displayed shape will have a
way be associated back to the controller.
|
void |
setTransparentMode(boolean transparent)
Sets whether or not the view should be rendered transparently.
|
void |
setWireframeMode(boolean on)
Set the view to display in either wireframe or filled mode
|
copy, equals, getSubscriptions, hashCode, register, unregister, update
getClass, notify, notifyAll, toString, wait, wait, wait
register, unregister
getSubscriptions, update
public FXLinearEdgeView()
public FXLinearEdgeView(Edge model)
model
- The model which this view will displaypublic void setController(IController controller)
controller
- This view's controllerpublic Representation<javafx.scene.Group> getRepresentation()
IView
getRepresentation
in interface IView
getRepresentation
in class BasicView
public void refresh(IMesh model)
IView
public boolean isWireframe()
IWireframeView
isWireframe
in interface IWireframeView
public void setWireframeMode(boolean on)
IWireframeView
setWireframeMode
in interface IWireframeView
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()
ITransparentView
isTransparent
in interface ITransparentView
public void setTransparentMode(boolean transparent)
ITransparentView
setTransparentMode
in interface ITransparentView