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 Type
    Method
    Description
    Returns the color to fillColor that will be used to fill this shape if it is filled.
    boolean
    Returns true if the interior of this shape will be filled with the fill color.
    void
    setFillColor(Paint fillColor)
    Sets the fill color to the given color.
    void
    setFilled(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

      void setFillColor(Paint fillColor)
      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.