Package snap.view

Class StackView

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable, ViewHost

public class StackView extends ChildView
A ChildView subclass to show overlapping children.
  • Constructor Details

    • StackView

      public StackView()
      Constructor.
  • Method Details

    • 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
    • getPrefWidth

      public static double getPrefWidth(ParentView aPar, double aH)
      Returns preferred width of given parent with given children.
    • getPrefHeight

      public static double getPrefHeight(ParentView aPar, double aW)
      Returns preferred height of given parent with given children.
    • layout

      public static void layout(ParentView aPar)
      Performs layout in content rect.