Class RenderUtils
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.util.RenderUtils
-
public class RenderUtils extends java.lang.Object
Set of methods to render spatial features (geometry, annotation text, ...) Support simple styles that are used for editable vector data.
-
-
Constructor Summary
Constructors Constructor Description RenderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
renderGeometryObject(java.awt.Graphics2D g2, java.awt.geom.AffineTransform transform, GeometryFeature feature, oracle.sdovis.style.Style renderStyle)
Renders the feature.static void
renderStyledPoint(java.awt.Graphics2D g2, oracle.sdovis.style.Style renderStyle, java.awt.geom.Point2D pt, double orientation)
Renders a point geometry.
-
-
-
Method Detail
-
renderGeometryObject
public static void renderGeometryObject(java.awt.Graphics2D g2, java.awt.geom.AffineTransform transform, GeometryFeature feature, oracle.sdovis.style.Style renderStyle)
Renders the feature. If marker render style may be used in different threads, is better to clone it before calling this method (geometry may be an oriented point).- Parameters:
g2
- graphics object (should not be used by different threads at the same time as orientation may be applied for oriented points).transform
-feature
-renderStyle
-
-
renderStyledPoint
public static void renderStyledPoint(java.awt.Graphics2D g2, oracle.sdovis.style.Style renderStyle, java.awt.geom.Point2D pt, double orientation)
Renders a point geometry.- Parameters:
g2
-renderStyle
-pt
- point already transformed.orientation
- orientation to be applied if marker style.
-
-