Klasse List

Bekannte direkte Unterklassen:
Queue

public class List extends Table
Represents the abstract data type List.
  • Konstruktordetails

    • List

      public List(Vector<?> values)
      Creates a new List.
      Parameter:
      values - The values of the list.
    • List

      public List(Object[] values)
      Creates a new List.
      Parameter:
      values - The values of the list.
  • Methodendetails

    • draw

      public void draw(Graphics g)
      Beschreibung aus Klasse kopiert: VisualizationElement
      Draws the visualization element.
      Setzt außer Kraft:
      draw in Klasse Table
      Parameter:
      g - The Graphics object to draw the element to the DrawArea.
    • createTableArray

      private Object[][] createTableArray(Vector<?> values)
      Creates the array to visualize as list out from the vector.
      Parameter:
      values - Vector to convert.
      Gibt zurück:
      Array with values to visualizes as list.