Class BoxRegistry


  • public class BoxRegistry
    extends java.lang.Object
    Diese Klasse uebernimmt die Verwaltung der Boxen.
    • Constructor Summary

      Constructors 
      Constructor Description
      BoxRegistry()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<Box> getBoxes()
      Liefert eine Liste der verfuegbaren Boxen.
      static int getHeight​(Box box)
      Liefert die Hoehe, in der die Box gezeichnet werden soll.
      static void setHeight​(Box box, int height)
      Legt die Hoehe der Box fest.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BoxRegistry

        public BoxRegistry()
    • Method Detail

      • getBoxes

        public static java.util.List<Box> getBoxes()
        Liefert eine Liste der verfuegbaren Boxen. Die Liste enthaelt auch deaktivierte Boxen.
        Returns:
        Liste der verfuegbaren Boxen.
      • getHeight

        public static int getHeight​(Box box)
        Liefert die Hoehe, in der die Box gezeichnet werden soll.
        Parameters:
        box - die Hoehe, zu der die Box ermittelt werden soll.
        Returns:
        die Hoehe der Box.
      • setHeight

        public static void setHeight​(Box box,
                                     int height)
        Legt die Hoehe der Box fest.
        Parameters:
        box - die Box.
        height - die Hoehe der Box.