Class DataPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
DiagnosticsForSystem

public class DataPanel extends JPanel
See Also:
  • Field Details

  • Constructor Details

    • DataPanel

      public DataPanel()
      Constructor DataRowPanel
  • Method Details

    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • setFont

      public void setFont(Font font)
      Sets the font for this component.
      Overrides:
      setFont in class JComponent
      Parameters:
      font - the desired Font for this component
      See Also:
    • setForeground

      public void setForeground(Color color)
      Sets the foreground color of this component. It is up to the look and feel to honor this property, some may choose to ignore it.
      Overrides:
      setForeground in class JComponent
      Parameters:
      fg - the desired foreground Color
      See Also:
    • refreshTable

      public void refreshTable(String from)
      Refresh the data in the tables.
    • getVisual

      public Component getVisual()
      Gets the Table. Used by EJS to access the table.
      Returns:
    • setColumnNames

      public void setColumnNames(int column, String name)
      Sets the given column name in this table.
      Parameters:
      column - the index
      name -
    • setColumnNames

      public void setColumnNames(String[] names)
      Sets all column names in this table.
      Parameters:
      names -
    • 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
    • setFirstRowIndex

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

      public void setRefreshDelay(int delay)
      Sets the delay time for table refresh timer.
      Parameters:
      delay - the delay in millisecond
    • appendArray

      public void appendArray(Object obj) throws IllegalArgumentException
      Appends a two dimensional array to this table.
      Parameters:
      obj - Object
      Throws:
      IllegalArgumentException
    • appendRow

      public void appendRow(double[] x)
      Appends a row of data with the given values to the table.
      Parameters:
      x - double[]
    • appendRow

      public void appendRow(int[] x)
      Appends a row of data with the given values to the table.
      Parameters:
      x - double[]
    • appendRow

      public void appendRow(Object[] x)
      Appends a row of data with the given values to the table.
      Parameters:
      x - double[]
    • appendRow

      public void appendRow(byte[] x)
      Appends a row of data with the given values to the table.
      Parameters:
      x - double[]
    • isRowNumberVisible

      public boolean isRowNumberVisible()
      True if row number numbers are visible.
      Returns:
    • getColumnCount

      public int getColumnCount()
      Gets the number of columns currently shown. The row number column is included in the counting if it is visible.
      Returns:
      the column count
    • getRowCount

      public int getRowCount()
      Gets the number of rows currently being shown.
      Returns:
      the row count
    • getTotalRowCount

      public int getTotalRowCount()
      Gets the total number of rows in the table.
      Returns:
      the row count
    • getStride

      public int getStride()
      Gets the number of rows shown.
      Returns:
      the stride
    • setColumnFormat

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

      public void clearFormats()
      Clears any previous format
    • setNumericFormat

      public void setNumericFormat(String pattern)
      Sets the default format pattern for displaying decimals.
      Parameters:
      pattern -
    • setMaxPoints

      public void setMaxPoints(int max)
      Sets the maximum number of points to display
      Parameters:
      max -
    • setVisible

      public void setVisible(boolean vis)
      Shows or hides this TableFrame depending on the value of parameter vis.
      Overrides:
      setVisible in class JComponent
      Parameters:
      vis - if true, shows this component; otherwise, hides this component
    • setStride

      public void setStride(int stride)
      Sets the stride between successive rows.
      Parameters:
      tableModel -
      stride -
    • clearData

      public void clearData()
      Clears data from this table. Column names and format patterns are not affected.
    • clear

      public void clear()
      Clears data, column names and format patterns.
    • setAutoResizeMode

      public void setAutoResizeMode(int mode)
      Sets the table's auto resize mode when the table is resized.
      Parameters:
      mode - One of 5 legal values: AUTO_RESIZE_OFF, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_SUBSEQUENT_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_ALL_COLUMNS