Class ShapeImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ShapeImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFill()
      Gets the fill color of this shape.
      double getOpacity()
      Gets the opacity of this shape.
      java.lang.String getStroke()
      Gets the stroke color of this shape.
      double getStrokeWidth()
      Gets the stroke width of this shape.
      void setFill​(java.lang.String fill)
      Sets the fill color of this shape.
      void setOpacity​(double opacity)
      Sets the opacity of this shape.
      void setStroke​(java.lang.String stroke)
      Sets the stroke color of this shape.
      void setStrokeWidth​(double strokeWidth)
      Sets the stroke width of this shape.
      • Methods inherited from class java.lang.Object

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

      • ShapeImpl

        public ShapeImpl()
    • Method Detail

      • getFill

        public java.lang.String getFill()
        Description copied from interface: Shape

        Gets the fill color of this shape.

        Gets the fill color of this shape as a triple of hexadecimal values (RGB).

        Specified by:
        getFill in interface Shape
        Returns:
        the fill color of this shape.
      • setFill

        public void setFill​(java.lang.String fill)
        Description copied from interface: Shape

        Sets the fill color of this shape.

        Sets the fill color of this shape as a triple of hexadecimal values (RGB).

        Specified by:
        setFill in interface Shape
        Parameters:
        fill - the fill color of this shape.
      • getStroke

        public java.lang.String getStroke()
        Description copied from interface: Shape

        Gets the stroke color of this shape.

        Gets the stroke color of this shape as a triple of hexadecimal values (RGB).

        Specified by:
        getStroke in interface Shape
        Returns:
        the stroke color of this shape.
      • setStroke

        public void setStroke​(java.lang.String stroke)
        Description copied from interface: Shape

        Sets the stroke color of this shape.

        Sets the stroke color of this shape as a triple of hexadecimal values (RGB).

        Specified by:
        setStroke in interface Shape
        Parameters:
        stroke - the stroke color of this shape.
      • getStrokeWidth

        public double getStrokeWidth()
        Description copied from interface: Shape

        Gets the stroke width of this shape.

        Gets the stroke width of this shape in points.

        Specified by:
        getStrokeWidth in interface Shape
        Returns:
        stroke width of this shape
      • setStrokeWidth

        public void setStrokeWidth​(double strokeWidth)
        Description copied from interface: Shape

        Sets the stroke width of this shape.

        Sets the stroke width of this shape in points.

        Specified by:
        setStrokeWidth in interface Shape
        Parameters:
        strokeWidth - stroke width of this shape
      • getOpacity

        public double getOpacity()
        Description copied from interface: Shape

        Gets the opacity of this shape.

        Gets the opacity of this shape in percent.

        Specified by:
        getOpacity in interface Shape
        Returns:
        opacity of this shape
      • setOpacity

        public void setOpacity​(double opacity)
        Description copied from interface: Shape

        Sets the opacity of this shape.

        Sets the opacity of this shape in percent.

        Specified by:
        setOpacity in interface Shape
        Parameters:
        opacity - opacity of this shape