Package com.luciad.lucy.map
Class TLcyAreaOfInterestLayer
java.lang.Object
com.luciad.view.TLcdLayer
com.luciad.view.gxy.TLcdGXYLayer
com.luciad.lucy.map.TLcyAreaOfInterestLayer
- All Implemented Interfaces:
ILcdPropertyChangeSource
,ILcdSelection<Object>
,ILcdGXYEditableLabelsLayer
,ILcdGXYLayer
,ILcdLayer
,Serializable
Layer used to display the users area of interest. All actions that require a
certain area to work on, can use this area.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The display name of a model descriptor of an area of interest layer.static final String
The type name of a model descriptor of an area of interest layer.Fields inherited from interface com.luciad.view.gxy.ILcdGXYEditableLabelsLayer
PLACED_LABELS
-
Constructor Summary
ConstructorDescriptionCreates a new un-initializedTLcyAreaOfInterestLayer
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the active area of interest.Returns the lon lat bounds of this area of interest layer.void
moveLonLatBounds2D
(double aX, double aY, boolean aUpdateModel) Moves the bounds of the currently active area of interest of thisTLcyAreaOfInterestLayer
.void
setActiveAreaOfInterest
(ILcd2DEditableBounds aAreaOfInterest) Sets the active area of interest.void
setLonLatBounds
(TLcdLonLatBounds aLonLatBounds) Changes the lon lat bounds of the currently active TLcyAreaOfInterestObject of thisTLcyAreaOfInterestLayer
.void
setLonLatBoundsHeight
(double aHeight, boolean aUpdateModel) Sets the height of the currently active area of interest.void
setLonLatBoundsWidth
(double aWidth, boolean aUpdateModel) Sets the width of the currently active area of interest.Methods inherited from class com.luciad.view.gxy.TLcdGXYLayer
applyOnInteract, applyOnInteract, applyOnInteract, applyOnInteractLabels, asFactory, create, getBounds, getGXYEditor, getGXYEditorProvider, getGXYLabelEditor, getGXYLabelEditorProvider, getGXYLabelingAlgorithm, getGXYLabelingAlgorithmProvider, getGXYLabelPainter, getGXYLabelPainterProvider, getGXYLayerLabelPainter, getGXYPainter, getGXYPainterProvider, getGXYPainterProviderArray, getGXYPainters, getGXYPen, getIcon, getInteractMargin, getLabelLocations, getLabelMapScaleRange, getLabelScaleRange, getMapScaleRange, getMinimumObjectSizeForPainting, getModelElementComparator, getModelQueryConfiguration, getModelXYWorldTransfoClass, getPaintLabelsScaleRatioInterval, getScaleRange, isEditableSupported, isLabeled, isLabeledSupported, isLabelsEditable, isLabelsEditableSupported, isPaintFromOverlaps, isSelectionLabeled, isStopPainting, isTraceOn, modeToString, paint, paintFromModel, paintFromOverlaps, setClassTraceOn, setFilter, setGXYEditorProvider, setGXYLabelEditorProvider, setGXYLabelingAlgorithmProvider, setGXYLabelPainterProvider, setGXYLayerLabelPainter, setGXYPainterProvider, setGXYPainterProviderArray, setGXYPen, setIcon, setInteractMargin, setLabeled, setLabelLocations, setLabelMapScaleRange, setLabelScaleRange, setLabelsEditable, setMapScaleRange, setMinimumObjectSizeForPainting, setModel, setModelElementComparator, setModelQueryConfiguration, setModelXYWorldTransfoClass, setPaintFromOverlaps, setPaintLabelsScaleRatioInterval, setScaleRange, setSelectionLabeled, setTraceOn, setVisible, startPainting, stopPainting
Methods inherited from class com.luciad.view.TLcdLayer
addPropertyChangeListener, addSelectionListener, clearSelection, fireCollectedSelectionChanges, firePropertyChangeEvent, getFilter, getLabel, getModel, getSelectionCount, invalidate, isEditable, isSelectable, isSelectableSupported, isSelected, isVisible, removePropertyChangeListener, removeSelectionListener, selectedObjects, selectObject, selectObjects, setEditable, setLabel, setSelectable, setSelectableSupported, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.view.ILcdLayer
clearSelection, fireCollectedSelectionChanges, getLabel, getModel, isEditable, isSelectable, isSelectableSupported, isVisible, selectObject, setEditable, setLabel, setSelectable
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.luciad.util.ILcdSelection
addSelectionListener, getSelectedObjects, getSelectionCount, isSelected, removeSelectionListener, selectedObjects
-
Field Details
-
MODEL_TYPE_NAME
The type name of a model descriptor of an area of interest layer.- See Also:
-
MODEL_DISPLAY_NAME
The display name of a model descriptor of an area of interest layer.
-
-
Constructor Details
-
TLcyAreaOfInterestLayer
public TLcyAreaOfInterestLayer()Creates a new un-initializedTLcyAreaOfInterestLayer
. UseTLcyMapComponentFactory.createGXYLayer(int, TLcyMapComponent)
with IDTLcyMapComponentFactory.AREA_OF_INTEREST_LAYER
to create a usable AOI layer.
-
-
Method Details
-
setActiveAreaOfInterest
Sets the active area of interest. This cannot be null. If a null value is passed as a parameter nothing will happen. When the ILcd2DEditableBounds instance passed as parameter is not yet present in the model of this layer, it will be added to the model
Note that the type of the bounds passed as a parameter should correspond to the reference of the model of this Area of Interest layer.- Parameters:
aAreaOfInterest
- The ILcd2DEditableBounds to set as the active Area Of Interest
-
getActiveAreaOfInterest
Returns the active area of interest. This is an actual reference to the active Area of Interest, which means you can adjust the dimensions of these bounds to adjust the active Area of Interest.- Returns:
- The active area of interest.
-
getLonLatBounds
Returns the lon lat bounds of this area of interest layer. This means the active area of interest shall be transformed from the reference of the model to the WGS 84 geodetic reference. Note that the bounds returned by this method have no reference to the actual active Area of Interest. Making modifications to these bounds shall have no effect on the active Area of Interest.- Returns:
- the lon lat bounds of this area of interest layer.
-
setLonLatBounds
Changes the lon lat bounds of the currently active TLcyAreaOfInterestObject of thisTLcyAreaOfInterestLayer
. These bounds are interpreted as WGS84 bounds and shall be transformed to the modelreference of this layer.- Parameters:
aLonLatBounds
- The lon lat bounds.
-
moveLonLatBounds2D
public void moveLonLatBounds2D(double aX, double aY, boolean aUpdateModel) Moves the bounds of the currently active area of interest of thisTLcyAreaOfInterestLayer
. The coordinates aX and aY are interpreted as a WGS84 coordinates and will be transformed to the reference of the model of this layer.- Parameters:
aX
- The longitude.aY
- The latitude.aUpdateModel
- True if it should warn the model that an element has changed.
-
setLonLatBoundsHeight
public void setLonLatBoundsHeight(double aHeight, boolean aUpdateModel) Sets the height of the currently active area of interest. This height is interpreted as the height in a WGS84 reference and shall be transformed according to the reference of the model of this layer.- Parameters:
aHeight
- The height of the bounds, in degrees.aUpdateModel
- True if it should warn the model that an element has changed.
-
setLonLatBoundsWidth
public void setLonLatBoundsWidth(double aWidth, boolean aUpdateModel) Sets the width of the currently active area of interest. This width is interpreted as the width in a WGS84 reference and shall be transformed according to the reference of the model of this layer.- Parameters:
aWidth
- The width of the bounds, in degrees.aUpdateModel
- True if it should warn the model that an element has changed.
-