Class ShapeImpl
- java.lang.Object
-
- com.priint.pubserver.metadata.xml.base.ShapeImpl
-
- All Implemented Interfaces:
Shape,java.io.Serializable
- Direct Known Subclasses:
PolygonImpl,RectImpl
public class ShapeImpl extends java.lang.Object implements java.io.Serializable, Shape
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShapeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFill()Gets the fill color of this shape.doublegetOpacity()Gets the opacity of this shape.java.lang.StringgetStroke()Gets the stroke color of this shape.doublegetStrokeWidth()Gets the stroke width of this shape.voidsetFill(java.lang.String fill)Sets the fill color of this shape.voidsetOpacity(double opacity)Sets the opacity of this shape.voidsetStroke(java.lang.String stroke)Sets the stroke color of this shape.voidsetStrokeWidth(double strokeWidth)Sets the stroke width of this shape.
-
-
-
Method Detail
-
getFill
public java.lang.String getFill()
Description copied from interface:ShapeGets the fill color of this shape.
Gets the fill color of this shape as a triple of hexadecimal values (RGB).
-
setFill
public void setFill(java.lang.String fill)
Description copied from interface:ShapeSets the fill color of this shape.
Sets the fill color of this shape as a triple of hexadecimal values (RGB).
-
getStroke
public java.lang.String getStroke()
Description copied from interface:ShapeGets the stroke color of this shape.
Gets the stroke color of this shape as a triple of hexadecimal values (RGB).
-
setStroke
public void setStroke(java.lang.String stroke)
Description copied from interface:ShapeSets the stroke color of this shape.
Sets the stroke color of this shape as a triple of hexadecimal values (RGB).
-
getStrokeWidth
public double getStrokeWidth()
Description copied from interface:ShapeGets the stroke width of this shape.
Gets the stroke width of this shape in points.
- Specified by:
getStrokeWidthin interfaceShape- Returns:
- stroke width of this shape
-
setStrokeWidth
public void setStrokeWidth(double strokeWidth)
Description copied from interface:ShapeSets the stroke width of this shape.
Sets the stroke width of this shape in points.
- Specified by:
setStrokeWidthin interfaceShape- Parameters:
strokeWidth- stroke width of this shape
-
getOpacity
public double getOpacity()
Description copied from interface:ShapeGets the opacity of this shape.
Gets the opacity of this shape in percent.
- Specified by:
getOpacityin interfaceShape- Returns:
- opacity of this shape
-
setOpacity
public void setOpacity(double opacity)
Description copied from interface:ShapeSets the opacity of this shape.
Sets the opacity of this shape in percent.
- Specified by:
setOpacityin interfaceShape- Parameters:
opacity- opacity of this shape
-
-