|
|||||||||
| Home >> All >> com >> arranger >> jarl >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.arranger.jarl.util
Class WidgetUtil

java.lang.Objectcom.arranger.jarl.util.WidgetUtil
- public class WidgetUtil
- extends java.lang.Object
MotionPathUtil created on Feb 22, 2003
| Nested Class Summary | |
protected static class |
WidgetUtil.BaseJarlObjectZOrderComparator
|
| Field Summary | |
static double |
DEFAULT_FLATTENING_LEVEL
|
protected static double |
DEFAULT_PRECISION
|
| Constructor Summary | |
WidgetUtil()
|
|
| Method Summary | |
static void |
dumpPoints(java.awt.geom.Point2D[] points)
Prints points to system out |
static java.awt.geom.Point2D[] |
getCoordsFromString(java.lang.String string)
returns two Point2D from an string that looks like: '40%, 25%, 50%, 25%' (x1, y1, x2, y2) |
static java.awt.geom.Point2D |
getPointFromString(java.lang.String string)
returns a Point2D from an string that looks like: '40%, 25%' |
static java.awt.geom.Point2D[] |
getPoints(java.awt.Shape shape)
Given a shape, return an array of points describing its shape |
static java.awt.geom.Point2D[] |
getPoints(java.awt.Shape shape,
double flatteningLevel)
Given a shape, return an array of points describing its shape |
static com.arranger.jarl.base.Time |
getRelativeTime(com.arranger.jarl.base.ITimedJarlObject timedJarlObject,
com.arranger.jarl.base.Time currentTime)
|
static WidgetConfigSegment |
getWidgetConfigSegment(java.util.List widgetConfigSegments,
double currentTimePct)
Obtain the proper MotionPath |
static java.util.List |
initWidgetConfigSegments(org.w3c.dom.Element elem,
IWidgetConfigSegmentFactory widgetConfigSegmentFactory)
Returns a list of motions segments, or null if none are found |
static double |
normalize(double baseValue,
java.lang.String value)
If value ends with a % then make it a percentage of the real value |
static java.awt.geom.GeneralPath |
pointsToShape(java.awt.geom.Point2D[] points,
boolean addClose)
This will turn a series of points into a shape |
static void |
sortBaseJarlObjectZOrder(java.util.List baseJarlObjectList)
sort a list of objects by their zorder |
static java.awt.geom.Point2D[] |
transform(java.awt.Shape sourceShape,
IWidgetTransform widgetTransform)
Transforms the shape by the widgetTransform function |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
DEFAULT_FLATTENING_LEVEL
public static final double DEFAULT_FLATTENING_LEVEL
- See Also:
- Constant Field Values
DEFAULT_PRECISION
protected static final double DEFAULT_PRECISION
- See Also:
- Constant Field Values
| Constructor Detail |
WidgetUtil
public WidgetUtil()
| Method Detail |
getPointFromString
public static java.awt.geom.Point2D getPointFromString(java.lang.String string)
- returns a Point2D from an string that looks like: '40%, 25%'
getCoordsFromString
public static java.awt.geom.Point2D[] getCoordsFromString(java.lang.String string)
- returns two Point2D from an string that looks like: '40%, 25%, 50%, 25%' (x1, y1, x2, y2)
normalize
public static double normalize(double baseValue,
java.lang.String value)
- If value ends with a % then make it a percentage of the real value
getPoints
public static java.awt.geom.Point2D[] getPoints(java.awt.Shape shape)
- Given a shape, return an array of points describing its shape
getPoints
public static java.awt.geom.Point2D[] getPoints(java.awt.Shape shape, double flatteningLevel)
- Given a shape, return an array of points describing its shape
initWidgetConfigSegments
public static java.util.List initWidgetConfigSegments(org.w3c.dom.Element elem, IWidgetConfigSegmentFactory widgetConfigSegmentFactory)
- Returns a list of motions segments, or null if none are found
getWidgetConfigSegment
public static WidgetConfigSegment getWidgetConfigSegment(java.util.List widgetConfigSegments, double currentTimePct)
- Obtain the proper MotionPath
getRelativeTime
public static com.arranger.jarl.base.Time getRelativeTime(com.arranger.jarl.base.ITimedJarlObject timedJarlObject, com.arranger.jarl.base.Time currentTime)
pointsToShape
public static java.awt.geom.GeneralPath pointsToShape(java.awt.geom.Point2D[] points, boolean addClose)
- This will turn a series of points into a shape
transform
public static java.awt.geom.Point2D[] transform(java.awt.Shape sourceShape, IWidgetTransform widgetTransform)
- Transforms the shape by the widgetTransform function
dumpPoints
public static void dumpPoints(java.awt.geom.Point2D[] points)
- Prints points to system out
sortBaseJarlObjectZOrder
public static void sortBaseJarlObjectZOrder(java.util.List baseJarlObjectList)
- sort a list of objects by their zorder
|
|||||||||
| Home >> All >> com >> arranger >> jarl >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.arranger.jarl.util.WidgetUtil