Package util.tableheader
Class DefaultCellAttribute
- java.lang.Object
-
- util.tableheader.DefaultCellAttribute
-
- All Implemented Interfaces:
CellAttribute,CellFont,CellSpan,ColoredCell
public class DefaultCellAttribute extends Object implements CellAttribute, CellSpan, ColoredCell, CellFont
- Version:
- 1.0 11/22/98
-
-
Field Summary
Fields Modifier and Type Field Description protected Color[][]backgroundprotected intcolumnSizeprotected Font[][]fontprotected Color[][]foregroundprotected introwSizeprotected int[][][]span
-
Constructor Summary
Constructors Constructor Description DefaultCellAttribute()DefaultCellAttribute(int numRows, int numColumns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumn()voidaddRow()voidcombine(int[] rows, int[] columns)ColorgetBackground(int row, int column)FontgetFont(int row, int column)ColorgetForeground(int row, int column)DimensiongetSize()int[]getSpan(int row, int column)protected voidinitValue()voidinsertRow(int row)protected booleanisOutOfBounds(int[] rows, int[] columns)protected booleanisOutOfBounds(int row, int column)booleanisVisible(int row, int column)voidsetBackground(Color color, int[] rows, int[] columns)voidsetBackground(Color color, int row, int column)voidsetFont(Font font, int[] rows, int[] columns)voidsetFont(Font font, int row, int column)voidsetForeground(Color color, int[] rows, int[] columns)voidsetForeground(Color color, int row, int column)voidsetSize(Dimension size)voidsetSpan(int[] span, int row, int column)protected voidsetValues(Object[][] target, Object value, int[] rows, int[] columns)voidsplit(int row, int column)
-
-
-
Method Detail
-
initValue
protected void initValue()
-
setSpan
public void setSpan(int[] span, int row, int column)
-
isVisible
public boolean isVisible(int row, int column)
-
getForeground
public Color getForeground(int row, int column)
- Specified by:
getForegroundin interfaceColoredCell
-
setForeground
public void setForeground(Color color, int row, int column)
- Specified by:
setForegroundin interfaceColoredCell
-
setForeground
public void setForeground(Color color, int[] rows, int[] columns)
- Specified by:
setForegroundin interfaceColoredCell
-
getBackground
public Color getBackground(int row, int column)
- Specified by:
getBackgroundin interfaceColoredCell
-
setBackground
public void setBackground(Color color, int row, int column)
- Specified by:
setBackgroundin interfaceColoredCell
-
setBackground
public void setBackground(Color color, int[] rows, int[] columns)
- Specified by:
setBackgroundin interfaceColoredCell
-
setFont
public void setFont(Font font, int row, int column)
-
setFont
public void setFont(Font font, int[] rows, int[] columns)
-
addColumn
public void addColumn()
- Specified by:
addColumnin interfaceCellAttribute
-
addRow
public void addRow()
- Specified by:
addRowin interfaceCellAttribute
-
insertRow
public void insertRow(int row)
- Specified by:
insertRowin interfaceCellAttribute
-
getSize
public Dimension getSize()
- Specified by:
getSizein interfaceCellAttribute
-
setSize
public void setSize(Dimension size)
- Specified by:
setSizein interfaceCellAttribute
-
isOutOfBounds
protected boolean isOutOfBounds(int row, int column)
-
isOutOfBounds
protected boolean isOutOfBounds(int[] rows, int[] columns)
-
-