Class ArrayFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, AppFrame, Hidable

public class ArrayFrame extends OSPFrame
A frame that displays arrays.
Author:
Wolfgang Christian
See Also:
  • Constructor Details

    • ArrayFrame

      public ArrayFrame(Object arrayObj)
      Constructs the ArrayFrame for the given array.
      Parameters:
      arrayObj -
    • ArrayFrame

      public ArrayFrame(Object arrayObj, String title)
      Constructs the ArrayFrame for the given array and frame title.
      Parameters:
      arrayObj -
      title -
  • Method Details

    • setFirstRowIndex

      public void setFirstRowIndex(int index)
      Sets the first row's starting index.
      Parameters:
      index -
    • setFirstColIndex

      public void setFirstColIndex(int index)
      Sets the first column's starting index.
      Parameters:
      index -
    • setEditable

      public void setEditable(boolean editable)
      Sets the editable property for the entire panel.
      Parameters:
      editable - true to allow editing of the cell values
    • setTransposed

      public void setTransposed(boolean transposed)
      Sets the transposed property for the array. A transposed array switches its row and column values in the display.
      Parameters:
      transposed -
    • setColumnLock

      public void setColumnLock(int columnIndex, boolean locked)
      Sets the lock flag for a single column.
      Parameters:
      column - int
      locked - boolean
    • setColumnLocks

      public void setColumnLocks(boolean[] locked)
      Sets the lock flag for multiple columns. Previously set locks are cleared.
      Parameters:
      locked - boolean array
    • setColumnNames

      public void setColumnNames(String[] names)
      Sets the column names in a JTable.
      Parameters:
      names -
    • setColumnNames

      public void setColumnNames(String[][] names)
      Sets the column names in each table model separately.
      Parameters:
      names -
    • setNumericFormat

      public void setNumericFormat(String format)
      Sets the default numeric display format for the table.
      Parameters:
      format -
    • setRowNumberVisible

      public void setRowNumberVisible(boolean vis)
      Sets the display row number flag. Table displays row number.
      Parameters:
      vis - true<\code> if table display row number
    • setColumnFormat

      public void setColumnFormat(int column, String format)
      Sets the format for displaying decimals.
      Parameters:
      column - the index
      format -