Class ShapeImpl

java.lang.Object
com.priint.pubserver.metadata.xml.base.ShapeImpl
All Implemented Interfaces:
Shape, Serializable
Direct Known Subclasses:
PolygonImpl, RectImpl

public class ShapeImpl extends Object implements Serializable, Shape
See Also:
  • Constructor Details

    • ShapeImpl

      public ShapeImpl()
  • Method Details

    • getFill

      public 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(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 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(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