Klasse Stack


public class Stack extends Table
Represents a Stack to visualize.
  • Konstruktordetails

    • Stack

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

      public Stack(Object[] values)
      Creates a new Stack.
      Parameter:
      values - The values of the stack.
  • 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 stack out from the vector.
      Parameter:
      values - Vector to convert.
      Gibt zurück:
      Array with values to visualizes as list.