Class com.sun.java.swing.text.TableView.TableCell
java.lang.Object
|
+--com.sun.java.swing.text.View
|
+--com.sun.java.swing.text.CompositeView
|
+--com.sun.java.swing.text.BoxView
|
+--com.sun.java.swing.text.TableView.TableCell
- public class TableView.TableCell
- extends BoxView
- implements com.sun.java.swing.text.TableView.GridCell
View of a cell in a table
Method Summary
|
int
|
getColumnCount()
Gets the number of columns this cell spans (e.g. the
grid width). |
int
|
getGridColumn()
Gets the column of the grid location |
int
|
getGridRow()
Gets the row of the grid location |
float
|
getPreferredSpan(int axis)
Determines the preferred span for this view along an
axis. |
int
|
getRowCount()
Gets the number of rows this cell spans (that is, the
grid height). |
void
|
setGridLocation(int row,
int col)
Sets the grid location. |
Methods inherited from class com.sun.java.swing.text.BoxView |
baselineLayout
, baselineRequirements
, calculateMajorAxisRequirements
, calculateMinorAxisRequirements
, changedUpdate
, childAllocation
, getAlignment
, getHeight
, getMaximumSpan
, getMinimumSpan
, getOffset
, getResizeWeight
, getSpan
, getViewAtPoint
, getWidth
, insertUpdate
, isAfter
, isAllocationValid
, isBefore
, layout
, layoutMajorAxis
, layoutMinorAxis
, modelToView
, paint
, paintChild
, preferenceChanged
, removeUpdate
, replace
, setSize
, viewToModel
|
Methods inherited from class com.sun.java.swing.text.CompositeView |
append
, getBottomInset
, getChildAllocation
, getInsideAllocation
, getLeftInset
, getRightInset
, getTopInset
, getView
, getViewAtPosition
, getViewCount
, insert
, loadChildren
, removeAll
, setInsets
, setParagraphInsets
, setParent
|
Methods inherited from class com.sun.java.swing.text.View |
breakView
, createFragment
, getAttributes
, getBreakWeight
, getContainer
, getDocument
, getElement
, getEndOffset
, getNextVisualPositionFrom
, getParent
, getStartOffset
, getViewFactory
, modelToView
, viewToModel
|
Methods inherited from class java.lang.Object |
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
, wait
, wait
|
TableView.TableCell
public TableView.TableCell(Element elem)
- Constructs a TableCell for the given element.
- Parameters:
elem
- the element that this view is responsible for
getColumnCount
public int getColumnCount()
- Gets the number of columns this cell spans (e.g. the
grid width).
- Specified by:
- getColumnCount in interface com.sun.java.swing.text.TableView.GridCell
- Returns:
- the number of columns
getRowCount
public int getRowCount()
- Gets the number of rows this cell spans (that is, the
grid height).
- Specified by:
- getRowCount in interface com.sun.java.swing.text.TableView.GridCell
- Returns:
- the number of rows
setGridLocation
public void setGridLocation(int row,
int col)
- Sets the grid location.
- Specified by:
- setGridLocation in interface com.sun.java.swing.text.TableView.GridCell
- Parameters:
row
- the row >= 0
col
- the column >= 0
getGridRow
public int getGridRow()
- Gets the row of the grid location
- Specified by:
- getGridRow in interface com.sun.java.swing.text.TableView.GridCell
getGridColumn
public int getGridColumn()
- Gets the column of the grid location
- Specified by:
- getGridColumn in interface com.sun.java.swing.text.TableView.GridCell
getPreferredSpan
public float getPreferredSpan(int axis)
- Determines the preferred span for this view along an
axis. This is implemented to return the preferred span
reported by the superclass divided by the row/column count
for the cell so that multi-column and multi-row cells
distribute their requirements across all the columns/rows
that they participate in.
- Parameters:
axis
- may be either View.X_AXIS or View.Y_AXIS- Overrides:
- getPreferredSpan in class BoxView
Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.