public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
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) |
public static void prln(java.lang.String s)
public static void pr(java.lang.String s)
public static void error(boolean cond, java.lang.String msg)
public static void saveTaskDescription(java.lang.String msg)
public static void clearTaskDescription()
public static boolean isPwr(PortProto pp)
public static boolean isPwr(PortInst pi)
public static boolean isGnd(PortProto pp)
public static boolean isGnd(PortInst pi)
public static boolean isPwrGnd(PortProto pp)
public static boolean isPwrGnd(PortInst pi)
public static boolean isPwrGnd(ToConnect tc)
public static boolean onTop(PortInst pi, java.awt.geom.Rectangle2D bounds, double fudge)
public static boolean onBottom(PortInst pi, java.awt.geom.Rectangle2D bounds, double fudge)
public static boolean onTopOrBottom(PortInst pi, java.awt.geom.Rectangle2D bounds, double fudge)
public static boolean onLeftOrRight(PortInst pi, java.awt.geom.Rectangle2D bounds, double fudge)
public static boolean onBounds(PortInst pi, java.awt.geom.Rectangle2D bounds, double fudge)
public static boolean nextToBoundary(double coord, double boundCoord, double fudge)
public static java.awt.geom.Rectangle2D findBounds(Cell c)
public static void printStackTrace(java.lang.Throwable th)