|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.page.JCPageTable.Cell
The Cell object describes a single cell of a JCPageTable.
Field Summary | |
protected Color |
background
The color used as a default background for table elements. |
protected com.klg.jclass.page.JCDrawStyle |
bottomBorder
The bottom border is drawn at the bottom of the cell. |
protected JCUnit.Measure |
bottomMargin
The width of the bottom margin between the border and the frame. |
protected int |
cellAlignment
Cell alignment controls the vertical alignment of cells in this cell. |
protected JCUnit.Measure |
cellHeight
The height of the cell is based on the size of its contents. |
protected int |
columnNumber
The column of the table this cell appears in. |
protected JCPageTable.Column |
columnParent
Column to which this cell belongs. |
protected com.klg.jclass.page.JCFrame |
frame
The frame that contains the contents of the cell. |
protected boolean |
isSpanned
Marker for cells which belong to (are obscured by) a span. |
protected JCUnit.Measure |
leftMargin
The width of the left margin between the border and the frame. |
protected com.klg.jclass.page.JCDrawStyle |
rightBorder
The right border is drawn at the right of the cell. |
protected JCUnit.Measure |
rightMargin
The width of the right margin between the border and the frame. |
protected int |
rowNumber
The row of the table this cell appears in. |
protected JCPageTable.Row |
rowParent
Row which owns this cell. |
protected int |
spanColumns
The number of columns the cell spans to the right. |
protected Point |
spanOrigin
The root cell of the span. |
protected int |
spanRows
The number of rows the cell spans downward. |
protected com.klg.jclass.page.JCTextStyle |
textStyle
The text style used to format the text in the cell. |
protected JCUnit.Measure |
topMargin
The width of the top margin between the border and the frame. |
protected JCUnit.Measure |
width
The width of the cell is based on the width of its column. |
Constructor Summary | |
JCPageTable.Cell()
Creates an empty cell object. |
|
JCPageTable.Cell(JCPageTable.Row parent,
int position)
Creates a cell object as a child of the given table. |
Method Summary | |
JCUnit.Measure |
fixHeight()
Computes the height of the cell based on the height of the cell's frame. |
Color |
getBackgroundColor()
Gets the color that will be used to paint the cell's background. |
com.klg.jclass.page.JCDrawStyle |
getBottomBorderStyle()
Gets the border style applied to the bottom (row border) of the cell. |
protected com.klg.jclass.page.JCDrawStyle |
getBottomEdgeStyle()
Gets the bottom border style of this cell position (if there is no bottom border because of a span, this will return null). |
JCUnit.Measure |
getBottomMargin()
Gets the effective width of the bottom margin. |
int |
getCellAlignment()
Gets the alignment of the cell with respect to its row. |
Object |
getCellValue()
Gets the value assigned to this cell. |
JCPageTable.Column |
getColumn()
Gets the column parent of the cell in the table. |
int |
getColumnNumber()
Gets the column co-ordinate of the cell in the table. |
com.klg.jclass.page.JCFrame |
getFrame()
Gets the contents from from this cell. |
com.klg.jclass.page.JCFrame |
getFrameRaw()
Gets the frame (if any) which the cell has constructed. |
JCUnit.Measure |
getHeight()
Gets the height of the cell (including the height of the cell's frame). |
JCUnit.Measure |
getLeftMargin()
Gets the effective width of the left margin. |
com.klg.jclass.page.JCDrawStyle |
getRightBorderStyle()
Gets the border style applied to the right (column border) of the cell. |
protected com.klg.jclass.page.JCDrawStyle |
getRightEdgeStyle()
Gets the right border style of this cell position (if there is no right border because of a span, this will return null). |
JCUnit.Measure |
getRightMargin()
Gets the effective width of the right margin. |
JCPageTable.Row |
getRow()
Gets the row parent of the cell in the table. |
int |
getRowNumber()
Gets the row co-ordinate of the cell in the table. |
int |
getSpanColumns()
Gets the number of columns this cell spans over. |
Point |
getSpanOrigin()
Returns the origin (root cell) of the spanning cell. |
int |
getSpanRows()
Gets the number of rows this cell spans over. |
com.klg.jclass.page.JCTextStyle |
getStyle()
Gets the cell style. |
JCUnit.Measure |
getTopMargin()
Gets the effective width of the top margin. |
JCUnit.Measure |
getWidth()
Gets the width of the cell. |
boolean |
isBackgroundColorInherited()
Determines if the cell's background color attribute is inherited. |
boolean |
isBottomBorderInherited()
Determines whether the style being returned for the bottom border is inherited. |
boolean |
isBottomMarginInherited()
Determines if the size of the bottom margin is inherited. |
boolean |
isCellAlignmentInherited()
Determines if the vertical cell alignment is inherited. |
boolean |
isCellValueInherited()
Determines whether the table value for this cell is inherited. |
boolean |
isLeftMarginInherited()
Determines whether the size of the left margin is inherited. |
boolean |
isRightBorderInherited()
Determines if the style being returned for the right border is inherited. |
boolean |
isRightMarginInherited()
Determines whether the size of the right margin is inherited. |
boolean |
isSpanned()
Returns an indication whether this cell belongs to a span or not. |
boolean |
isStyleInherited()
Determines if the text style used for this cell is inherited. |
boolean |
isTopMarginInherited()
Determines if the size of the top margin is inherited. |
protected void |
paste(com.klg.jclass.page.JCFrame target,
JCUnit.Measure x0,
JCUnit.Measure y0)
Adds the contents of this cell (cell frame) to the given frame. |
protected void |
paste(com.klg.jclass.page.JCFrame target,
JCUnit.Measure x0,
JCUnit.Measure y0,
JCUnit.Margins mask)
Adds the contents of this cell (cell frame) to the given frame subject to the given mask for clipping the cell. |
protected void |
paste(com.klg.jclass.page.JCFrame target,
JCUnit.Measure x0,
JCUnit.Measure y0,
JCUnit.Measure space)
Locates the contents of this cell (cell frame) in the given frame subject to the amount of vertical space available and the cell alignment. |
protected void |
pasteSpan(com.klg.jclass.page.JCFrame target,
int startRow,
int startColumn,
int endRow,
int endColumn,
JCUnit.Measure x0,
JCUnit.Measure y0)
Pastes the portion of this spanned cell that lies within the given range of rows and columns of the table. |
void |
setBackgroundColor(Color color)
Sets the color specified for painting the cell's background. |
void |
setBottomBorderStyle(com.klg.jclass.page.JCDrawStyle border)
Sets the border style for the cell's bottom border. |
void |
setBottomMargin(JCUnit.Measure width)
Sets the width of a cell's bottom margin. |
void |
setCellAlignment(int alignment)
Sets the alignment of the cell with respect to its row. |
void |
setCellValue(Object value)
Sets the value stored at this cell (set in the table data). |
void |
setHeight(JCUnit.Measure height)
Sets the cell's height; this may override the dynamic sizing of the cell. |
void |
setLeftMargin(JCUnit.Measure width)
Sets the width of a cell's left margin. |
void |
setRightBorderStyle(com.klg.jclass.page.JCDrawStyle border)
Sets the border style for the cell's right border. |
void |
setRightMargin(JCUnit.Measure width)
Sets the width of a cell's right margin. |
void |
setSpanOrigin(int row,
int column)
Sets the origin of a span. |
void |
setSpanOrigin(Point origin)
Sets the origin of a span. |
void |
setSpanSize(int rows,
int columns)
Sets the number of rows and columns in the span. |
void |
setStyle(com.klg.jclass.page.JCTextStyle style)
Sets the default cell text style. |
void |
setTopMargin(JCUnit.Measure width)
Sets the width of a cell's top margin. |
void |
setWidth(JCUnit.Measure width)
Sets the cell's width; this needs to be done after spanning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Color background
protected com.klg.jclass.page.JCDrawStyle bottomBorder
protected com.klg.jclass.page.JCDrawStyle rightBorder
protected com.klg.jclass.page.JCTextStyle textStyle
protected int cellAlignment
protected JCUnit.Measure bottomMargin
protected JCUnit.Measure leftMargin
protected JCUnit.Measure rightMargin
protected JCUnit.Measure topMargin
protected JCPageTable.Row rowParent
protected JCPageTable.Column columnParent
protected com.klg.jclass.page.JCFrame frame
protected JCUnit.Measure cellHeight
protected JCUnit.Measure width
protected int rowNumber
protected int columnNumber
protected boolean isSpanned
protected Point spanOrigin
protected int spanRows
protected int spanColumns
Constructor Detail |
public JCPageTable.Cell()
public JCPageTable.Cell(JCPageTable.Row parent, int position)
parent
- the parent row for this cellposition
- the position of the cell in the tableMethod Detail |
public boolean isBackgroundColorInherited()
true
if the background color is specified at a higher levelpublic Color getBackgroundColor()
public void setBackgroundColor(Color color)
color
- the cell's background colorpublic boolean isBottomBorderInherited()
true
if the bottom border style is specified at a higher levelpublic com.klg.jclass.page.JCDrawStyle getBottomBorderStyle()
public void setBottomBorderStyle(com.klg.jclass.page.JCDrawStyle border)
border
- the draw style that describes the bottom borderpublic boolean isRightBorderInherited()
true
if the right border style is specified at a higher levelpublic com.klg.jclass.page.JCDrawStyle getRightBorderStyle()
public void setRightBorderStyle(com.klg.jclass.page.JCDrawStyle border)
border
- the draw style that describes the right borderpublic boolean isCellAlignmentInherited()
true
if a higher level specifies the effective cell alignmentpublic int getCellAlignment()
public void setCellAlignment(int alignment)
alignment
- the vertical alignment of the cell in the row spacepublic boolean isStyleInherited()
true
if this cell gets its alignment from a higher level objectpublic com.klg.jclass.page.JCTextStyle getStyle()
public void setStyle(com.klg.jclass.page.JCTextStyle style)
style
- a text style to apply to text printed in this cellpublic boolean isBottomMarginInherited()
true
if a higher-level component specifies the bottom marginpublic JCUnit.Measure getBottomMargin()
public void setBottomMargin(JCUnit.Measure width)
width
- the size of the bottom margin for this cellpublic boolean isTopMarginInherited()
true
if a higher-level component specifies the top marginpublic JCUnit.Measure getTopMargin()
public void setTopMargin(JCUnit.Measure width)
width
- the size of the top margin for this cellpublic boolean isLeftMarginInherited()
true
if a higher-level component specifies the left marginpublic JCUnit.Measure getLeftMargin()
public void setLeftMargin(JCUnit.Measure width)
width
- the size of the left margin for this cellpublic boolean isRightMarginInherited()
true
if a higher-level component specifies the right marginpublic JCUnit.Measure getRightMargin()
public void setRightMargin(JCUnit.Measure width)
width
- the size of the right margin for this cellpublic boolean isCellValueInherited()
true
if a higher-level component specifies the cell's valuepublic Object getCellValue()
TableDataModel
for use in this cellpublic void setCellValue(Object value)
value
- the object stored as the value of this cellpublic JCUnit.Measure getHeight()
public void setHeight(JCUnit.Measure height)
height
- the desired height of the cellpublic JCUnit.Measure getWidth()
public void setWidth(JCUnit.Measure width)
width
- the new width of the cellpublic com.klg.jclass.page.JCFrame getFrame()
public com.klg.jclass.page.JCFrame getFrameRaw()
public boolean isSpanned()
true
if this cell is part of (subsumed by) a spanpublic Point getSpanOrigin()
public void setSpanOrigin(Point origin)
origin
- the co-ordinates of the cell which is the root of the spanpublic void setSpanOrigin(int row, int column)
row
- the row co-ordinate of the root cellcolumn
- the column co-ordinate of the root cellpublic int getSpanRows()
public int getSpanColumns()
public void setSpanSize(int rows, int columns)
rows
- the number of rows high the cell iscolumns
- the number of columns wide the cell ispublic JCPageTable.Column getColumn()
public int getColumnNumber()
public JCPageTable.Row getRow()
public int getRowNumber()
public JCUnit.Measure fixHeight()
protected com.klg.jclass.page.JCDrawStyle getBottomEdgeStyle()
protected com.klg.jclass.page.JCDrawStyle getRightEdgeStyle()
protected void paste(com.klg.jclass.page.JCFrame target, JCUnit.Measure x0, JCUnit.Measure y0)
target
- the frame to draw paste the cell intox0
- the x-coordinate of the location to paste the cell aty0
- the y-coordinate of the location to paste the cell atprotected void paste(com.klg.jclass.page.JCFrame target, JCUnit.Measure x0, JCUnit.Measure y0, JCUnit.Margins mask)
target
- the frame to draw paste the cell intox0
- the x-coordinate of the location to paste the cell aty0
- the y-coordinate of the location to paste the cell atmask
- the clip mask to apply to displaying the cellprotected void paste(com.klg.jclass.page.JCFrame target, JCUnit.Measure x0, JCUnit.Measure y0, JCUnit.Measure space)
target
- the frame to draw paste the cell intox0
- the x-coordinate of the base location for the celly0
- the y-coordinate of the base location for the cellspace
- the amount of vertical space available for the cellprotected void pasteSpan(com.klg.jclass.page.JCFrame target, int startRow, int startColumn, int endRow, int endColumn, JCUnit.Measure x0, JCUnit.Measure y0)
target
- the frame to draw paste the cell intostartRow
- the first row of the table to display the span instartColumn
- the first column of the table to display the span inendRow
- the last row of the table to display the span inendColumn
- the last column of the table to display the span inx0
- the x-coordinate of the base location for the celly0
- the y-coordinate of the base location for the cell
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |