public class EditingPreferences extends PrefPackage
PrefPackage.BooleanPref, PrefPackage.DoublePref, PrefPackage.IntegerPref, PrefPackage.LongPref, PrefPackage.StringPref
IO_NODE, TECH_NODE, USER_NODE
Constructor and Description |
---|
EditingPreferences(boolean factory,
TechPool techPool) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
EDimension |
getAlignmentToGrid()
Method to return the default alignment of objects to the grid.
|
int |
getAlignmentToGridIndex()
Method to return index of the current alignment.
|
EDimension[] |
getAlignmentToGridVector()
Method to return an array of five grid alignment values.
|
TextDescriptor |
getAnnotationTextDescriptor()
Method to return a displayable TextDescriptor that is a default for Variables on Annotations.
|
TextDescriptor |
getArcTextDescriptor()
Method to return a displayable TextDescriptor that is a default for Variables on ArcInsts.
|
TextDescriptor |
getCellTextDescriptor()
Method to return a displayable TextDescriptor that is a default for Variables on Cell Variables.
|
java.lang.Integer |
getDefaultAngleIncrement(ArcProtoId apId) |
ImmutableArcInst |
getDefaultArc(ArcProtoId apId) |
PrimitiveNodeId |
getDefaultArcPinId(ArcProtoId apId) |
ImmutableNodeInst |
getDefaultNode(PrimitiveNodeId pnId) |
TextDescriptor |
getExportTextDescriptor()
Method to return a displayable TextDescriptor that is a default for Variables on Exports.
|
java.lang.String |
getGroupDirectory(FileType.FileTypeGroup grp) |
int |
getIconGenBidirRot()
What angle Bidirectional ports should go on generated icons.
|
double |
getIconGenBodyTextSize()
The size of body text on generated icons.
|
int |
getIconGenClockRot()
Method to tell what angle Clock ports should go on generated icons.
|
int |
getIconGenExportLocation()
Where exports should appear along the leads in generated icons.
|
int |
getIconGenExportPlacement() |
int |
getIconGenExportStyle()
How the text should appear in generated icons.
|
int |
getIconGenExportTech()
How exports should be constructed in generated icons.
|
int |
getIconGenGroundRot()
Method to tell what angle Ground ports should go on generated icons.
|
int |
getIconGenInputRot()
What angle Input ports should go on generated icons.
|
int |
getIconGenInstanceLocation()
Where to place an instance of the generated icons in the original schematic.
|
double |
getIconGenLeadLength()
How long to make leads in generated icons.
|
double |
getIconGenLeadSpacing()
How far apart to space leads in generated icons.
|
int |
getIconGenOutputRot()
What angle Output ports should go on generated icons.
|
int |
getIconGenPowerRot()
Method to tell what angle Power ports should go on generated icons.
|
static EditingPreferences |
getInstance() |
TextDescriptor |
getInstanceTextDescriptor()
Method to return a displayable TextDescriptor that is a default for Variables on Cell Instance Names.
|
TextDescriptor |
getNodeTextDescriptor()
Method to return a displayable TextDescriptor that is a default for Variables on NodeInsts.
|
TextDescriptor |
getPortInstTextDescriptor()
Method to return a displayable TextDescriptor that is a default for Variables on PortInsts.
|
int |
getSmartHorizontalPlacementArc()
What type of "smart" text placement should be done for horizontal Arcs.
|
int |
getSmartHorizontalPlacementExport()
What type of "smart" horizontal text placement should be done for Exports.
|
int |
getSmartVerticalPlacementArc()
What type of "smart" text placement should be done for vertical Arcs.
|
int |
getSmartVerticalPlacementExport() |
TextDescriptor |
getTextDescriptor(AbstractTextDescriptor.TextType textType,
boolean display)
Method to return a displayable or nondisplayable TextDescriptor that is a default for a certain text type.
|
int |
getUnitsPrecision() |
java.lang.String |
getWorkingDirectory() |
int |
hashCode() |
boolean |
isFatWires()
What type of arcs are drawn: true to make them as wide as connecting nodes,
false to make them normal size.
|
boolean |
isIconGenDrawBody()
Whether generated icons should have a body drawn.
|
boolean |
isIconGenDrawLeads()
Whether generated icons should have leads drawn.
|
boolean |
isIconGenExportPlacementExact()
Whether exports are placed exactly according to schematics.
|
boolean |
isIconGenReverseExportOrder()
Whether generated icons should reverse the order of exports.
|
boolean |
isIconsAlwaysDrawn()
Whether generated icon exports should be "always drawn".
|
boolean |
isPlaceCellCenter()
What type of "smart" vertical text placement should be done for Exports.
|
static EditingPreferences |
lowLevelSetThreadLocalEditingPreferences(EditingPreferences ep) |
protected void |
putPrefs(java.util.prefs.Preferences prefRoot,
boolean removeDefaults)
Store annotated option fields of the subclass into the speciefied Preferences subtree.
|
void |
putPrefs(java.util.prefs.Preferences prefRoot,
boolean removeDefaults,
EditingPreferences oldEp) |
EditingPreferences |
withAlignment(EDimension[] dist,
int current)
Method to set the default alignment of objects to the grid.
|
EditingPreferences |
withAlignmentReset() |
EditingPreferences |
withArcAngleIncrement(ArcProtoId apId,
int angleIncrement) |
EditingPreferences |
withArcFlags(ArcProtoId apId,
int flags) |
EditingPreferences |
withArcGridExtend(ArcProtoId apId,
long gridExtend) |
EditingPreferences |
withArcPin(ArcProtoId apId,
PrimitiveNodeId arcPinId) |
EditingPreferences |
withArcsReset() |
EditingPreferences |
withDefaultNodesReset() |
EditingPreferences |
withFatWires(boolean fatWires) |
EditingPreferences |
withFatWiresReset() |
protected EditingPreferences |
withField(java.lang.String fieldName,
java.lang.Object value) |
EditingPreferences |
withGroupDirectoriesReset() |
EditingPreferences |
withGroupDirectory(FileType.FileTypeGroup grp,
java.lang.String dir) |
EditingPreferences |
withIconGenBidirRot(int iconGenBidirRot) |
EditingPreferences |
withIconGenBodyTextSize(double iconGenBodyTextSize) |
EditingPreferences |
withIconGenClockRot(int iconGenClockRot) |
EditingPreferences |
withIconGenDrawBody(boolean iconGenDrawBody) |
EditingPreferences |
withIconGenDrawLeads(boolean iconGenDrawLeads) |
EditingPreferences |
withIconGenExportLocation(int iconGenExportLocation) |
EditingPreferences |
withIconGenExportPlacement(int iconGenExportPlacement) |
EditingPreferences |
withIconGenExportPlacementExact(boolean iconGenExportPlacementExact) |
EditingPreferences |
withIconGenExportStyle(int iconGenExportStyle) |
EditingPreferences |
withIconGenExportTech(int iconGenExportTech) |
EditingPreferences |
withIconGenGroundRot(int iconGenGroundRot) |
EditingPreferences |
withIconGenInputRot(int iconGenInputRot) |
EditingPreferences |
withIconGenInstanceLocation(int iconGenInstanceLocation) |
EditingPreferences |
withIconGenLeadLength(double iconGenLeadLength) |
EditingPreferences |
withIconGenLeadSpacing(double iconGenLeadSpacing) |
EditingPreferences |
withIconGenOutputRot(int iconGenOutputRot) |
EditingPreferences |
withIconGenPowerRot(int iconGenPowerRot) |
EditingPreferences |
withIconGenReset() |
EditingPreferences |
withIconGenReverseExportOrder(boolean iconGenReverseExportOrder) |
EditingPreferences |
withIconsAlwaysDrawn(boolean iconsAlwaysDrawn) |
EditingPreferences |
withNodeSize(PrimitiveNodeId pnId,
EPoint size) |
EditingPreferences |
withNodesReset() |
EditingPreferences |
withPlaceCellCenter(boolean placeCellCenter) |
EditingPreferences |
withPlacementReset() |
EditingPreferences |
withSmartHorizontalPlacementArc(int smartHorizontalPlacementArc) |
EditingPreferences |
withSmartHorizontalPlacementExport(int smartHorizontalPlacementExport) |
EditingPreferences |
withSmartVerticalPlacementArc(int smartVerticalPlacementArc) |
EditingPreferences |
withSmartVerticalPlacementExport(int smartVerticalPlacementExport) |
EditingPreferences |
withTextDescriptor(AbstractTextDescriptor.TextType textType,
TextDescriptor td) |
EditingPreferences |
withTextDescriptorsReset() |
EditingPreferences |
withUnitsPrecision(int numDigits) |
EditingPreferences |
withUnitsPrecisionReset() |
EditingPreferences |
withWorkingDirectory(java.lang.String workingDirectory) |
getFactoryPrefRoot, getKey, getKey, getKey, getKey, getPrefRoot, lowLevelPutPrefs
public EditingPreferences(boolean factory, TechPool techPool)
protected 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 void putPrefs(java.util.prefs.Preferences prefRoot, boolean removeDefaults, EditingPreferences oldEp)
public EditingPreferences withNodeSize(PrimitiveNodeId pnId, EPoint size)
public EditingPreferences withPlaceCellCenter(boolean placeCellCenter)
public EditingPreferences withDefaultNodesReset()
public EditingPreferences withNodesReset()
public EditingPreferences withArcFlags(ArcProtoId apId, int flags)
public EditingPreferences withArcGridExtend(ArcProtoId apId, long gridExtend)
public EditingPreferences withArcAngleIncrement(ArcProtoId apId, int angleIncrement)
public EditingPreferences withArcPin(ArcProtoId apId, PrimitiveNodeId arcPinId)
public EditingPreferences withArcsReset()
public ImmutableNodeInst getDefaultNode(PrimitiveNodeId pnId)
public ImmutableArcInst getDefaultArc(ArcProtoId apId)
public java.lang.Integer getDefaultAngleIncrement(ArcProtoId apId)
public PrimitiveNodeId getDefaultArcPinId(ArcProtoId apId)
public java.lang.String getWorkingDirectory()
public java.lang.String getGroupDirectory(FileType.FileTypeGroup grp)
public int getUnitsPrecision()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public EDimension getAlignmentToGrid()
public int getAlignmentToGridIndex()
public EDimension[] getAlignmentToGridVector()
public EditingPreferences withAlignment(EDimension[] dist, int current)
dist
- the array of grid alignment values.current
- the index in the array that is the current grid alignment.public EditingPreferences withAlignmentReset()
public EditingPreferences withWorkingDirectory(java.lang.String workingDirectory)
public EditingPreferences withGroupDirectory(FileType.FileTypeGroup grp, java.lang.String dir)
public EditingPreferences withGroupDirectoriesReset()
public TextDescriptor getNodeTextDescriptor()
public TextDescriptor getArcTextDescriptor()
public TextDescriptor getExportTextDescriptor()
public TextDescriptor getPortInstTextDescriptor()
public TextDescriptor getAnnotationTextDescriptor()
public TextDescriptor getInstanceTextDescriptor()
public TextDescriptor getCellTextDescriptor()
public TextDescriptor getTextDescriptor(AbstractTextDescriptor.TextType textType, boolean display)
textType
- text typedisplay
- true to return displayable TextDescriptorpublic EditingPreferences withTextDescriptor(AbstractTextDescriptor.TextType textType, TextDescriptor td)
public EditingPreferences withTextDescriptorsReset()
public EditingPreferences withSmartVerticalPlacementExport(int smartVerticalPlacementExport)
public EditingPreferences withSmartHorizontalPlacementExport(int smartHorizontalPlacementExport)
public EditingPreferences withSmartVerticalPlacementArc(int smartVerticalPlacementArc)
public EditingPreferences withSmartHorizontalPlacementArc(int smartHorizontalPlacementArc)
public EditingPreferences withFatWires(boolean fatWires)
public EditingPreferences withUnitsPrecision(int numDigits)
public EditingPreferences withUnitsPrecisionReset()
public EditingPreferences withPlacementReset()
public EditingPreferences withFatWiresReset()
public EditingPreferences withIconGenLeadLength(double iconGenLeadLength)
public EditingPreferences withIconGenLeadSpacing(double iconGenLeadSpacing)
public EditingPreferences withIconGenDrawLeads(boolean iconGenDrawLeads)
public EditingPreferences withIconsAlwaysDrawn(boolean iconsAlwaysDrawn)
public EditingPreferences withIconGenDrawBody(boolean iconGenDrawBody)
public EditingPreferences withIconGenExportPlacement(int iconGenExportPlacement)
public EditingPreferences withIconGenExportPlacementExact(boolean iconGenExportPlacementExact)
public EditingPreferences withIconGenReverseExportOrder(boolean iconGenReverseExportOrder)
public EditingPreferences withIconGenBodyTextSize(double iconGenBodyTextSize)
public EditingPreferences withIconGenExportLocation(int iconGenExportLocation)
public EditingPreferences withIconGenExportStyle(int iconGenExportStyle)
public EditingPreferences withIconGenExportTech(int iconGenExportTech)
public EditingPreferences withIconGenInstanceLocation(int iconGenInstanceLocation)
public EditingPreferences withIconGenInputRot(int iconGenInputRot)
public EditingPreferences withIconGenOutputRot(int iconGenOutputRot)
public EditingPreferences withIconGenBidirRot(int iconGenBidirRot)
public EditingPreferences withIconGenPowerRot(int iconGenPowerRot)
public EditingPreferences withIconGenGroundRot(int iconGenGroundRot)
public EditingPreferences withIconGenClockRot(int iconGenClockRot)
public EditingPreferences withIconGenReset()
protected EditingPreferences withField(java.lang.String fieldName, java.lang.Object value)
withField
in class PrefPackage
public boolean isPlaceCellCenter()
public int getSmartVerticalPlacementExport()
public int getSmartHorizontalPlacementExport()
public int getSmartVerticalPlacementArc()
public int getSmartHorizontalPlacementArc()
public boolean isFatWires()
public double getIconGenLeadLength()
public double getIconGenLeadSpacing()
public boolean isIconGenDrawLeads()
public boolean isIconsAlwaysDrawn()
public boolean isIconGenDrawBody()
public int getIconGenExportPlacement()
public boolean isIconGenExportPlacementExact()
public boolean isIconGenReverseExportOrder()
public double getIconGenBodyTextSize()
public int getIconGenExportLocation()
public int getIconGenExportStyle()
public int getIconGenExportTech()
public int getIconGenInstanceLocation()
public int getIconGenInputRot()
public int getIconGenOutputRot()
public int getIconGenBidirRot()
public int getIconGenPowerRot()
public int getIconGenGroundRot()
public int getIconGenClockRot()
public int hashCode()
hashCode
in class java.lang.Object
public static EditingPreferences getInstance()
public static EditingPreferences lowLevelSetThreadLocalEditingPreferences(EditingPreferences ep)