public class FXVertexView extends BasicView implements ITransparentView, IWireframeView
Constructor and Description |
---|
FXVertexView()
The nullary constructor.
|
FXVertexView(Vertex model)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
int |
getApplicationScale()
Get the scale of the application the view is drawn in.
|
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 |
setApplicationScale(int scale)
Sets the scale of the application this vertex will be displayed in.
|
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 FXVertexView()
public FXVertexView(Vertex model)
model
- The model which this view will displaypublic int getApplicationScale()
public void setController(IController controller)
controller
- This view's controllerpublic void setApplicationScale(int scale)
scale
- The conversion factor between JavaFX units and the logical
units used by the application.public 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