|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.util.graph2d.Graph2DUtilities
Utility class for graphic purposes.
GeneralPath
,
AffineTransform
,
PathIterator
,
FSymbol
Constructor Summary | |
Graph2DUtilities()
|
Method Summary | |
static java.awt.geom.AffineTransform |
createAffineTransform(java.awt.geom.Rectangle2D srcRegion,
java.awt.geom.Rectangle2D dstRegion)
Computes the affine transform needed to go from one rectangle to another |
static void |
drawDot(java.awt.Graphics2D g2d,
FDot dot)
Draws a dot on the graphics object |
static void |
drawGeneralPath(java.awt.Graphics2D g,
java.awt.geom.GeneralPath gp,
java.awt.geom.AffineTransform at)
Draws the general path on the graphics object with the given affine transformation |
static void |
drawMultiPoint(java.awt.Graphics2D g2d,
FMultiPoint2D mp)
Draws a multipoint on the graphics object |
static void |
drawPathIterator(java.awt.Graphics2D g,
java.awt.geom.PathIterator piter,
java.awt.geom.AffineTransform at)
Draws the path iterator on the graphics object with the given affine transformation |
static void |
drawPoint(java.awt.Graphics2D g2d,
FPoint2D point2D)
Draws a point on the graphics object |
static void |
drawPolygon(java.awt.Graphics2D g2d,
FPolygon2D polygon2D,
FSymbol symbol)
Draws a polygon on the graphics object with the given symbol |
static void |
drawPolyLine(java.awt.Graphics2D g2d,
FPolyline2D polyline2D)
Draws a polyline on the graphics object |
static void |
drawShape(java.awt.Graphics2D g2d,
java.awt.Shape shp,
FSymbol symbol)
Draws a shape on the graphics object with the given affine transform |
static double |
getPathIteratorArea(java.awt.geom.PathIterator piter)
Gets the area of the path iterator |
static double |
getSphericalPathIteratorArea(java.awt.geom.PathIterator piter)
Gets the area of a given spherical path iterator |
static int[] |
integerArrayListToIntArray(java.util.ArrayList l)
Converts array list of Integer objects into array of int |
static void |
simplifyArrayList(java.util.ArrayList xs,
java.util.ArrayList ys)
Tries to simplify an array of x and y coordinates. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Graph2DUtilities()
Method Detail |
public static void drawGeneralPath(java.awt.Graphics2D g, java.awt.geom.GeneralPath gp, java.awt.geom.AffineTransform at)
g
- the graphics objectgp
- the general pathat
- the affine transformationpublic static void drawPathIterator(java.awt.Graphics2D g, java.awt.geom.PathIterator piter, java.awt.geom.AffineTransform at)
g
- the graphics objectpiter
- the path iteratorat
- the affine transformationpublic static int[] integerArrayListToIntArray(java.util.ArrayList l)
l
-
public static void simplifyArrayList(java.util.ArrayList xs, java.util.ArrayList ys)
xs
- ys
- public static java.awt.geom.AffineTransform createAffineTransform(java.awt.geom.Rectangle2D srcRegion, java.awt.geom.Rectangle2D dstRegion)
srcRegion
- source rectangledstRegion
- destination rectangle
public static void drawShape(java.awt.Graphics2D g2d, java.awt.Shape shp, FSymbol symbol)
g2d
- shp
- symbol
- public static void drawMultiPoint(java.awt.Graphics2D g2d, FMultiPoint2D mp)
g2d
- mp
- public static void drawPoint(java.awt.Graphics2D g2d, FPoint2D point2D)
g2d
- point2D
- public static void drawDot(java.awt.Graphics2D g2d, FDot dot)
g2d
- dot
- public static void drawPolygon(java.awt.Graphics2D g2d, FPolygon2D polygon2D, FSymbol symbol)
g2d
- polygon2D
- symbol
- public static void drawPolyLine(java.awt.Graphics2D g2d, FPolyline2D polyline2D)
g2d
- polyline2D
- public static double getPathIteratorArea(java.awt.geom.PathIterator piter)
piter
- the path iterator
public static double getSphericalPathIteratorArea(java.awt.geom.PathIterator piter)
piter
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |