Package nl.saxion.app.canvas.drawable
Class DrawableBasicShapeElement
java.lang.Object
nl.saxion.app.canvas.CanvasElement
nl.saxion.app.canvas.drawable.DrawableElement
nl.saxion.app.canvas.drawable.DrawableBasicShapeElement
Base class for default shapes such as rectangle, oval and polygon.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIdentical to getColor() method.int
int
int
getWidth()
boolean
boolean
hasFill()
void
void
setBorderSize
(int borderSize) void
setFillColor
(Color fillColor) void
setHeight
(int height) void
setWidth
(int width) Methods inherited from class nl.saxion.app.canvas.drawable.DrawableElement
getColor, getX, getY, setColor, setX, setY
Methods inherited from class nl.saxion.app.canvas.CanvasElement
draw
-
Constructor Details
-
DrawableBasicShapeElement
public DrawableBasicShapeElement(int x, int y, int width, int height)
-
-
Method Details
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getBorderSize
public int getBorderSize() -
getFillColor
-
setWidth
public void setWidth(int width) -
setHeight
public void setHeight(int height) -
setBorderSize
public void setBorderSize(int borderSize) -
setFillColor
-
getBorderColor
Identical to getColor() method.- Returns:
- Color of the border
-
hasBorder
public boolean hasBorder() -
hasFill
public boolean hasFill() -
setBorder
-