|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.hci.r3.util.graphics.GraphicsUtils
public class GraphicsUtils
This software is distributed under the BSD License.
| Constructor Summary | |
|---|---|
GraphicsUtils()
|
|
| Method Summary | |
|---|---|
static java.awt.Polygon |
createPolygon(java.awt.geom.Point2D... points)
Creates a polygon from an array of points. |
static java.awt.RenderingHints |
getBestRenderingHints()
|
static java.lang.String |
getPathAsString(java.awt.geom.PathIterator pathIterator)
|
static java.awt.geom.Point2D[] |
getPointsRecentered(java.awt.geom.Point2D[] points,
double originX,
double originY)
Recenter the points around x and y. |
static java.awt.geom.Point2D[] |
getPointsWithConvertedUnits(Units sourceUnit,
Units destUnit,
java.awt.geom.Point2D... points)
Takes an input array of points, and returns a new array of points where all the values have been converted from the old unit to the new destination unit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphicsUtils()
| Method Detail |
|---|
public static java.awt.Polygon createPolygon(java.awt.geom.Point2D... points)
points -
public static java.awt.RenderingHints getBestRenderingHints()
public static java.lang.String getPathAsString(java.awt.geom.PathIterator pathIterator)
pathIterator -
public static java.awt.geom.Point2D[] getPointsRecentered(java.awt.geom.Point2D[] points,
double originX,
double originY)
points - each point will be recalculatd relative to the new origin.originX - the new originXoriginY -
public static java.awt.geom.Point2D[] getPointsWithConvertedUnits(Units sourceUnit,
Units destUnit,
java.awt.geom.Point2D... points)
sourceUnit - the input points are defined in this unitdestUnit - the output Point2D[] is definited in this unit.points - the input points.
|
Copyright 2006 Stanford University | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||