public class LayerVisibility extends PrefPackage
Modifier and Type | Class and Description |
---|---|
class |
LayerVisibility.TechData |
PrefPackage.BooleanPref, PrefPackage.DoublePref, PrefPackage.IntegerPref, PrefPackage.LongPref, PrefPackage.StringPref
IO_NODE, TECH_NODE, USER_NODE
Constructor and Description |
---|
LayerVisibility(boolean factory) |
Modifier and Type | Method and Description |
---|---|
static void |
factoryReset()
Reset "standard" LayerVisibility to factory values.
|
boolean[] |
getLayersVisibility(Technology tech)
Method to retrieve visibility associated to layers for
a given technology
|
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.
|
LayerVisibility.TechData[] |
getTecDataForJob()
Method to access visibility information from a Job
|
boolean[][] |
getTechDataArray()
Method to cache visibility to be used in Jobs
|
java.util.HashSet<PrimitiveNode> |
getVisibleNodes()
Method to return the visible nodes
|
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 LayerVisibility |
loadPreferences()
Load "standard" from Preferences
|
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 |
updateLayerVisibility()
Method called when technologies change: updates layer visibility cache.
|
getFactoryPrefRoot, getKey, getKey, getKey, getKey, getPrefRoot, lowLevelPutPrefs, withField
public LayerVisibility.TechData[] getTecDataForJob()
public void putPrefs(java.util.prefs.Preferences prefRoot, boolean removeDefaults)
PrefPackage
putPrefs
in class PrefPackage
prefRoot
- 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[] getLayersVisibility(Technology tech)
tech
- public boolean isVisible(PrimitiveNode pn)
pn
- specified PrimitiveNodepublic java.util.HashSet<PrimitiveNode> getVisibleNodes()
public boolean isVisible(ArcProto ap)
ap
- specified ArcProtopublic boolean isHighlighted(Layer layer)
layer
- specified layerpublic float getOpacity(Layer layer)
public boolean[][] getTechDataArray()
public static void updateLayerVisibility()
public static LayerVisibility getLayerVisibility()
public static void preserveVisibility()
public static LayerVisibility loadPreferences()
public static void factoryReset()
public static void setDefaultOpacity()