Class ShapeImpl
- All Implemented Interfaces:
Shape,Serializable
- Direct Known Subclasses:
PolygonImpl,RectImpl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFill()Gets the fill color of this shape.doubleGets the opacity of this shape.Gets the stroke color of this shape.doubleGets the stroke width of this shape.voidSets the fill color of this shape.voidsetOpacity(double opacity) Sets the opacity of this shape.voidSets the stroke color of this shape.voidsetStrokeWidth(double strokeWidth) Sets the stroke width of this shape.
-
Constructor Details
-
ShapeImpl
public ShapeImpl()
-
-
Method Details
-
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
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
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
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
-