com.sun.electric.tool.generator.flag
Class Utils
java.lang.Object
com.sun.electric.tool.generator.flag.Utils
public class Utils
- extends java.lang.Object
Constructor Summary |
Utils()
|
Method Summary |
static void |
clearTaskDescription()
|
static void |
error(boolean cond,
java.lang.String msg)
|
static java.awt.geom.Rectangle2D |
findBounds(Cell c)
|
static boolean |
isGnd(PortInst pi)
|
static boolean |
isGnd(PortProto pp)
|
static boolean |
isPwr(PortInst pi)
|
static boolean |
isPwr(PortProto pp)
|
static boolean |
isPwrGnd(PortInst pi)
|
static boolean |
isPwrGnd(PortProto pp)
|
static boolean |
isPwrGnd(ToConnect tc)
|
static boolean |
nextToBoundary(double coord,
double boundCoord,
double fudge)
|
static boolean |
onBottom(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
|
static boolean |
onBounds(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
|
static boolean |
onLeftOrRight(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
|
static boolean |
onTop(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
|
static boolean |
onTopOrBottom(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
|
static void |
pr(java.lang.String s)
|
static void |
printStackTrace(java.lang.Throwable th)
|
static void |
prln(java.lang.String s)
|
static void |
saveTaskDescription(java.lang.String msg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
prln
public static void prln(java.lang.String s)
pr
public static void pr(java.lang.String s)
error
public static void error(boolean cond,
java.lang.String msg)
saveTaskDescription
public static void saveTaskDescription(java.lang.String msg)
clearTaskDescription
public static void clearTaskDescription()
isPwr
public static boolean isPwr(PortProto pp)
isPwr
public static boolean isPwr(PortInst pi)
isGnd
public static boolean isGnd(PortProto pp)
isGnd
public static boolean isGnd(PortInst pi)
isPwrGnd
public static boolean isPwrGnd(PortProto pp)
isPwrGnd
public static boolean isPwrGnd(PortInst pi)
isPwrGnd
public static boolean isPwrGnd(ToConnect tc)
onTop
public static boolean onTop(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
onBottom
public static boolean onBottom(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
onTopOrBottom
public static boolean onTopOrBottom(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
onLeftOrRight
public static boolean onLeftOrRight(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
onBounds
public static boolean onBounds(PortInst pi,
java.awt.geom.Rectangle2D bounds,
double fudge)
nextToBoundary
public static boolean nextToBoundary(double coord,
double boundCoord,
double fudge)
findBounds
public static java.awt.geom.Rectangle2D findBounds(Cell c)
printStackTrace
public static void printStackTrace(java.lang.Throwable th)