Package com.luciad.view
Interface ILcdView
- All Superinterfaces:
ILcdPropertyChangeSource
- All Known Subinterfaces:
ILcdGXYView
,ILcdRotationCapableGXYView
,ILspAWTView
,ILspView
- All Known Implementing Classes:
ALspAWTView
,TLcdGXYViewBufferedImage
,TLcdGXYViewCanvas
,TLcdGXYViewJPanel
,TLcdGXYViewJPanelLightWeight
,TLcdGXYViewPanel
,TLcdGXYViewPlanarImage
,TLcdMapBufferedImage
,TLcdMapCanvas
,TLcdMapJPanel
,TLcdMapJPanelLightWeight
,TLcdMapPanel
,TLspAWTView
,TLspExternalView
,TLspFXView
,TLspOffscreenView
,TLspSwingView
An
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddsaModel
to be displayed in thisILcdView
.void
invalidate
(boolean aRepaint, Object aCaller, String aMessage) Invalidate the content of thisILcdView
.boolean
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.Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Method Details
-
addModel
AddsaModel
to be displayed in thisILcdView
.- Throws:
IllegalArgumentException
- if the model isnull
, or if the model is not supported by the view
-
removeModel
Removes a single representation of the specified model from this view, if it is present in the view. -
invalidate
Invalidate the content of thisILcdView
.- Parameters:
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.
-
isAutoUpdate
boolean isAutoUpdate()Returns whether the view's contents are automatically updated when necessary.- Returns:
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 anObject
in a model has changed, or when a model has been added/removed).false
if the view must be repainted manually.- See Also:
-
setAutoUpdate
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.- Parameters:
aAutoUpdate
- iftrue
, the view automatically updates its representation on reception of any event that might require an update (e.g. when its properties change, when anObject
in a model has changed, or when a model has been added/removed). If false, the view must be repainted manually.- See Also:
-