|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Checks to see if the given ViPER data node is currently visible according to the filters. Note that hiding applies down the heirarchy: a Config node can be marked as interesting even if none of its kids are, but an attribute won't be interesting if its containing descriptor or describing config isn't.
| Field Summary | |
static int |
HIDDEN
|
static int |
LOCKED
|
static int |
VISIBLE
|
| Method Summary | |
int |
getAttrConfigVisibility(AttrConfig ac)
Gets the visibility level of the attribute type. |
int |
getAttributeVisibility(Attribute a)
Gets the visibility level of the attribute. |
int |
getConfigVisibility(Config c)
Gets the visibility level of the descriptor class. |
int |
getDescriptorVisibility(Descriptor d)
Gets the visibility level of the descriptor. |
AttrConfig[] |
getHidingAttrConfigs()
Gets the hidden attribute configs. |
Attribute[] |
getHidingAttributes()
Gets the specifically hidden attributes. |
Config[] |
getHidingConfigs()
Gets the descriptor types that are currently hidden. |
Descriptor[] |
getHidingDescriptors()
Gets the specifically hidden descriptor instances. |
int[] |
getHidingTypes()
Gets the types of descriptors that are hidden. |
int |
getTypeVisibility(int type)
Gets the visibility level of the descriptor class. |
boolean |
setVisibilityByAttrConfig(AttrConfig acfg,
int visible)
Sets the visibility of the given attribute definition. |
boolean |
setVisibilityByAttribute(Attribute a,
int visible)
Sets the visibility of the given attribute. |
boolean |
setVisibilityByConfig(Config cfg,
int visible)
Sets the visibility of the given class of descriptors. |
boolean |
setVisibilityByDescriptor(Descriptor desc,
int visible)
Sets the visibility of the given descriptor. |
boolean |
setVisibilityByType(int type,
int visible)
Sets the visibility of the type of config. |
boolean |
showAll()
Reveal all the hidden nodes. |
| Methods inherited from interface edu.umd.cfar.lamp.viper.util.ViperSelection |
addChangeListener, getChangeListeners, isEmpty, isSelected, removeChangeListener |
| Field Detail |
public static final int HIDDEN
public static final int LOCKED
public static final int VISIBLE
| Method Detail |
public boolean showAll()
public int[] getHidingTypes()
Config.CONTENTpublic Config[] getHidingConfigs()
public AttrConfig[] getHidingAttrConfigs()
public Descriptor[] getHidingDescriptors()
public Attribute[] getHidingAttributes()
public int getTypeVisibility(int type)
public int getConfigVisibility(Config c)
public int getAttrConfigVisibility(AttrConfig ac)
public int getDescriptorVisibility(Descriptor d)
public int getAttributeVisibility(Attribute a)
public boolean setVisibilityByType(int type,
int visible)
type - the type, e.g. Config.OBJECTvisible - false for hidden
public boolean setVisibilityByConfig(Config cfg,
int visible)
cfg - the descriptor classvisible - false to hide
public boolean setVisibilityByDescriptor(Descriptor desc,
int visible)
desc - the descriptor instancevisible - false to hide
public boolean setVisibilityByAttrConfig(AttrConfig acfg,
int visible)
acfg - the set of attributes to hidevisible - false to hide
public boolean setVisibilityByAttribute(Attribute a,
int visible)
a - the attribute to hide or revealvisible - false to hide
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||