public class TocTreeNode extends DefaultMutableTreeNode
DefaultPortableViewLayersEditor
Modifier and Type | Class and Description |
---|---|
static class |
TocTreeNode.TYPE
Nodes type
|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
TocTreeNode(Image image,
FLayer sourceLayer)
Constructor for the image from a
IHasImageLegend layer |
TocTreeNode(ISymbol symbol,
String description,
FLayer sourceLayer)
Constructor for a
ISymbol node |
TocTreeNode(LayerCollection layer)
Constructor for a
LayerCollection node |
TocTreeNode(SingleLayer layer)
Constructor for a
SingleLayer node without legend defined |
TocTreeNode(SingleLayer layer,
boolean hasLegend)
Constructor for a
SingleLayer node |
TocTreeNode(SingleLayer layer,
Image image)
Constructor for a
SingleLayer which has a image legend (
implements IHasImageLegend ) |
Modifier and Type | Method and Description |
---|---|
Image |
getImage()
Gets the legend image which represents this node
|
ImageIcon |
getImageIcon()
Gets the legend image which represents this node
|
FLayer |
getLayer()
Gets the layer related to this node
|
FLayer |
getSourceLayer()
Gets the layer related to legend represented by this node
|
ISymbol |
getSymbol()
Gets the legend symbol which represents this node
|
String |
getSymbolDescription()
Gets description of the legend symbol which represents this node
|
TocTreeNode.TYPE |
getType()
Gets the node type
|
boolean |
isLayer()
Informs if this node represents a
FLayer |
boolean |
isLeaf() |
boolean |
isLegend()
Is a node which represent a legend or a part of it
|
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, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
public TocTreeNode(LayerCollection layer)
LayerCollection
nodelayer
- public TocTreeNode(SingleLayer layer, boolean hasLegend)
SingleLayer
nodelayer
- hasLegend
- whatever layer has legend defined or notpublic TocTreeNode(SingleLayer layer)
SingleLayer
node without legend definedlayer
- public TocTreeNode(SingleLayer layer, Image image)
SingleLayer
which has a image legend (
implements IHasImageLegend
)layer
- image
- public TocTreeNode(ISymbol symbol, String description, FLayer sourceLayer)
ISymbol
nodesymbol
- description
- sourceLayer
- public TocTreeNode(Image image, FLayer sourceLayer)
IHasImageLegend
layerimage
- sourceLayer
- public boolean isLegend()
public TocTreeNode.TYPE getType()
public FLayer getLayer()
public FLayer getSourceLayer()
public Image getImage()
public ImageIcon getImageIcon()
public ISymbol getSymbol()
public String getSymbolDescription()
public boolean isLeaf()
isLeaf
in interface TreeNode
isLeaf
in class DefaultMutableTreeNode
public boolean isLayer()
FLayer