public abstract class Geometric extends ElectricObject implements RTBounds
Modifier and Type | Field and Description |
---|---|
protected Cell |
parent
Cell containing this Geometric object.
|
Modifier | Constructor and Description |
---|---|
protected |
Geometric(Cell parent)
The constructor is only called from subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
checkChanging()
Routing to check whether changing of this cell allowed or not.
|
java.lang.String |
describe(boolean withQuotes)
Method to describe this Geometric as a string.
|
abstract java.awt.geom.Rectangle2D |
getBounds()
Method to return the bounds of this Geometric.
|
EDatabase |
getDatabase()
Returns database to which this Geometric belongs.
|
java.awt.geom.Rectangle2D |
getGridBounds(java.awt.geom.Rectangle2D r)
Method to fill the bounds of this Geometric in grid units into specified Rectangle2D.
|
void |
getInfo()
Method to write a description of this Geometric.
|
java.awt.geom.Rectangle2D |
getLambdaBounds(java.awt.geom.Rectangle2D r)
Method to fill the bounds of this Geometric in lambda units into specified Rectangle2D.
|
Cell |
getParent()
Method to return the Cell that contains this Geometric object.
|
abstract java.util.Iterator<Poly> |
getShape(Poly.Builder polyBuilder)
Returns the polygons that describe this Geometric.
|
java.awt.geom.Point2D |
getTrueCenter()
Method to return the center coordinate of this Geometric.
|
double |
getTrueCenterX()
Method to return the center X coordinate of this Geometric.
|
double |
getTrueCenterY()
Method to return the center Y coordinate of this Geometric.
|
abstract boolean |
isConnected(Geometric geom)
Method to tell whether this Geometric object is connected directly to another
(that is, an arcinst connected to a nodeinst).
|
Cell |
whichCell()
Method to determine the appropriate Cell associated with this ElectricObject.
|
int |
whichMultiPage()
Method to determine which page of a multi-page schematic this Geometric is on.
|
addDisplayableVariables, addVar, check, checkExamine, checkUndoing, computeTextPoly, copyTextDescriptorFrom, copyVarsFrom, delVar, getArtwork, getCode, getD, getDisplayableVariables, getEditingPreferences, getGeneric, getMutableTextDescriptor, getNumVariables, getParameterOrVariable, getParameterOrVariable, getParametersAndVariables, getPolyList, getSchematics, getTech, getTechPool, getTextBounds, getTextDescriptor, getVar, getVar, getVariables, getVarValue, getVarValue, isDatabaseObject, isDeprecatedVariable, isLinked, isParam, newDisplayVar, newVar, newVar, newVar, newVar, numDisplayableVariables, renameVar, renameVar, setOff, setTextDescriptor, toString, uniqueObjectName, uniqueObjectName, updateVar, updateVarCode, updateVarText
protected final Cell parent
protected Geometric(Cell parent)
public java.lang.String describe(boolean withQuotes)
withQuotes
- to wrap description between quotespublic void checkChanging()
checkChanging
in class ElectricObject
public Cell whichCell()
whichCell
in class ElectricObject
public int whichMultiPage()
public EDatabase getDatabase()
getDatabase
in class ElectricObject
public void getInfo()
getInfo
in class ElectricObject
public Cell getParent()
public abstract java.util.Iterator<Poly> getShape(Poly.Builder polyBuilder)
polyBuilder
- Poly builder.public abstract java.awt.geom.Rectangle2D getBounds()
public java.awt.geom.Rectangle2D getLambdaBounds(java.awt.geom.Rectangle2D r)
r
- rectangle to fillpublic java.awt.geom.Rectangle2D getGridBounds(java.awt.geom.Rectangle2D r)
r
- rectangle to fillpublic double getTrueCenterX()
public double getTrueCenterY()
public java.awt.geom.Point2D getTrueCenter()
public abstract boolean isConnected(Geometric geom)
geom
- other Geometric object.