|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.database.text.PrefPackage
com.sun.electric.tool.user.ui.LayerVisibility
public class LayerVisibility
Class represents visibility of Layers. It is possible to have multiple instances of this class, for example for each EditWindow.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.electric.database.text.PrefPackage |
|---|
PrefPackage.BooleanPref, PrefPackage.DoublePref, PrefPackage.IntegerPref, PrefPackage.LongPref, PrefPackage.StringPref |
| Field Summary |
|---|
| Fields inherited from class com.sun.electric.database.text.PrefPackage |
|---|
TECH_NODE, USER_NODE |
| Constructor Summary | |
|---|---|
LayerVisibility(boolean factory)
|
|
| Method Summary | |
|---|---|
static void |
factoryReset()
Reset "standard" LayerVisibility to factory values. |
static LayerVisibility |
getLayerVisibility()
Returns "standard" LayerVisibility |
float |
getOpacity(Layer layer)
|
java.util.List<Layer> |
getSavedLayerOrder(Technology tech)
Method to return a list of layers that are saved for specified Technology. |
boolean |
isHighlighted(Layer layer)
Method to tell whether a Layer is highlighted. |
boolean |
isVisible(ArcProto ap)
Method to tell whether an ArcProto is visible. |
boolean |
isVisible(Layer layer)
Method to tell whether a Layer is visible. |
boolean |
isVisible(PrimitiveNode pn)
Method to tell whether a PrimitiveNode is visible. |
static void |
preserveVisibility()
Save "standard" LayerVisibility in Preferences |
void |
putPrefs(java.util.prefs.Preferences prefRoot,
boolean removeDefaults)
Store annotated option fields of the subclass into the speciefied Preferences subtree. |
static void |
setDefaultOpacity()
Reset "standard" LayerVisibility to factory values. |
void |
setOpacity(Layer layer,
double opacity)
|
void |
setSavedLayerOrder(Technology tech,
java.util.List<Layer> layers)
Method to save a list of layers for this Technology in a preferred order. |
static void |
setTechPool(TechPool techPool)
Reload standard LayerVisibility from Preferences |
| Methods inherited from class com.sun.electric.database.text.PrefPackage |
|---|
getFactoryPrefRoot, getKey, getKey, getKey, getKey, getPrefRoot, withField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayerVisibility(boolean factory)
| Method Detail |
|---|
public void putPrefs(java.util.prefs.Preferences prefRoot,
boolean removeDefaults)
PrefPackage
putPrefs in class PrefPackageprefRoot - the root of the Preferences subtree.removeDefaults - remove from the Preferences subtree options which have factory default value.public java.util.List<Layer> getSavedLayerOrder(Technology tech)
tech - specified Technology
public void setSavedLayerOrder(Technology tech,
java.util.List<Layer> layers)
layers - a list of layers for this Technology in a preferred order.
public void setOpacity(Layer layer,
double opacity)
public boolean isVisible(Layer layer)
layer - specified layer
public boolean isVisible(PrimitiveNode pn)
pn - specified PrimitiveNode
public boolean isVisible(ArcProto ap)
ap - specified ArcProto
public boolean isHighlighted(Layer layer)
layer - specified layer
public float getOpacity(Layer layer)
public static LayerVisibility getLayerVisibility()
public static void preserveVisibility()
public static void factoryReset()
public static void setDefaultOpacity()
public static void setTechPool(TechPool techPool)
techPool - new TechPool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||