Class GeometryExample.Display

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Enclosing class:
GeometryExample

public static class GeometryExample.Display extends ExampleUtils.ExampleFrame
Main frame for geometry examples.
See Also:
  • Constructor Details

    • Display

      public Display()
      Simple constructor.
  • Method Details

    • getMainPanel

      public Component getMainPanel()
      Returns the main panel which should be printed by the screenshot action.

      By default, it returns the content pane of this frame, but can be overriden in case the frame has a global scroll pane which would cut off any offscreen content.

      Overrides:
      getMainPanel in class ExampleUtils.ExampleFrame
      Returns:
      the main panel to print
    • paintConvexHull

      public void paintConvexHull()
      Paint a convex hull.