public interface ILcdView extends ILcdPropertyChangeSource
ILcdView
displays zero or more ILcdModel
objects.
Each ILcdModel
can be displayed more than once
(usually in another way).
An ILcdView
does not necessarily use ILcdLayer
objects for displaying models.
Modifier and Type | Method and Description |
---|---|
void |
addModel(ILcdModel aModel)
Adds
aModel to be displayed in this ILcdView . |
void |
invalidate(boolean aRepaint,
Object aCaller,
String aMessage)
Invalidate the content of this
ILcdView . |
boolean |
isAutoUpdate()
Returns whether the view's contents are automatically updated when necessary.
|
void |
removeModel(ILcdModel aModel)
Removes a single representation of the specified model from this
view, if it is present in the view.
|
void |
setAutoUpdate(boolean aAutoUpdate)
Sets whether to update the view's representation automatically to keep it in sync with its
state and the state of its models.
|
addPropertyChangeListener, removePropertyChangeListener
void addModel(ILcdModel aModel)
aModel
to be displayed in this ILcdView
.IllegalArgumentException
- if the model is null
, or if
the model is not supported by the viewvoid removeModel(ILcdModel aModel)
void invalidate(boolean aRepaint, Object aCaller, String aMessage)
ILcdView
.aRepaint
- if true, this ILcdView shall be repainted immediately.aCaller
- the class instance that calls this method. Used for tracing.aMessage
- a message associated with this call. Used for tracing.boolean isAutoUpdate()
true
if the view automatically updates its representation on reception of
any event that might require an update (e.g. when its properties change, when an
Object
in a model has changed, or when a model has been added/removed).
false
if the view must be repainted manually.setAutoUpdate(boolean)
void setAutoUpdate(boolean aAutoUpdate)
aAutoUpdate
- if true
, the view automatically updates its representation on
reception of any event that might require an update (e.g. when its
properties change, when an Object
in a model has changed, or
when a model has been added/removed). If false, the view must be repainted
manually.isAutoUpdate()