Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.graphic.model
Class PicPolygon.PolygonTableModel  view PicPolygon.PolygonTableModel download PicPolygon.PolygonTableModel.java

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byjpicedt.graphic.model.PicPolygon.PolygonTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
PicPolygon

class PicPolygon.PolygonTableModel
extends javax.swing.table.AbstractTableModel

a class that specifies the methods the JTable will use to interrogate a tabular data model.


Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
(package private) PicPolygon.PolygonTableModel()
           
 
Method Summary
 int getColumnCount()
          Returns the number of columns in the model.
 java.lang.String getColumnName(int colIndex)
          Returns the name of the column at columnIndex.
 int getRowCount()
          Returns the number of rows in the model.
 java.lang.Object getValueAt(int rowIndex, int colIndex)
          Called when the associated JTable wants to know what to display at columnIndex and rowIndex.
 boolean isCellEditable(int rowIndex, int colIndex)
          Returns true if the cell at rowIndex and columnIndex is editable.
 void setValueAt(java.lang.Object value, int rowIndex, int colIndex)
          Called when a user entered a new value in the cell at columnIndex and rowIndex to value.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PicPolygon.PolygonTableModel

PicPolygon.PolygonTableModel()
Method Detail

getColumnName

public java.lang.String getColumnName(int colIndex)
Returns the name of the column at columnIndex.


getColumnCount

public int getColumnCount()
Returns the number of columns in the model.


getRowCount

public int getRowCount()
Returns the number of rows in the model.


isCellEditable

public boolean isCellEditable(int rowIndex,
                              int colIndex)
Returns true if the cell at rowIndex and columnIndex is editable.


getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int colIndex)
Called when the associated JTable wants to know what to display at columnIndex and rowIndex. Depending on colIndex, we return, either the point index, the x-coord, or the y-coord of the corresponding polygon's point.


setValueAt

public void setValueAt(java.lang.Object value,
                       int rowIndex,
                       int colIndex)
Called when a user entered a new value in the cell at columnIndex and rowIndex to value. We update PicPolygon geometry according to the cell value.
This method does nearly the same thing as actionPerformed in other xxxxCustomizer's.