Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • defaultColorName

        public static java.lang.String defaultColorName
      • defaultLineName

        public static java.lang.String defaultLineName
      • defaultMarkerName

        public static java.lang.String defaultMarkerName
      • defaultTextName

        public static java.lang.String defaultTextName
    • Constructor Detail

      • StyleModelUtils

        public StyleModelUtils()
    • 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: