|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.util.GraphicsUtil
public class GraphicsUtil
Utility class for Graphics to export symbol.
Method Summary | |
---|---|
static byte[] |
exportSymbol(WebSymbol symbol,
int width,
int height)
Convenient method to export WebSymbol based on the specified dimension. |
static byte[] |
exportSymbol(WebSymbol symbol,
WebGeometry geometry,
int width,
int height)
Convenient method to export WebSymbol based on the specified WebGeometry and dimension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] exportSymbol(WebSymbol symbol, int width, int height)
Convenient method to export WebSymbol
based on the specified dimension.
symbol
- the WebSymbol
objectwidth
- the width of the bounding boxheight
- the height of the bouding box
public static byte[] exportSymbol(WebSymbol symbol, WebGeometry geometry, int width, int height)
Convenient method to export WebSymbol
based on the specified WebGeometry
and dimension.
The Geometry should be in screen coordinates.
For example polygon geometry with dimension (10 X 10), WebPoint point1 = new WebPoint(0,0); WebPoint point2 = new WebPoint(10,0); WebPoint point3 = new WebPoint(10,10); WebPoint point4 = new WebPoint(0,10); WebRing ring = new WebRing(); ring.addPoint(point1); ring.addPoint(point2); ring.addPoint(point3); ring.addPoint(point4); ring.addPoint(point1); WebPolygon polygon = new WebPolygon(); polygon.addRing(ring);
symbol
- the WebSymbol
objectgeometry
- the WebGeometry
objectwidth
- the width of the bounding boxheight
- the height of the bouding box
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |