public class IconNodeInst extends NodeInst
NodeInst.ExpansionState
NODE_NAME, NODE_PROTO, TRACE, TRANSISTOR_LENGTH_KEY
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Variable param)
Method to add a Parameter to this NodeInst.
|
void |
addVar(Variable var)
Method to add a Variable on this IconNodeInst.
|
void |
copyVarsFrom(NodeInst other)
Method to copy all variables from another NodeInst to this NodeInst.
|
void |
delParameter(Variable.Key key)
Method to delete a defined Parameter from this IconNodeInst.
|
ImmutableIconInst |
getD()
Returns persistent data of this IconNodeInst.
|
java.util.Iterator<Variable> |
getDefinedParameters()
Method to return an Iterator over defined Parameters on this IconNodeInst.
|
Nodable |
getNodable(int arrayIndex)
Get Nodable by array index.
|
Nodable[] |
getNodables()
Get array of Nodables.
|
int |
getNumNodables()
Get number of Nodables.
|
Variable |
getParameter(Variable.Key key)
Method to return the Parameter on this IconNodeInst with the given key.
|
Variable |
getParameterOrVariable(Variable.Key key)
Method to return the Parameter or Variable on this ElectricObject with a given key.
|
java.util.Iterator<Variable> |
getParameters()
Method to return an Iterator over all Parameters on this IconNodeInst.
|
java.util.Iterator<Variable> |
getParametersAndVariables()
Method to return an Iterator over all Parameters and Variables on this ElectricObject.
|
Cell |
getProto()
Method to return the prototype of this IconNodeInst.
|
Variable |
getVar(Variable.Key key)
Method to return the Variable on this ElectricObject with a given key.
|
boolean |
isDefinedParameter(Variable.Key key)
Method to tell if the Variable.Key is a defined parameters of this IconNodeInst.
|
boolean |
isParam(Variable.Key varKey)
Method to return true if the Variable on this NodeInst with given key is a parameter.
|
Variable |
newVar(Variable.Key key,
java.lang.Object value,
TextDescriptor td)
Method to create a Variable on this ElectricObject with the specified values.
|
boolean |
setD(ImmutableNodeInst newD,
boolean notify)
Modifies persistent data of this NodeInst.
|
void |
setDInUndo(ImmutableNodeInst newD) |
void |
setTextDescriptor(Variable.Key varKey,
TextDescriptor td)
Updates the TextDescriptor on this NodeInst selected by varKey.
|
Variable |
updateParam(Variable.Key key,
java.lang.Object value,
EditingPreferences ep)
Method to update a Parameter on this ElectricObject with the specified values.
|
Variable |
updateVar(Variable.Key key,
java.lang.Object value,
EditingPreferences ep)
Method to update a Variable on this ElectricObject with the specified values.
|
Variable |
updateVarCode(Variable.Key key,
CodeExpression.Code code)
Method to update a Variable on this ElectricObject with the specified code.
|
Variable |
updateVarText(Variable.Key key,
java.lang.String text,
EditingPreferences ep)
Method to update a text Variable on this ElectricObject with the specified values.
|
addDisplayableVariables, check, checkAndRepair, checkChanging, checkNameKey, checkPossibleVariableEffects, checkReplacement, clearHardSelect, clearLocked, clearVisInside, compare, compareTo, connectsTo, contains, copyStateBits, delVar, describe, doReplace, findClosestPortInst, findEssentialBounds, findPortInst, findPortInstFromEquivalentProto, findPortInstFromProto, getAnchorCenter, getAnchorCenterX, getAnchorCenterY, getAngle, getArcDegrees, getBasename, getBaseShape, getBaseShape, getBounds, getCellBackup, getCellTree, getConnections, getDatabase, getDisplayableVariables, getExports, getFunction, getLambdaBaseXSize, getLambdaBaseYSize, getName, getNameKey, getNodableArrayIndex, getNodeId, getNodeIndex, getNodeInst, getNodeInstSize, getNumConnections, getNumExports, getNumPortInsts, getOnlyPortInst, getOrient, getPortInst, getPortInsts, getPrimitiveDependentNodeSize, getProtoEquivalent, getSerpentineTransistorLength, getShape, getShapeOfPort, getShapeOfPortForWiringTool, getTechSpecific, getTechSpecificAddition, getTextDescriptor, getTopology, getTrace, getTransistorAltGatePort, getTransistorBasePort, getTransistorBiasPort, getTransistorCollectorPort, getTransistorDrainPort, getTransistorEmitterPort, getTransistorGatePort, getTransistorSize, getTransistorSourcePort, getUntransformedBounds, getXSize, getXSizeWithoutOffset, getYSize, getYSizeWithoutOffset, hasConnections, hasExports, invisiblePinWithOffsetText, isCellInstance, isConnected, isDeprecatedVariable, isExpanded, isHardSelect, isIconOfParent, isInlinePin, isInvisiblePinWithText, isLinked, isLocked, isMirroredAboutXAxis, isMirroredAboutYAxis, isPrimitiveTransistor, isPrimtiveSubstrateNode, isSerpentineTransistor, isSpecialNode, isUsernamed, isVisInside, isWiped, isXMirrored, isYMirrored, kill, libDescribe, lowLevelModify, lowLevelNewInstance, makeDummyInstance, makeDummyInstance, makeDummyInstance, makeDummyInstance, makeInstance, makeInstance, makeInstance, makeInstance, makeInstance, makeInstance, makeInstance, makeInstance, makeInstanceFromPoly, modifyInstance, modifyInstances, move, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, noLibDescribe, pinUseCount, pureRotateIn, pureRotateOut, redoGeometric, replace, resize, rotate, rotateIn, rotateIn, rotateOut, rotateOut, rotateOutAboutTrueCenter, rotateOutAboutTrueCenter, setArcDegrees, setExpanded, setHardSelect, setLocked, setName, setPrimitiveFunction, setPrimitiveNodeSize, setPrimitiveNodeSize, setSerpentineTransistorLength, setTechSpecific, setTrace, setTrace, setTraceRelative, setVisInside, toString, traceWraps, transformIn, transformIn, transformOut, transformOut, translateIn, translateIn, translateOut, translateOut, updatePortInsts, updatePortInsts, whichCell, writeReplace
getInfo, getParent, getTrueCenter, getTrueCenterX, getTrueCenterY, whichMultiPage
addPolyList, checkExamine, checkUndoing, computeTextPoly, copyTextDescriptorFrom, getArtwork, getCode, getDisplayableVariables, getFullDescription, getGeneric, getMutableTextDescriptor, getNumVariables, getParameterOrVariable, getReadableName, getSchematics, getTechPool, getTextBounds, getVar, getVariables, getVarValue, getVarValue, isDatabaseObject, newDisplayVar, newDisplayVar, newVar, newVar, newVar, newVar, renameVar, renameVar, setOff, uniqueObjectName, uniqueObjectName
public ImmutableIconInst getD()
public boolean setD(ImmutableNodeInst newD, boolean notify)
public void setDInUndo(ImmutableNodeInst newD)
setDInUndo
in class NodeInst
public Cell getProto()
public void addVar(Variable var)
public Variable getVar(Variable.Key key)
getVar
in interface Nodable
getVar
in class ElectricObject
key
- the key of the Variable.java.lang.NullPointerException
- if key is nullpublic Variable getParameterOrVariable(Variable.Key key)
getParameterOrVariable
in interface Nodable
getParameterOrVariable
in class ElectricObject
key
- the key of the Parameter or Variable.java.lang.NullPointerException
- if key is nullpublic java.util.Iterator<Variable> getParametersAndVariables()
getParametersAndVariables
in class ElectricObject
public Variable getParameter(Variable.Key key)
getParameter
in interface Nodable
getParameter
in class NodeInst
key
- the key of the parameterpublic boolean isDefinedParameter(Variable.Key key)
isDefinedParameter
in interface Nodable
isDefinedParameter
in class NodeInst
key
- the key of the parameterpublic java.util.Iterator<Variable> getParameters()
getParameters
in interface Nodable
getParameters
in class NodeInst
public java.util.Iterator<Variable> getDefinedParameters()
getDefinedParameters
in interface Nodable
getDefinedParameters
in class NodeInst
public void addParameter(Variable param)
addParameter
in class NodeInst
param
- the Variable to delete.public void delParameter(Variable.Key key)
delParameter
in class NodeInst
key
- the key of the Variable to delete.public boolean isParam(Variable.Key varKey)
isParam
in class ElectricObject
varKey
- key to testpublic void setTextDescriptor(Variable.Key varKey, TextDescriptor td)
setTextDescriptor
in class NodeInst
varKey
- key of variable or special key.td
- new value TextDescriptorpublic Variable newVar(Variable.Key key, java.lang.Object value, TextDescriptor td)
newVar
in class ElectricObject
key
- the key of the Variable.value
- the object to store in the Variable.td
- text descriptor of the Variablepublic Variable updateVar(Variable.Key key, java.lang.Object value, EditingPreferences ep)
updateVar
in class ElectricObject
key
- the key of the Variable.value
- the object to store in the Variable.ep
- EditingPreferences with default TextDescriptorspublic Variable updateParam(Variable.Key key, java.lang.Object value, EditingPreferences ep)
updateParam
in class NodeInst
key
- the key of the Variable.value
- the object to store in the Variable.ep
- EditingPreferences with default TextDescriptorspublic Variable updateVarText(Variable.Key key, java.lang.String text, EditingPreferences ep)
updateVarText
in class ElectricObject
key
- the key of the Variable.text
- the text to store in the Variable.ep
- EditingPreferences with default TextDescriptorspublic Variable updateVarCode(Variable.Key key, CodeExpression.Code code)
updateVarCode
in class ElectricObject
key
- the key of the Variable.code
- the new code of the Variable.public void copyVarsFrom(NodeInst other)
copyVarsFrom
in class NodeInst
other
- the other NodeInst from which to copy Variables.public Nodable[] getNodables()
getNodables
in class NodeInst
public int getNumNodables()
getNumNodables
in class NodeInst
public Nodable getNodable(int arrayIndex)
getNodable
in class NodeInst
arrayIndex
- the Nodable index.