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 TypeMethodDescriptionvoidAddsaModelto be displayed in thisILcdView.voidinvalidate(boolean aRepaint, Object aCaller, String aMessage) Invalidate the content of thisILcdView.booleanReturns whether the view's contents are automatically updated when necessary.voidremoveModel(ILcdModel aModel) Removes a single representation of the specified model from this view, if it is present in the view.voidsetAutoUpdate(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
AddsaModelto 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:
trueif the view automatically updates its representation on reception of any event that might require an update (e.g. when its properties change, when anObjectin a model has changed, or when a model has been added/removed).falseif 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 anObjectin a model has changed, or when a model has been added/removed). If false, the view must be repainted manually.- See Also:
-