public class BasicView extends java.lang.Object implements IManagedUpdateableListener, IManagedUpdateable, IView
Constructor and Description |
---|
BasicView()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
copy(IView otherObject)
Copy another IView's data into this, making it a copy.
|
boolean |
equals(java.lang.Object otherObject) |
Representation |
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.
|
java.util.ArrayList<SubscriptionType> |
getSubscriptions(IManagedUpdateable source)
Polls the listener for a list of the types of events it wants to receive
from the given source.
|
int |
hashCode() |
void |
refresh(IMesh model)
Refreshes the representation of the model.
|
void |
register(IManagedUpdateableListener listener)
Register a listener to receive managed updates.
|
void |
unregister(IManagedUpdateableListener listener)
Remove a registered listener.
|
void |
update(IManagedUpdateable component,
SubscriptionType[] type)
Receive an update, including the source component and type of event that
triggered the update.
|
public Representation getRepresentation()
IView
getRepresentation
in interface IView
public void refresh(IMesh model)
IView
public void register(IManagedUpdateableListener listener)
IManagedUpdateable
register
in interface IManagedUpdateable
listener
- The object which will receive future updatespublic void unregister(IManagedUpdateableListener listener)
IManagedUpdateable
unregister
in interface IManagedUpdateable
listener
- The object which will no longer receive notifications from
thispublic boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
public void update(IManagedUpdateable component, SubscriptionType[] type)
IManagedUpdateableListener
update
in interface IManagedUpdateableListener
component
- The updateable component the update is coming fromtype
- The event type that of the updatepublic java.lang.Object clone()
clone
in class java.lang.Object
public void copy(IView otherObject)
IView
public java.util.ArrayList<SubscriptionType> getSubscriptions(IManagedUpdateable source)
IManagedUpdateableListener
getSubscriptions
in interface IManagedUpdateableListener
source
- The object which this listener will listen topublic int hashCode()
hashCode
in class java.lang.Object