|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
repast.simphony.gis.legend.LegendEntry
public class LegendEntry
This represents a generic entry in the legend. This will be selectable and have children.
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
LegendEntry()
Default Constructor, this will be an empty entry in the legend. |
|
LegendEntry(Object userObject)
Create the legend entry based on the supplied user object. |
|
| Method Summary | |
|---|---|
Color |
getBackground(boolean selected)
Get the background color for this node based on whether the node is selected or not. |
Icon |
getIcon(boolean selected)
Get the icon for this entry. |
String |
getName()
Get the name of this Legend Entry |
boolean |
isDataVisible()
Is this entry currently selected? |
void |
setDataVisible(boolean dataVisible)
Set the selected status of this entry. |
void |
setDataVisible(boolean dataVisible,
boolean propogateChanges)
Set the selected status of this entry and whether or not the selected status should be propogated to children. |
void |
setName(String name)
Set the name of this Legend Entry. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LegendEntry()
public LegendEntry(Object userObject)
userObject - The object on which to base this legend entry.| Method Detail |
|---|
public void setName(String name)
name - The name for this legend entry.public String getName()
public Icon getIcon(boolean selected)
selected - Is this entry selected?
public Color getBackground(boolean selected)
selected - Is this entry currently selected?
public boolean isDataVisible()
public void setDataVisible(boolean dataVisible)
dataVisible -
public void setDataVisible(boolean dataVisible,
boolean propogateChanges)
dataVisible - propogateChanges - whether not the changes should be propogated to
childrenpublic String toString()
toString in class DefaultMutableTreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||