Package snap.view

Class RootView

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable

public class RootView extends ParentView
The top level View in a window.
  • Field Details

  • Constructor Details

    • RootView

      public RootView()
      Creates a RootView.
  • Method Details

    • getContent

      public View getContent()
      Returns the content.
    • setContent

      public void setContent(View aView)
      Sets the content.
    • getRootView

      public RootView getRootView()
      Override to return this RootView.
      Overrides:
      getRootView in class View
    • setNeedsLayoutDeep

      protected void setNeedsLayoutDeep(boolean aVal)
      Override to register for layout.
      Overrides:
      setNeedsLayoutDeep in class ParentView
    • repaintInParent

      protected void repaintInParent(Rect aRect)
      Override to actually paint in this RootView.
      Overrides:
      repaintInParent in class View
    • getPrefWidthImpl

      protected double getPrefWidthImpl(double aH)
      Returns the preferred width.
      Overrides:
      getPrefWidthImpl in class View
    • getPrefHeightImpl

      protected double getPrefHeightImpl(double aW)
      Returns the preferred height.
      Overrides:
      getPrefHeightImpl in class View
    • layoutImpl

      protected void layoutImpl()
      Layout children.
      Overrides:
      layoutImpl in class ParentView