Class DefaultFigureStyle

    • Constructor Detail

      • DefaultFigureStyle

        public DefaultFigureStyle()
      • DefaultFigureStyle

        public DefaultFigureStyle​(String name)
      • DefaultFigureStyle

        public DefaultFigureStyle​(FigureStyle parentStyle)
      • DefaultFigureStyle

        public DefaultFigureStyle​(String name,
                                  FigureStyle parentStyle)
    • Method Detail

      • createLineStyle

        public static FigureStyle createLineStyle​(Paint strokePaint)
      • getValue

        public <T> T getValue​(String name)
        Description copied from interface: PropertySet
        Gets the value of the named property.
        Specified by:
        getValue in interface PropertySet
        Overrides:
        getValue in class PropertyContainer
        Parameters:
        name - The property name.
        Returns:
        The property value or null if a property with the given name does not exist.
      • getSymbol

        public Symbol getSymbol()
        Description copied from interface: FigureStyle
        Gets the effective point symbol used for drawing of points figures.
        Specified by:
        getSymbol in interface FigureStyle
        Returns:
        The effective point symbol used for drawing.
      • setSymbolName

        public void setSymbolName​(String symbolName)
      • setSymbolImagePath

        public void setSymbolImagePath​(String symbolName)
      • setSymbolRefX

        public void setSymbolRefX​(double refX)
      • setSymbolRefY

        public void setSymbolRefY​(double refY)
      • getStroke

        public Stroke getStroke()
        Description copied from interface: FigureStyle
        Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape. The effective paint may result from a number of different style properties.
        Specified by:
        getStroke in interface FigureStyle
        Returns:
        The effective stroke style used for drawing.
      • getStroke

        public Stroke getStroke​(double scale)
        Description copied from interface: FigureStyle
        Gets the effective stroke style used for drawing the exterior of a lineal or polygonal shape. The effective paint may result from a number of different style properties.
        Specified by:
        getStroke in interface FigureStyle
        Parameters:
        scale - The current model-to-view scaling.
        Returns:
        The effective stroke style used for drawing.
      • getStrokePaint

        public Paint getStrokePaint()
        Gets the effective stroke paint used for drawing the exterior of a lineal or polygonal shape. The effective paint may result from a number of different style properties.
        Specified by:
        getStrokePaint in interface FigureStyle
        Returns:
        The effective stroke paint used for drawing.
      • setStrokeColor

        public void setStrokeColor​(Color strokeColor)
      • setStrokeOpacity

        public void setStrokeOpacity​(double opacity)
      • setStrokeWidth

        public void setStrokeWidth​(double width)
      • getFillPaint

        public Paint getFillPaint()
        Gets the effective fill paint used for drawing the interior of a polygonal shape. The effective paint may result from a number of different style properties.
        Specified by:
        getFillPaint in interface FigureStyle
        Returns:
        The effective fill paint used for drawing.
      • setFillColor

        public void setFillColor​(Color fillColor)
      • setFillOpacity

        public void setFillOpacity​(double opacity)