Class Panel

All Implemented Interfaces:
IFigure

public class Panel extends Figure
A General purpose Container. This figure is opaque by default, and will fill its entire bounds with either the background color that is set on the figure, or the IGraphics current background color if none has been set. Opaque figures help to optimize painting.

Note that the paintFigure() method in the superclass Figure actually fills the bounds of this figure.

  • Constructor Details

    • Panel

      public Panel()
  • Method Details

    • isOpaque

      public boolean isOpaque()
      Returns true as this is an opaque figure.
      Specified by:
      isOpaque in interface IFigure
      Overrides:
      isOpaque in class Figure
      Returns:
      the opaque state of this figure
      Since:
      2.0
      See Also: