|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.routing.RouteElement
com.sun.electric.tool.routing.RouteElementArc
public class RouteElementArc
Class for defining RouteElements that are arcs.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.electric.tool.routing.RouteElement |
---|
RouteElement.RouteElementAction |
Method Summary | |
---|---|
void |
addHighlightArea(Highlighter highlighter)
Adds RouteElement to highlights |
static RouteElementArc |
deleteArc(ArcInst arcInstToDelete)
Factory method for making a deleteArc RouteElement |
ElectricObject |
doAction()
Perform the action specified by RouteElementAction action. |
int |
getArcAngle()
|
double |
getArcBaseWidth()
Return arc width. |
ArcProto |
getArcProto()
Get the arc proto to be created/deleted. |
RouteElementPort |
getHead()
|
java.awt.geom.Point2D |
getHeadConnPoint()
|
boolean |
getHeadExtension()
|
RouteElementPort |
getTail()
|
java.awt.geom.Point2D |
getTailConnPoint()
|
boolean |
getTailExtension()
|
boolean |
isArcHorizontal()
Return true if the new arc is a horizontal arc, false otherwise |
boolean |
isArcVertical()
Return true if the new arc is a vertical arc, false otherwise |
static RouteElementArc |
newArc(Cell cell,
ArcProto ap,
double arcBaseWidth,
RouteElementPort headRE,
RouteElementPort tailRE,
java.awt.geom.Point2D headConnPoint,
java.awt.geom.Point2D tailConnPoint,
java.lang.String name,
TextDescriptor nameTextDescriptor,
ArcInst inheritFrom,
boolean extendArcHead,
boolean extendArcTail,
PolyMerge stayInside)
Factory method for making a newArc RouteElement |
boolean |
replaceArcEnd(RouteElementPort oldEnd,
RouteElementPort newEnd)
Used to update end points of new arc if they change Only valid if called on newArcs, does nothing otherwise. |
void |
setArcAngle(int angle)
Set a newArc's angle. |
void |
setArcBaseWidth(double width)
Set the arc width if this is a newArc RouteElement, otherwise does nothing. |
void |
setHeadExtension(boolean e)
|
void |
setTailExtension(boolean e)
|
java.lang.String |
toString()
Return string decribing the RouteElement |
Methods inherited from class com.sun.electric.tool.routing.RouteElement |
---|
getAction, getCell, isDone, isShowHighlight, setDone, setShowHighlight |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static RouteElementArc newArc(Cell cell, ArcProto ap, double arcBaseWidth, RouteElementPort headRE, RouteElementPort tailRE, java.awt.geom.Point2D headConnPoint, java.awt.geom.Point2D tailConnPoint, java.lang.String name, TextDescriptor nameTextDescriptor, ArcInst inheritFrom, boolean extendArcHead, boolean extendArcTail, PolyMerge stayInside)
ap
- Type of ArcInst to makeheadRE
- RouteElement (must be newNode or existingPortInst) at head of arctailRE
- RouteElement (must be newNode or existingPortInst) at tail or arcnameTextDescriptor
- inheritFrom
- extendArcHead
- only applied if inheritFrom is nullextendArcTail
- only applied if inheritFrom is nullstayInside
- a polygonal area in which the new arc must reside (if not null).
The arc is narrowed and has its ends extended in an attempt to stay inside this area.public static RouteElementArc deleteArc(ArcInst arcInstToDelete)
arcInstToDelete
- the arcInst to deletepublic ArcProto getArcProto()
public RouteElementPort getHead()
public RouteElementPort getTail()
public java.awt.geom.Point2D getHeadConnPoint()
public java.awt.geom.Point2D getTailConnPoint()
public boolean getHeadExtension()
public boolean getTailExtension()
public double getArcBaseWidth()
public void setArcBaseWidth(double width)
public void setArcAngle(int angle)
angle
- the angle, in tenth degreespublic int getArcAngle()
public void setHeadExtension(boolean e)
public void setTailExtension(boolean e)
public boolean isArcVertical()
public boolean isArcHorizontal()
public boolean replaceArcEnd(RouteElementPort oldEnd, RouteElementPort newEnd)
public ElectricObject doAction()
doAction
in class RouteElement
public void addHighlightArea(Highlighter highlighter)
addHighlightArea
in class RouteElement
public java.lang.String toString()
toString
in class RouteElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |