Package edu.macalester.graphics
Interface Fillable
- All Known Implementing Classes:
Ellipse,GraphicsText,Path,Polygon,Rectangle
public interface Fillable
A graphical object with an interior than can be filled with a color or pattern.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the color to fillColor that will be used to fill this shape if it is filled.booleanisFilled()Returns true if the interior of this shape will be filled with the fill color.voidsetFillColor(Paint fillColor) Sets the fill color to the given color.voidsetFilled(boolean filled) Causes the shape to be filled with the fill color when it is drawn.
-
Method Details
-
getFillColor
Paint getFillColor()Returns the color to fillColor that will be used to fill this shape if it is filled. Note that there will still be no fill if isFilled() is false. -
setFillColor
Sets the fill color to the given color. Automatically calls setFilled(true). -
isFilled
boolean isFilled()Returns true if the interior of this shape will be filled with the fill color. -
setFilled
void setFilled(boolean filled) Causes the shape to be filled with the fill color when it is drawn.
-