|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomero.model.SmartShape.Util
public static class SmartShape.Util
Utility class used as a mixin by all of the SmartShape
implementations. The inheritance hierarchy of Ice-generated objects
doesn't allow for simply subclassing .
Constructor Summary | |
---|---|
SmartShape.Util()
|
Method Summary | |
---|---|
static void |
appendDbPoint(StringBuilder sb,
double cx,
double cy)
|
static void |
appendDbPoint(StringBuilder sb,
omero.model.Point p)
|
static boolean |
appendSegement(StringBuilder sb,
boolean first,
double cx,
double cy)
|
static void |
appendSvgPoint(StringBuilder sb,
double cx,
double cy)
|
static void |
appendSvgPoint(StringBuilder sb,
omero.model.Point p)
|
static boolean |
checkNonNull(List<omero.model.Point> points)
Used from assert statements of the form: assert Util.checkNonNull(points) : "Null points in " + this; in all the implementations of SmartShape.asPoints() . |
static Shape |
parseAwtPath(String str)
|
static List<omero.model.Point> |
parsePoints(String str)
|
static String |
parsePointsToPath(String str,
boolean close)
|
static List<omero.model.Point> |
points(double x,
double y,
double w,
double h)
Returns the four corner points of a rectangle |
static void |
pointsByBoundingBox(Shape s,
Rectangle2D r,
SmartShape.PointCallback cb)
|
static String |
pointsToPath(List<omero.model.Point> points,
boolean close)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SmartShape.Util()
Method Detail |
---|
public static boolean checkNonNull(List<omero.model.Point> points)
assert Util.checkNonNull(points) : "Null points in " + this;in all the implementations of
SmartShape.asPoints()
.
points
-
NullPointerException
public static void appendDbPoint(StringBuilder sb, omero.model.Point p)
public static void appendDbPoint(StringBuilder sb, double cx, double cy)
public static void appendSvgPoint(StringBuilder sb, omero.model.Point p)
public static void appendSvgPoint(StringBuilder sb, double cx, double cy)
public static boolean appendSegement(StringBuilder sb, boolean first, double cx, double cy)
public static String pointsToPath(List<omero.model.Point> points, boolean close)
public static String parsePointsToPath(String str, boolean close)
public static Shape parseAwtPath(String str)
public static List<omero.model.Point> parsePoints(String str)
public static List<omero.model.Point> points(double x, double y, double w, double h)
x
- the top-left corner's x coordinate (the lowest x)y
- the top-left corner's y coordinate (the lowest y)w
- width of the rectangle so that x+w gives the highest xh
- height of the rectange so taht y+h gives the highest y
public static void pointsByBoundingBox(Shape s, Rectangle2D r, SmartShape.PointCallback cb)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.