Package repast.simphony.gis.legend
Class LegendLayerEntry
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
repast.simphony.gis.legend.LegendEntry
repast.simphony.gis.legend.LegendLayerEntry
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
Deprecated.
2D piccolo based code is being removed
Used to keep the information about legend tree root and layer node such as
name, expanded icon, collapsed icon, and isSelected when mean isLayerVisible
or does user select the checkbox for this layer node
- Author:
- howe
- See Also:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
ConstructorsConstructorDescriptionLegendLayerEntry(String name, boolean isLayerSelected, org.geotools.map.Layer layer) Deprecated.Create a new LegendLayer node for a layer. -
Method Summary
Modifier and TypeMethodDescriptiongetBackground(boolean selected) Deprecated.Get the background color for this node based on whether the node is selected or not.getIcon(boolean expanded) Deprecated.Get the icon for this entry.org.geotools.map.LayergetLayer()Deprecated.booleanDeprecated.Is this entry currently selected?voidsetDataVisible(boolean dataVisible) Deprecated.Set the selected status of this entry.voidsetDataVisible(boolean dataVisible, boolean propogateChanges) Deprecated.Set the selected status of this entry and whether or not the selected status should be propogated to children.Methods inherited from class repast.simphony.gis.legend.LegendEntry
getName, setName, toStringMethods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
Constructor Details
-
LegendLayerEntry
Deprecated.Create a new LegendLayer node for a layer.- Parameters:
name- The name of this layerisLayerSelected- Is this layer currently selectedlayer- The layer upon which the node is based
-
-
Method Details
-
setDataVisible
public void setDataVisible(boolean dataVisible) Deprecated.Description copied from class:LegendEntrySet the selected status of this entry.- Overrides:
setDataVisiblein classLegendEntry
-
setDataVisible
public void setDataVisible(boolean dataVisible, boolean propogateChanges) Deprecated.Set the selected status of this entry and whether or not the selected status should be propogated to children. In this case, propogation does nothing as this has no children.- Overrides:
setDataVisiblein classLegendEntry- Parameters:
dataVisible-propogateChanges- whether not the changes should be propogated to children
-
isDataVisible
public boolean isDataVisible()Deprecated.Description copied from class:LegendEntryIs this entry currently selected?- Overrides:
isDataVisiblein classLegendEntry- Returns:
- Whether the entry is selected or not.
-
getBackground
Deprecated.Description copied from class:LegendEntryGet the background color for this node based on whether the node is selected or not.- Overrides:
getBackgroundin classLegendEntry- Parameters:
selected- Is this entry currently selected?- Returns:
- The background color for this entry.
-
getLayer
public org.geotools.map.Layer getLayer()Deprecated. -
getIcon
Deprecated.Description copied from class:LegendEntryGet the icon for this entry. The generic legend entry has no icon associated with it.- Overrides:
getIconin classLegendEntry- Parameters:
expanded- Is this entry selected?- Returns:
- The icon, null in the general case.
-