public class CircuitChangeJobs
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CircuitChangeJobs.AlignNodes |
static class |
CircuitChangeJobs.AlignObjects
This class implement the command to align objects to the grid.
|
static class |
CircuitChangeJobs.CellCenterToCenterOfSelection
RECENTER CELL ON SELECTION
|
static class |
CircuitChangeJobs.ChangeArcEnum
ARC MODIFICATION
|
static class |
CircuitChangeJobs.ChangeArcProperties |
static class |
CircuitChangeJobs.CheckAndRepairJob
This class implement the command to repair libraries.
|
static class |
CircuitChangeJobs.CleanupChanges
This class implements the changes needed to cleanup pins in a Cell.
|
static class |
CircuitChangeJobs.ClearCellLocked
This class clears a cell lock bit in a Job.
|
static class |
CircuitChangeJobs.ClearNodeLocked
This class clears a node lock bit in a Job.
|
static class |
CircuitChangeJobs.DeleteArcs |
static class |
CircuitChangeJobs.DeleteSelected
DELETE SELECTED OBJECTS
|
static class |
CircuitChangeJobs.DeleteSelectedGeometry |
static class |
CircuitChangeJobs.MakeCellAnnotationJob
Make Cell Annotation Job
|
static class |
CircuitChangeJobs.ManyMove
MOVE SELECTED OBJECTS
|
static class |
CircuitChangeJobs.Reconnect
This class handles deleting pins that are between two arcs,
and reconnecting the arcs without the pin.
|
static class |
CircuitChangeJobs.ReloadLibraryJob
This class implement the command to reload a library
|
static class |
CircuitChangeJobs.RenameLibrary
This class implement the command to rename a library.
|
static class |
CircuitChangeJobs.RenameTechnology
This class implement the command to rename a technology.
|
static class |
CircuitChangeJobs.RipTheBus |
static class |
CircuitChangeJobs.RotateSelected
NODE TRANSFORMATION
|
static class |
CircuitChangeJobs.RotateText
Class to rotate selected text in a Job.
|
static class |
CircuitChangeJobs.ShortenArcs
This class implements the changes needed to shorten selected arcs.
|
static class |
CircuitChangeJobs.ToggleNegationJob |
Modifier and Type | Method and Description |
---|---|
static int |
cantEdit(Cell cell,
NodeInst item,
boolean giveError,
boolean allowInstanceChange,
boolean insideJob)
Method to tell whether a NodeInst can be modified in a cell.
|
static void |
eraseObjectsInList(Cell cell,
java.util.List<Geometric> list,
boolean reconstructArcsAndExports,
java.util.Set<ElectricObject> stuffToHighlight,
EditingPreferences ep)
Method to delete all of the Geometrics in a list.
|
static java.util.List<CircuitChangeJobs.Reconnect> |
getPinsToPassThrough(Cell cell,
EditingPreferences ep) |
static void |
inheritAttributes(NodeInst ni,
EditingPreferences ep)
Method to inherit all prototype attributes down to instance "ni".
|
static void |
inheritCellParameter(Variable var,
NodeInst ni,
EditingPreferences ep)
Method to add parameter "var" to instance "ni".
|
static void |
markAllLibrariesForSavingCommand()
Method to implement the "Mark All Libraries for Saving" command.
|
static void |
markCurrentLibForSavingCommand()
Method to implement the "Mark All Libraries for Saving" command.
|
static NodeInst |
replaceNodeInst(NodeInst oldNi,
NodeProto newNp,
PrimitiveNode.Function newFunc,
boolean ignorePortNames,
boolean allowMissingPorts,
boolean preseveParameters,
EditingPreferences ep)
Method to replace node "oldNi" with a new one of type "newNp"
and return the new node.
|
static void |
replaceNodeInsts(java.util.Collection<BatchChanges.NodeReplacement> replacements,
boolean allowMissingPorts,
boolean preserveParameters,
EditingPreferences ep)
Method to replace a batch of nodes "oldNi" with a new one of type "newNp"
and return the new node.
|
static void |
rotateArcText(ArcInst ai,
Orientation dOrient,
boolean mirror)
Method to rotate the text on an arc after it has been rotated/flipped.
|
static void |
rotateNodeText(NodeInst ni,
Orientation dOrient,
boolean wasMirroredInX,
boolean wasMirroredInY)
Method to rotate the text on a node after the node has been rotated/flipped.
|
static void |
spreadCircuitry(Cell cell,
NodeInst ni,
char direction,
double amount,
double lX,
double hX,
double lY,
double hY)
Method to spread circuitry.
|
static void |
testEditable(Cell cell,
NodeInst item,
boolean giveError,
boolean allowInstanceChange)
Method to test whether a NodeInst can be modified in a cell.
|
public static void rotateArcText(ArcInst ai, Orientation dOrient, boolean mirror)
ai
- the ArcInst that was modifieddOrient
- the change in Orientation.mirror
- true if the arc was mirrored before the change.public static void rotateNodeText(NodeInst ni, Orientation dOrient, boolean wasMirroredInX, boolean wasMirroredInY)
ni
- the NodeInst that was modifieddOrient
- the change in Orientation.wasMirroredInX
- true if the node was mirrored in X before the change.wasMirroredInY
- true if the node was mirrored in Y before the change.public static void eraseObjectsInList(Cell cell, java.util.List<Geometric> list, boolean reconstructArcsAndExports, java.util.Set<ElectricObject> stuffToHighlight, EditingPreferences ep)
cell
- the cell with the objects to be deleted.list
- a List of Geometric or Highlight objects to be deleted.reconstructArcsAndExports
- true to reconstruct arcs to deleted cell instances.stuffToHighlight
- a set of objects to select (arcs and exports) if reconstruction is done.ep
- EditingPreferencespublic static java.util.List<CircuitChangeJobs.Reconnect> getPinsToPassThrough(Cell cell, EditingPreferences ep)
public static void spreadCircuitry(Cell cell, NodeInst ni, char direction, double amount, double lX, double hX, double lY, double hY)
cell
- the cell in which spreading happens.ni
- the NodeInst about which spreading happens (may be null).direction
- the direction to spread: 'u' for up, 'd' for down, 'l' for left, 'r' for right.amount
- the distance to spread (negative values compact).lX
- the low X bound of the node (the edge of spreading).hX
- the high X bound of the node (the edge of spreading).lY
- the low Y bound of the node (the edge of spreading).hY
- the high Y bound of the node (the edge of spreading).public static NodeInst replaceNodeInst(NodeInst oldNi, NodeProto newNp, PrimitiveNode.Function newFunc, boolean ignorePortNames, boolean allowMissingPorts, boolean preseveParameters, EditingPreferences ep)
public static void replaceNodeInsts(java.util.Collection<BatchChanges.NodeReplacement> replacements, boolean allowMissingPorts, boolean preserveParameters, EditingPreferences ep) throws JobException
replacements
- a batch of replacement tasksallowMissingPorts
- true to allow replacement to have missing ports and, therefore, delete the arcs that used to be there.ep
- EditingPreferencesJobException
- if replacement failedpublic static void inheritAttributes(NodeInst ni, EditingPreferences ep)
public static void inheritCellParameter(Variable var, NodeInst ni, EditingPreferences ep)
public static void markAllLibrariesForSavingCommand()
public static void markCurrentLibForSavingCommand()
public static void testEditable(Cell cell, NodeInst item, boolean giveError, boolean allowInstanceChange) throws CantEditException
cell
- the Cell in which the NodeInst resides.item
- the NodeInst (may be null).giveError
- true to print an error message if the modification is disallowed.allowInstanceChange
- true to allow a change to an instance when instances are locked
(this allows exports to be created and deleted).CantEditException
public static int cantEdit(Cell cell, NodeInst item, boolean giveError, boolean allowInstanceChange, boolean insideJob)
cell
- the Cell in which the NodeInst resides.item
- the NodeInst (may be null).giveError
- true to print an error message if the modification is disallowed.allowInstanceChange
- true to allow a change to an instance when instances are locked
(this allows exports to be created and deleted).insideJob
- true if this is being run inside of a job.