Documentation of 'medusa.graphedit.EdgeTableModel' Java class
EdgeTableModel
medusa.graphedit

Class EdgeTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel
    Direct Known Subclasses:
    NodeTableModel


    public class EdgeTableModel
    extends javax.swing.table.AbstractTableModel
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.lang.String[] columnNames 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Class getColumnClass(int columnIndex)
      Returns Object.class regardless of columnIndex.
      int getColumnCount()
      Returns the number of columns in the model.
      java.lang.String getColumnName(int column)
      Returns a default name for the column using spreadsheet conventions: A, B, C, ...
      Graph getG() 
      Graph getGraph() 
      int getRowCount()
      Returns the number of rows in the model.
      java.lang.Object getValueAt(int rowIndex, int columnIndex)
      Returns the value for the cell at columnIndex and rowIndex.
      void init() 
      boolean isCellEditable(int row, int col) 
      void removeEdges() 
      void setG(Graph g) 
      void setValueAt(java.lang.Object value, int row, int col) 
      • Methods inherited from class javax.swing.table.AbstractTableModel

        addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • columnNames

        public java.lang.String[] columnNames
    • Constructor Detail

      • EdgeTableModel

        public EdgeTableModel(Graph g)
        Creates a new instance of EdgeTableModel
      • EdgeTableModel

        public EdgeTableModel()
    • Method Detail

      • init

        public void init()
      • getValueAt

        public java.lang.Object getValueAt(int rowIndex,
                                           int columnIndex)
        Returns the value for the cell at columnIndex and rowIndex.
        Parameters:
        rowIndex - the row whose value is to be queried
        columnIndex - the column whose value is to be queried
        Returns:
        the value Object at the specified cell
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns in the model. A JTable uses this method to determine how many columns it should create and display by default.
        Returns:
        the number of columns in the model
        See Also:
        getRowCount()
      • getRowCount

        public int getRowCount()
        Returns the number of rows in the model. A JTable uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.
        Returns:
        the number of rows in the model
        See Also:
        getColumnCount()
      • getColumnName

        public java.lang.String getColumnName(int column)
        Returns a default name for the column using spreadsheet conventions: A, B, C, ... Z, AA, AB, etc. If column cannot be found, returns an empty string.
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
        Parameters:
        column - the column being queried
        Returns:
        a string containing the default name of column
      • isCellEditable

        public boolean isCellEditable(int row,
                                      int col)
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel
      • setValueAt

        public void setValueAt(java.lang.Object value,
                               int row,
                               int col)
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • removeEdges

        public void removeEdges()
      • getG

        public Graph getG()
      • setG

        public void setG(Graph g)
      • getColumnClass

        public java.lang.Class getColumnClass(int columnIndex)
        Returns Object.class regardless of columnIndex.
        Specified by:
        getColumnClass in interface javax.swing.table.TableModel
        Overrides:
        getColumnClass in class javax.swing.table.AbstractTableModel
        Parameters:
        columnIndex - the column being queried
        Returns:
        the Object.class
      • getGraph

        public Graph getGraph()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.