Class StyleModelUtils
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.util.StyleModelUtils
-
public class StyleModelUtils extends java.lang.Object
This set of methods return a style model based on the style name. The style model can be used in the client to render dynamic data, avoiding trips to the server to get style definitions. For color styles the name pattern is: color_<fill_color>_<stroke_color>_<opacitiy> color_red_black_255 - means style type is color, fill color is red, stroke color is red, and opacity is 255. For lines styles the name pattern is: line_<fill_color>_<line_width>_<opacitity> line_red_4_255 - means style type is line, fill color is red, width is 4, and opacity is 255 For marker styles the name pattern is: marker_<marker_type>_<fill_color>_<stroke_color>_<marker_size>_<opacitiy> marker_circle_red_black_8_255 - means style is marker, type is circle (we can also have star and rect), fill color is red, stroke color is black and opacity is 255. For text styles the name patter is: text_<text_font>_<fill_color>_<font_size>_<is_italic>_<is_bold> text_Dialog_red_12_false_false - means Dialog font, red color, size 12, non italic, non bold.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
defaultColorName
static java.lang.String
defaultLineName
static java.lang.String
defaultMarkerName
static java.lang.String
defaultTextName
-
Constructor Summary
Constructors Constructor Description StyleModelUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static oracle.mapviewer.share.style.StyleModel
getDefaultColorStyle()
Returns a default color render style.static oracle.mapviewer.share.style.StyleModel
getDefaultLabelStyle()
Returns a default label style (text).static oracle.mapviewer.share.style.StyleModel
getDefaultLineStyle()
Returns a default line render style.static oracle.mapviewer.share.style.StyleModel
getDefaultMarkerStyle()
Returns a default marker render style.static oracle.mapviewer.share.style.StyleModel
getDefaultRenderStyle()
Returns a default render style (it is a color).static oracle.mapviewer.share.style.StyleModel
getStyleModel(java.lang.String name)
Returns a style model related to input style name.
-
-
-
Method Detail
-
getStyleModel
public static oracle.mapviewer.share.style.StyleModel getStyleModel(java.lang.String name)
Returns a style model related to input style name.- Parameters:
name
- color, line, marker, or text pattern name- Returns:
-
getDefaultRenderStyle
public static oracle.mapviewer.share.style.StyleModel getDefaultRenderStyle()
Returns a default render style (it is a color).- Returns:
-
getDefaultColorStyle
public static oracle.mapviewer.share.style.StyleModel getDefaultColorStyle()
Returns a default color render style.- Returns:
-
getDefaultLineStyle
public static oracle.mapviewer.share.style.StyleModel getDefaultLineStyle()
Returns a default line render style.- Returns:
-
getDefaultMarkerStyle
public static oracle.mapviewer.share.style.StyleModel getDefaultMarkerStyle()
Returns a default marker render style.- Returns:
-
getDefaultLabelStyle
public static oracle.mapviewer.share.style.StyleModel getDefaultLabelStyle()
Returns a default label style (text).- Returns:
-
-