public class LayerVisibility extends PrefPackage
PrefPackage.BooleanPref, PrefPackage.DoublePref, PrefPackage.IntegerPref, PrefPackage.LongPref, PrefPackage.StringPrefTECH_NODE, USER_NODE| Constructor and Description |
|---|
LayerVisibility(boolean factory) |
| Modifier and Type | Method and Description |
|---|---|
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
|
getFactoryPrefRoot, getKey, getKey, getKey, getKey, getPrefRoot, withFieldpublic void putPrefs(java.util.prefs.Preferences prefRoot,
boolean removeDefaults)
PrefPackageputPrefs 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 Technologypublic 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 layerpublic boolean isVisible(PrimitiveNode pn)
pn - specified PrimitiveNodepublic boolean isVisible(ArcProto ap)
ap - specified ArcProtopublic boolean isHighlighted(Layer layer)
layer - specified layerpublic 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