|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.gis.client.gui.render.RenderingUtilities
public class RenderingUtilities
| Constructor Summary | |
|---|---|
RenderingUtilities()
|
|
| Method Summary | |
|---|---|
protected static java.awt.Shape |
getCircleShape(double[] centerLocation,
double size)
Get circle shape given the given size and center location |
static java.awt.Rectangle |
getClipBoundsForGeometry(com.vividsolutions.jts.geom.Geometry geom,
com.vividsolutions.jts.geom.Envelope boundingBox,
java.awt.Rectangle panelRect,
double strokeWidth)
Get clip bounds for the given geometry based on the actual gis panel parameters |
static java.lang.String |
getColorHexString(java.awt.Color color)
Get color representation on hexadecimal code |
protected static java.awt.Shape |
getCrossShape(double[] centerLocation,
double size)
Get cross shape given the given size and center location |
static java.awt.Color |
getFillColorForValues(IGisRule rule,
java.util.Map<java.lang.String,java.lang.Object> recordValues)
Get fill color for the current data obtained from the color maps definition |
static java.awt.Polygon |
getPolygonFromGeom(com.vividsolutions.jts.geom.Geometry geom,
com.vividsolutions.jts.geom.Envelope boundingBox,
java.awt.Rectangle panelBounds)
|
static java.lang.String[] |
getShapeNamesArray()
Get the set of well-known names of possible point shapes |
static java.awt.Shape |
getShapeToRender(double[] centerLocation,
double size,
java.lang.String wellKnownName)
Get shape to render for a point in the gis panel |
protected static java.awt.Shape |
getSquareShape(double[] centerLocation,
double size)
Get square shape given the given size and center location |
protected static java.awt.Shape |
getStarShape(double[] centerLocation,
double size)
Get star shape given the given size and center location |
static java.awt.Color |
getStrokeColorForValues(IGisRule rule,
java.util.Map<java.lang.String,java.lang.Object> recordValues)
Get stroke color for the current data obtained from the color maps definition |
protected static java.awt.Shape |
getTriangleShape(double[] centerLocation,
double size)
Get triangle shape given the given size and center location |
protected static java.awt.Shape |
getXShape(double[] centerLocation,
double size)
Get X shape given the given size and center location |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RenderingUtilities()
| Method Detail |
|---|
public static java.awt.Rectangle getClipBoundsForGeometry(com.vividsolutions.jts.geom.Geometry geom,
com.vividsolutions.jts.geom.Envelope boundingBox,
java.awt.Rectangle panelRect,
double strokeWidth)
geom - Geometry to calculate boundsboundingBox - Map bounding box areapanelRect - Map panel boundsstrokeWidth - Stroke width
public static java.lang.String getColorHexString(java.awt.Color color)
color - Color
public static java.awt.Polygon getPolygonFromGeom(com.vividsolutions.jts.geom.Geometry geom,
com.vividsolutions.jts.geom.Envelope boundingBox,
java.awt.Rectangle panelBounds)
geom - Interest geometryboundingBox - Map viewer areapanelBounds - Map viewer dimension
public static java.awt.Color getFillColorForValues(IGisRule rule,
java.util.Map<java.lang.String,java.lang.Object> recordValues)
rule - Style rulerecordValues - Data record
public static java.awt.Color getStrokeColorForValues(IGisRule rule,
java.util.Map<java.lang.String,java.lang.Object> recordValues)
rule - Style rulerecordValues - Data record
public static java.lang.String[] getShapeNamesArray()
public static java.awt.Shape getShapeToRender(double[] centerLocation,
double size,
java.lang.String wellKnownName)
centerLocation - Center location of the point to rendersize - Size of the pointwellKnownName - Name of the shape to create: "star", "square", "circle", "cross", "triangle" or "x"
protected static java.awt.Shape getSquareShape(double[] centerLocation,
double size)
protected static java.awt.Shape getCircleShape(double[] centerLocation,
double size)
protected static java.awt.Shape getCrossShape(double[] centerLocation,
double size)
protected static java.awt.Shape getTriangleShape(double[] centerLocation,
double size)
protected static java.awt.Shape getStarShape(double[] centerLocation,
double size)
protected static java.awt.Shape getXShape(double[] centerLocation,
double size)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||