Package com.luciad.view.gxy
Class TLcdGXYLayerList
java.lang.Object
com.luciad.view.gxy.TLcdGXYLayerList
- All Implemented Interfaces:
ILcdPropertyChangeSource,ILcdSelection<Object>,ILcdGXYLayer,ILcdGXYLayerList,ILcdLayer,Serializable
- Direct Known Subclasses:
TLcdS52GXYCatalogueLayerList,TLcdS52GXYLevelLayerList
Deprecated.
Default implementation of a
ILcdGXYLayerList.
It provides functionality to:
- listen to property changes of the list, even if these are caused by the sublayers,
- listen to selection changes of any sublayer in the list,
- set properties of the list, which are applied to all sublayers,
- poll properties of the list, which are combined values of the sublayers.
Since a layer list is an implementation of ILcdGXYLayer, it is regarded as such by the view to which
it is added. Some care should thus be taken for certain operations:
- Polling property values should be done on the layer list level. For example, this implementation will return true for the visible property when one of the sublayers is visible. However, it is still possible that some of the sublayers are invisible.
- Setting property values may be done on the sublayer, but there may be no effect on the layer list properties. For example: setting a sublayer invisible, while other sublayers are still visible will not change the value of the visible property for the list.
- Listeners should be added to the layer list. This implementation ensures that the proper listeners are added to the sublayers. Adding a listener to a sublayer will prevent notification of changes in other sublayers. Adding a listener to both the sublayer and the layer list will notify the listeners of the same change twice.
By overriding the method canAddSubGXYLayer(ILcdGXYLayer) method the layers to add to this list can be
restricted, which would for example enable the creation of a layer list that represents a theme.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanDeprecated.Indicates whether tracing information should be generated on the log or not. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a layer list with no layers.TLcdGXYLayerList(TLcdModelList aModelList, ILcdGXYLayerFactory aGXYLayerFactory) Deprecated.Constructor to create a TLcdGXYLayerList based on an existing TLcdModelList. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aListener) Deprecated.Adds a listener that will be notified of any changes of properties of this list.voidaddSelectionListener(ILcdSelectionListener aListener) Deprecated.Adds a listener that will be notified of changes to the selection of sublayers in this list.voidaddSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Adds the givenILcdGXYLayeras a sublayer to thisILcdGXYLayerList.voidaddSubGXYLayer(ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) Deprecated.Adds the givenILcdGXYLayeras a sublayer, accompanied by a filter to determine whether an object is in the sublayers model or not.intapplyOnInteract(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView) Deprecated.Passes the function to apply to all of the visible sub layers as long as the function returns true for objects in that sublayer.booleancanAddSubGXYLayer(ILcdGXYLayer aSubGXYLayer) Deprecated.Returns whether the sublayer can be added, meaning it has the sameILcdModelXYWorldTransfoclass set as the layers already in the list, and itsILcdModelhas the sameILcdModelReference.voidclearSelection(int aDispatchEventMode) Deprecated.Clears the selection on all sublayers.booleancontainsSubGXYLayer(ILcdGXYLayer aSubGXYLayer) Deprecated.Checks whether the sublayer is in thisILcdGXYLayerList.voidDeprecated.Fires events for all selection events collected by all sublayers.protected voidDeprecated.Fire an existing PropertyChangeEvent to any registered listeners.getBounds(int aMode, ILcdGXYView aGXYView) Deprecated.Returns the union of the bounds of the sublayers.getGXYEditor(Object aObject) Deprecated.Finds a suitable editor for the given object by requesting the sublayers for a suitable editor.getGXYLabelPainter(Object aObject) Deprecated.Finds a suitable label painter for the given object by requesting the sublayers for a suitable label painter.getGXYPainter(Object aObject) Deprecated.Finds a suitable painter for the given object by requesting the sublayers for a suitable painter.Deprecated.Returns the pen used for all basic drawing operations for all sublayers.getIcon()Deprecated.Returns a small graphical representation for this layer list.getLabel()Deprecated.Returns the short textual representation for this list.Deprecated.Returns the union of all label scale ranges of the sublayers.getModel()Deprecated.Returns a model list that contains all models of the layers in this list as submodels.Deprecated.Returns the class of the transformation used to transform model coordinates to view coordinates.getObjectInLayerFilter(ILcdGXYLayer aSubGXYLayer) Deprecated.Returns the filter used to find objects in the given sublayer.Deprecated.Returns the union of all scale ranges of the sublayers.intDeprecated.Returns the sum of all selection counts of all sublayers.getSubGXYLayer(int aIndex) Deprecated.Returns the sublayer at the location with the given index in the list.intDeprecated.Returns the number of sublayers in thisILcdGXYLayerList.intindexOf(ILcdGXYLayer aSubGXYLayer) Deprecated.Gets the index of the given sublayer.voidinsertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Inserts the givenILcdGXYLayeras a sublayer at the given index.voidinsertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) Deprecated.Inserts the givenILcdGXYLayeras a sublayer at the given index, accompanied by a filter to determine whether an object is in the sublayers model or not.booleanDeprecated.Returns whether at least one of the sublayers is editable.booleanDeprecated.Returns whether at least one of the sublayers supports editing.booleanDeprecated.Returns whether at least one of the sublayers is labeled.booleanDeprecated.Returns whether at least one of the sublayers supports labeling.protected booleanisObjectInLayer(Object aObject, ILcdGXYLayer aGXYLayer) Deprecated.Determines if the given layers model contains the given object, by checking if the object passes the filter associated with the layer.booleanDeprecated.Returns whether at least one of the sublayers is selectable.booleanDeprecated.Returns whether at least on the sublayers supports selection.booleanisSelected(Object aObject) Deprecated.Returns whether an object is selected in any of the sublayers.booleanDeprecated.Returns whether at least one of the sublayers is visible.voidmoveSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Moves the givenILcdGXYLayerat the given index.voidpaint(Graphics aGraphics, int aMode, ILcdGXYView aGXYView) Deprecated.Paints all sublayers, one by one.voidremoveAllSubGXYLayers(boolean aIsAdjusting) Deprecated.Removes all sublayers from this list.voidDeprecated.Removes a listener that will no longer be notified of any changes of properties of this list.voidremoveSelectionListener(ILcdSelectionListener aListener) Deprecated.Removes a listener that will no longer be notified of changes to the selection of sublayers in this list.voidremoveSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Removes the sublayer from this list.Deprecated.Returns a collection of all selected objects in all sublayers.voidselectObject(Object aObject, boolean aSelection, int aDispatchEventMode) Deprecated.Selects or deselects an object in the last sublayer in which it appears.voidsetEditable(boolean aEditable) Deprecated.Sets all sublayers editable.voidsetGXYPen(ILcdGXYPen aGXYPen) Deprecated.The pen to use for all basic drawing operations for all sublayers.voidDeprecated.Sets the small graphical representation for this layer list.voidDeprecated.Sets the short textual representation for this list.voidsetLabeled(boolean aLabeled) Deprecated.Sets all sublayers labeled or not labeled.voidsetSelectable(boolean aSelectable) Deprecated.Sets all sublayers selectable at once.voidsetVisible(boolean aVisible) Deprecated.Sets the visibility of all sublayers at once.voidDeprecated.Stops painting on all sublayers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.view.gxy.ILcdGXYLayer
getLabelMapScaleRange, getMapScaleRangeMethods inherited from interface com.luciad.util.ILcdSelection
getSelectedObjects
-
Field Details
-
TRACEON
public static boolean TRACEONDeprecated.Indicates whether tracing information should be generated on the log or not.
-
-
Constructor Details
-
TLcdGXYLayerList
public TLcdGXYLayerList()Deprecated.Creates a layer list with no layers. Note that in order to render this list, at least the pen should be set.- See Also:
-
TLcdGXYLayerList
Deprecated.Constructor to create a TLcdGXYLayerList based on an existing TLcdModelList. The layers for the individual models of the model set are created using the given layer factory. Only layers which passcanAddSubGXYLayer(ILcdGXYLayer)will be added. Note that in order to render this list, the pen should be set explicitly withsetGXYPen(ILcdGXYPen).- Parameters:
aModelList- Model set for which the layer list has to be created.aGXYLayerFactory- Layer factory for creating layers for the individual models of the set.- See Also:
-
-
Method Details
-
firePropertyChange
Deprecated.Fire an existing PropertyChangeEvent to any registered listeners.- Parameters:
aEvent- The PropertyChangeEvent object.
-
getSubGXYLayerCount
public int getSubGXYLayerCount()Deprecated.Description copied from interface:ILcdGXYLayerListReturns the number of sublayers in thisILcdGXYLayerList.- Specified by:
getSubGXYLayerCountin interfaceILcdGXYLayerList- Returns:
- the number of sublayers in this
ILcdGXYLayerList.
-
addSubGXYLayer
public void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Adds the givenILcdGXYLayeras a sublayer to thisILcdGXYLayerList. This implementation delegates toaddSubGXYLayer(ILcdGXYLayer, com.luciad.util.ILcdFilter, boolean)with a null filter.- Specified by:
addSubGXYLayerin interfaceILcdGXYLayerList- Parameters:
aSubGXYLayer- theILcdGXYLayerto add to the list.aIsAdjusting- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException- if the layer could not be added when failingcanAddSubGXYLayer(ILcdGXYLayer).- See Also:
-
addSubGXYLayer
public void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Adds the givenILcdGXYLayeras a sublayer, accompanied by a filter to determine whether an object is in the sublayers model or not. Note that this can have an influence on the properties of the layer list. For example, when all sublayers currently in the list are not visible, but the sublayer to be added is visible, the layer list property visible will change from false to true.- Specified by:
addSubGXYLayerin interfaceILcdGXYLayerList- Parameters:
aSubGXYLayer- theILcdGXYLayerto add to the list.aObjectInLayerFilter- theILcdFilterused to determine if an object is contained in this layer.aIsAdjusting- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException- if the layer could not be added when failingcanAddSubGXYLayer(ILcdGXYLayer).- See Also:
-
insertSubGXYLayerAt
public void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Inserts the givenILcdGXYLayeras a sublayer at the given index. This implementation delegates toinsertSubGXYLayerAt(int, ILcdGXYLayer, com.luciad.util.ILcdFilter, boolean)with a null filter.- Specified by:
insertSubGXYLayerAtin interfaceILcdGXYLayerList- Parameters:
aIndex- the index of the location in the list where this layer should be placed.aSubGXYLayer- theILcdGXYLayerto insert into the list.aIsAdjusting- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException- will be thrown if thisILcdGXYLayerListcontains at least oneILcdGXYLayerand theILcdModelXYWorldTransfoclass are different.
-
insertSubGXYLayerAt
public void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Inserts the givenILcdGXYLayeras a sublayer at the given index, accompanied by a filter to determine whether an object is in the sublayers model or not. Note that this can have an influence on the properties of the layer list. For example, when all sublayers currently in the list are not visible, but the sublayer to be inserted is visible, the layer list property visible will change from false to true.- Specified by:
insertSubGXYLayerAtin interfaceILcdGXYLayerList- Parameters:
aIndex- the index of the location in the list where this layer should be placed.aSubGXYLayer- the sublayer.aObjectInLayerFilter- theILcdFilterused to determine if an object is contained in this layer.aIsAdjusting- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException- if the layer could not be added when failingcanAddSubGXYLayer(ILcdGXYLayer).- See Also:
-
canAddSubGXYLayer
Deprecated.Returns whether the sublayer can be added, meaning it has the sameILcdModelXYWorldTransfoclass set as the layers already in the list, and itsILcdModelhas the sameILcdModelReference. This method is called from all methods adding or inserting sublayers to the layer list.- Parameters:
aSubGXYLayer- the sublayer.- Returns:
- true if the sublayers model has the same model reference as the layers already in the list and the layer has the same model XY world transformation class set as the layers already in the list.
- See Also:
-
getSubGXYLayer
Deprecated.Description copied from interface:ILcdGXYLayerListReturns the sublayer at the location with the given index in the list.- Specified by:
getSubGXYLayerin interfaceILcdGXYLayerList- Parameters:
aIndex- the index of the location in the list.- Returns:
- the
ILcdGXYLayerat the location with the given index.
-
indexOf
Deprecated.Description copied from interface:ILcdGXYLayerListGets the index of the given sublayer.- Specified by:
indexOfin interfaceILcdGXYLayerList- Parameters:
aSubGXYLayer- the sublayer to find the index of.- Returns:
- the index of the given sublayer.
- Throws:
NoSuchElementException- when the given sublayer is not in thisILcdGXYLayerList.
-
moveSubGXYLayerAt
public void moveSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException, ArrayIndexOutOfBoundsException Deprecated.Moves the givenILcdGXYLayerat the given index. If aIsAdjusting is true, then a PropertyChanged event will be sent, no event will be sent otherwise.- Specified by:
moveSubGXYLayerAtin interfaceILcdGXYLayerList- Parameters:
aIndex- the index of the new location in theILcdGXYLayerList.aSubGXYLayer- the sublayer to move.aIsAdjusting- true if more changes will be made immediately after this.- Throws:
NoSuchElementException- when the given sublayer is not in thisILcdGXYLayerList.ArrayIndexOutOfBoundsException- when the given index is negative or not smaller than the number of sublayers.
-
removeSubGXYLayer
public void removeSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException Deprecated.Description copied from interface:ILcdGXYLayerListRemoves the sublayer from this list.- Specified by:
removeSubGXYLayerin interfaceILcdGXYLayerList- Parameters:
aSubGXYLayer- the sublayer.aIsAdjusting- true if more changes will be made immediately after this.- Throws:
NoSuchElementException- when the given sublayer is not in thisILcdGXYLayerList.
-
removeAllSubGXYLayers
public void removeAllSubGXYLayers(boolean aIsAdjusting) Deprecated.Description copied from interface:ILcdGXYLayerListRemoves all sublayers from this list.- Specified by:
removeAllSubGXYLayersin interfaceILcdGXYLayerList- Parameters:
aIsAdjusting- true if more changes will be made immediately after this.
-
containsSubGXYLayer
Deprecated.Description copied from interface:ILcdGXYLayerListChecks whether the sublayer is in thisILcdGXYLayerList.- Specified by:
containsSubGXYLayerin interfaceILcdGXYLayerList- Parameters:
aSubGXYLayer- the sublayer.- Returns:
- true if the sublayer is in this
ILcdGXYLayerList, false otherwise.
-
getObjectInLayerFilter
Deprecated.Description copied from interface:ILcdGXYLayerListReturns the filter used to find objects in the given sublayer.- Specified by:
getObjectInLayerFilterin interfaceILcdGXYLayerList- Parameters:
aSubGXYLayer- the sublayer for which all elements in its model should pass the filter.- Returns:
- the
ILcdFilterthat selects the elements in the given sublayer.
-
paint
Deprecated.Paints all sublayers, one by one.- Specified by:
paintin interfaceILcdGXYLayer- Parameters:
aGraphics- the Graphics to paint on.aMode- indicates what should be painted and how it should be painted.aGXYView- the view to paint for.- See Also:
-
getModel
Deprecated.Returns a model list that contains all models of the layers in this list as submodels. -
getSelectionCount
public int getSelectionCount()Deprecated.Returns the sum of all selection counts of all sublayers.- Specified by:
getSelectionCountin interfaceILcdSelection<Object>- Returns:
- the sum of all selection counts of all sublayers.
-
applyOnInteract
public int applyOnInteract(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView) Deprecated.Passes the function to apply to all of the visible sub layers as long as the function returns true for objects in that sublayer.- Specified by:
applyOnInteractin interfaceILcdGXYLayer- Parameters:
aFunction- the function to apply to all objects in the models of the sublayers. Note that this function may be wrapped and sublayers must not assume that this function is applied directly to them.aBounds- the view bounds containing the objects to which the function will be applied.aStrictInteract- whether or not only objects strictly interacting with the view bounds should be taken into accountaGXYView- the view in which the objects are rendered.- Returns:
- the number of objects to which the function was applied.
- See Also:
-
setLabel
Deprecated.Sets the short textual representation for this list. -
getLabel
Deprecated.Returns the short textual representation for this list. -
selectedObjects
Deprecated.Returns a collection of all selected objects in all sublayers. Note that an object might appear multiple times as it may be selected in multiple sublayers.- Specified by:
selectedObjectsin interfaceILcdSelection<Object>- Returns:
- a collection of all selected objects in all sublayers.
-
getBounds
Deprecated.Returns the union of the bounds of the sublayers. Sublayers which do not have bounds are ignored.- Specified by:
getBoundsin interfaceILcdGXYLayer- Parameters:
aMode- the layer mode to generate the bounds for.aGXYView- the view in which this layer list is displayed.- Returns:
- the union of the bounds of the sublayers.
- Throws:
TLcdNoBoundsException- when the list contains no layers, or when all the sublayers of the list generated a no bounds exception.- See Also:
-
isSelected
Deprecated.Returns whether an object is selected in any of the sublayers.- Specified by:
isSelectedin interfaceILcdSelection<Object>- Parameters:
aObject- the object to check.- Returns:
- true if the object is selected in any of the sublayers.
falseotherwise.
-
stopPainting
public void stopPainting()Deprecated.Stops painting on all sublayers.- Specified by:
stopPaintingin interfaceILcdGXYLayer- See Also:
-
isVisible
public boolean isVisible()Deprecated.Returns whether at least one of the sublayers is visible. -
addSelectionListener
Deprecated.Adds a listener that will be notified of changes to the selection of sublayers in this list. Note that the source of the event will always be the list, not the sublayer in which selection changes may have occurred.- Specified by:
addSelectionListenerin interfaceILcdSelection<Object>- Parameters:
aListener- a listener that will be notified of changes to the selection of sublayers in this list.
-
getScaleRange
Deprecated.Returns the union of all scale ranges of the sublayers. This will be null only if none of the sublayers have a scale range. This implies that even when only one layer has a scale range, the layer list will assume that scale range.- Specified by:
getScaleRangein interfaceILcdGXYLayer- Returns:
- the union of the scale ranges of all sublayers.
- See Also:
-
setVisible
public void setVisible(boolean aVisible) Deprecated.Sets the visibility of all sublayers at once. Note that this will only fire one property change event for the layer list.- Specified by:
setVisiblein interfaceILcdLayer- Parameters:
aVisible- true to make all sublayers visible at once, false to make them all invisible at once.- See Also:
-
removeSelectionListener
Deprecated.Removes a listener that will no longer be notified of changes to the selection of sublayers in this list.- Specified by:
removeSelectionListenerin interfaceILcdSelection<Object>- Parameters:
aListener- a listener that no longer will be notified of changes to the selection of sublayers in this list.
-
getLabelScaleRange
Deprecated.Returns the union of all label scale ranges of the sublayers. This will be null only if none of the sublayers have a label scale range. This implies that even when only one layer has a label scale range, the layer list will assume that labeled scale range.- Specified by:
getLabelScaleRangein interfaceILcdGXYLayer- Returns:
- the union of all label scale ranges of the sublayers.
- See Also:
-
isSelectableSupported
public boolean isSelectableSupported()Deprecated.Returns whether at least on the sublayers supports selection.- Specified by:
isSelectableSupportedin interfaceILcdLayer- Returns:
- true if at least on the sublayers supports selection, false only if none of the sublayers support selection.
- See Also:
-
isObjectInLayer
Deprecated.Determines if the given layers model contains the given object, by checking if the object passes the filter associated with the layer. If no filter was associated with the layer, the models elements are traversed to find the object.- Parameters:
aObject- the object to findaGXYLayer- the ILcdGXYLayer to check- Returns:
- true if the layers model contains the object.
- See Also:
-
getGXYPainter
Deprecated.Finds a suitable painter for the given object by requesting the sublayers for a suitable painter. If multiple painters are found the painter for the first sublayer that contains the object is returned.- Specified by:
getGXYPainterin interfaceILcdGXYLayer- Parameters:
aObject- the object to find a painter for. Note that it would be possible to request a painter for an object that is not in any of the sublayers.- Returns:
- a suitable painter for the given object. If multiple painters are found the painter for the first sublayer that contains the object is returned.
-
isSelectable
public boolean isSelectable()Deprecated.Returns whether at least one of the sublayers is selectable.- Specified by:
isSelectablein interfaceILcdLayer- Returns:
- true if one of the sublayers is selectable, false only if none of the sublayers are selectable.
- See Also:
-
getGXYEditor
Deprecated.Finds a suitable editor for the given object by requesting the sublayers for a suitable editor. If multiple editors are found the editor for the first sublayer that contains the object is returned.- Specified by:
getGXYEditorin interfaceILcdGXYLayer- Parameters:
aObject- the object to find a editor for. Note that it would be possible to request an editor for an object that is not in any of the sublayers.- Returns:
- a suitable editor for the given object. If multiple editors are found the editor for the first sublayer that contains the object is returned.
-
setSelectable
public void setSelectable(boolean aSelectable) Deprecated.Sets all sublayers selectable at once.- Specified by:
setSelectablein interfaceILcdLayer- Parameters:
aSelectable- true to set all sublayers selectable at once, false to set all sublayers not selectable at once.- See Also:
-
getGXYLabelPainter
Deprecated.Finds a suitable label painter for the given object by requesting the sublayers for a suitable label painter. If multiple label painters are found the label painter for the first sublayer that contains the object is returned.- Specified by:
getGXYLabelPainterin interfaceILcdGXYLayer- Parameters:
aObject- the object to find a label painter for. Note that it would be possible to request a label painter for an object that is not in any of the sublayers.- Returns:
- a suitable label painter for the given object. If multiple label painters are found the label painter for the first sublayer that contains the object is returned.
-
isEditableSupported
public boolean isEditableSupported()Deprecated.Returns whether at least one of the sublayers supports editing.- Specified by:
isEditableSupportedin interfaceILcdLayer- Returns:
- true if one of the sublayers supports editing, false only if none of the sublayers supports editing.
- See Also:
-
getGXYPen
Deprecated.Returns the pen used for all basic drawing operations for all sublayers. This property should be set on the list itself, as no pen of any of the sublayers is used.- Specified by:
getGXYPenin interfaceILcdGXYLayer- Returns:
- the pen used for all basic drawing operations for all sublayers.
- See Also:
-
setGXYPen
Deprecated.The pen to use for all basic drawing operations for all sublayers. The default value is null. Note that this value needs to be set before any rendering operation can occur.- Specified by:
setGXYPenin interfaceILcdGXYLayerList- Parameters:
aGXYPen- the pen to use for all basic drawing operations for all sublayers.- See Also:
-
isEditable
public boolean isEditable()Deprecated.Returns whether at least one of the sublayers is editable.- Specified by:
isEditablein interfaceILcdLayer- Returns:
- true if one of the sublayers is editable, false only if none of the sublayers is editable.
- See Also:
-
setIcon
Deprecated.Sets the small graphical representation for this layer list. By default no icon is set. -
getIcon
Deprecated.Returns a small graphical representation for this layer list. -
setEditable
public void setEditable(boolean aEditable) Deprecated.Sets all sublayers editable.- Specified by:
setEditablein interfaceILcdLayer- Parameters:
aEditable- true to make all sublayers editable, false to make all sublayers non editable.- See Also:
-
getModelXYWorldTransfoClass
Deprecated.Returns the class of the transformation used to transform model coordinates to view coordinates. Note that this value should be common for all sublayers.- Specified by:
getModelXYWorldTransfoClassin interfaceILcdGXYLayer- Returns:
- the common model XY world transformation class for all sublayers.
-
selectObject
Deprecated.Selects or deselects an object in the last sublayer in which it appears.- Specified by:
selectObjectin interfaceILcdLayer- Parameters:
aObject- the object to select or deselectaSelection- whether to select or deselect the objectaDispatchEventMode- indication of whether the selection listeners should be notified.- See Also:
-
isLabeledSupported
public boolean isLabeledSupported()Deprecated.Returns whether at least one of the sublayers supports labeling.- Specified by:
isLabeledSupportedin interfaceILcdGXYLayer- Returns:
- true if at least one of the sublayers supports labeling, false only if none of the sublayers supports labeling.
-
fireCollectedSelectionChanges
public void fireCollectedSelectionChanges()Deprecated.Fires events for all selection events collected by all sublayers. Note that the source of the event will always be the layer list, not the sublayer.- Specified by:
fireCollectedSelectionChangesin interfaceILcdLayer
-
isLabeled
public boolean isLabeled()Deprecated.Returns whether at least one of the sublayers is labeled.- Specified by:
isLabeledin interfaceILcdGXYLayer- Returns:
- true if one of the sublayers is labeled, false only if none of the sublayers is labeled.
- See Also:
-
setLabeled
public void setLabeled(boolean aLabeled) Deprecated.Sets all sublayers labeled or not labeled.- Specified by:
setLabeledin interfaceILcdGXYLayer- Parameters:
aLabeled- true to set all sublayers labeled, false to set all sublayers not labeled.
-
clearSelection
public void clearSelection(int aDispatchEventMode) Deprecated.Clears the selection on all sublayers.- Specified by:
clearSelectionin interfaceILcdLayer- Parameters:
aDispatchEventMode- designates whether listeners should be notified of this clearance.- See Also:
-
addPropertyChangeListener
Deprecated.Adds a listener that will be notified of any changes of properties of this list. Note that property changes of the list may be caused by a property change of a sublayer. For example, when the last visible layer is turned invisible, an event will be fired. If however, another sublayer is visible, the visibility of the list has not changed and no event will be fired. In any case, if an event is fired, the source of the event will be the list, never a sublayer.- Specified by:
addPropertyChangeListenerin interfaceILcdPropertyChangeSource- Parameters:
aListener- will be notified when one of the properties of the list changes.- See Also:
-
removePropertyChangeListener
Deprecated.Removes a listener that will no longer be notified of any changes of properties of this list.- Specified by:
removePropertyChangeListenerin interfaceILcdPropertyChangeSource- Parameters:
aListener- will no longer be notified when one of the properties of the list changes.- See Also:
-
TLcdGXYLayerTreeNodeinstead