|
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.Column
The Column object describes a single column of a JCPageTable
.
Field Summary | |
protected int |
arrivingSpans
The number of spans which began left of and appear in this column. |
protected Color |
background
The color used as a default background for table elements. |
protected JCUnit.Measure |
borderWidth
The amount of space required to accomodate the column's border. |
protected int |
columnNumber
The number of this column in the table. |
protected JCPageTable.Cell |
defaultCell
A template cell to use as a source of default cell attributes. |
protected int |
departingSpans
The number of spans which leave this column to the right. |
protected com.klg.jclass.page.JCDrawStyle |
rightBorder
The right border is drawn on the right side of the column. |
protected JCUnit.Measure |
width
The width of the column. |
Constructor Summary | |
JCPageTable.Column()
Creates an empty column object. |
|
JCPageTable.Column(int position)
Creates a column object as a child of the given table. |
|
JCPageTable.Column(JCUnit.Measure width,
int position)
Creates a column object as a child of the given table. |
Method Summary | |
protected void |
addArrivingSpan()
Increments the number of spans in this column which begin to the left. |
protected void |
addDepartingSpan()
Increments the number of spans in this column which continue to the right. |
protected int |
getArrivingSpans()
Gets the number of spans which begin left of this column. |
Color |
getBackgroundColor()
Gets the color specified for painting the column background. |
com.klg.jclass.page.JCDrawStyle |
getBorderStyle()
Gets the draw style used for the column's border. |
protected JCUnit.Measure |
getBorderWidth()
Returns the width of the column's border, computing it if necessary. |
int |
getColumnNumber()
Gets the position of the column in the table. |
JCUnit.Measure |
getDefaultBottomMargin()
Gets the default width of the bottom margin. |
int |
getDefaultCellAlignment()
Gets the alignment (within each row) of the cells in this column. |
Object |
getDefaultCellValue()
Gets the default contents for cells in this column. |
JCUnit.Measure |
getDefaultLeftMargin()
Gets the default width of the left margin. |
JCUnit.Measure |
getDefaultRightMargin()
Gets the default width of the right margin. |
com.klg.jclass.page.JCTextStyle |
getDefaultStyle()
Gets the default cell style. |
JCUnit.Measure |
getDefaultTopMargin()
Gets the default width of the top margin. |
protected int |
getDepartingSpans()
Gets the number of spans which contine right of this column. |
protected JCUnit.Measure |
getDrawnWidth(boolean first,
boolean last)
Computes the width of this column (including border width) based on the given information about its position in the table part. |
protected JCUnit.Measure |
getLeftBorderWidth()
Computes the space required for the border of this column at the left. |
protected JCUnit.Measure |
getLeftBorderWidth(boolean fullWidth)
Computes the space required for the border of this column at the left side of a table or table section. |
protected JCUnit.Measure |
getRightBorderWidth()
Computes the space required for the border of this column at the right side of a table or table section. |
protected JCUnit.Measure |
getRightBorderWidth(boolean fullWidth)
Computes the space required for the border of this column at the right side of a table or table section. |
JCUnit.Measure |
getWidth()
Gets the width of the column. |
boolean |
isBackgroundColorInherited()
Determines if the background color is inherited from the table. |
boolean |
isBorderStyleInherited()
Determines if the value being reported for the border is inherited. |
boolean |
isDefaultBottomMarginInherited()
Determines if the default bottom margin is inherited. |
boolean |
isDefaultCellAlignmentInherited()
Determines if the vertical cell alignment is inherited. |
boolean |
isDefaultCellValueInherited()
Determine if the default cell value is inherited. |
boolean |
isDefaultLeftMarginInherited()
Determines if the default left margin is inherited. |
boolean |
isDefaultRightMarginInherited()
Determines if the default right margin is inherited. |
boolean |
isDefaultStyleInherited()
Determines if the default style is inherited. |
boolean |
isDefaultTopMarginInherited()
Determines if the default top margin is inherited. |
protected boolean |
noArrivingSpans()
Returns whether or not there are arriving spans in the same column in this or related table (ie header table or main table). |
protected boolean |
noDepartingSpans()
Returns whether or not there are departing spans in the same column in this or a related table (ie header table or main table). |
void |
setBackgroundColor(Color color)
Sets the color specified for painting the column's background. |
void |
setBorderStyle(com.klg.jclass.page.JCDrawStyle border)
Sets the border style for the column's border. |
void |
setDefaultBottomMargin(JCUnit.Measure width)
Sets the default width of a cell's bottom margin. |
void |
setDefaultCellAlignment(int alignment)
Sets the alignment (within each row) of the cells in this column. |
void |
setDefaultCellValue(Object obj)
Sets the default contents for cells in this column. |
void |
setDefaultLeftMargin(JCUnit.Measure width)
Sets the default width of a cell's left margin. |
void |
setDefaultRightMargin(JCUnit.Measure width)
Sets the default width of a cell's right margin. |
void |
setDefaultStyle(com.klg.jclass.page.JCTextStyle style)
Sets the default cell text style. |
void |
setDefaultTopMargin(JCUnit.Measure width)
Sets the default width of a cell's top margin. |
void |
setWidth(JCUnit.Measure width)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.page.JCDrawStyle rightBorder
protected Color background
protected JCPageTable.Cell defaultCell
protected JCUnit.Measure width
protected JCUnit.Measure borderWidth
protected int arrivingSpans
protected int departingSpans
protected int columnNumber
Constructor Detail |
public JCPageTable.Column()
public JCPageTable.Column(int position)
position
- The position of the column in the tablepublic JCPageTable.Column(JCUnit.Measure width, int position)
width
- The width of the columnposition
- The position of the column in the tableMethod Detail |
public boolean isBackgroundColorInherited()
public Color getBackgroundColor()
public void setBackgroundColor(Color color)
color
- The column's background colorpublic boolean isBorderStyleInherited()
public com.klg.jclass.page.JCDrawStyle getBorderStyle()
public void setBorderStyle(com.klg.jclass.page.JCDrawStyle border)
border
- The draw style that describes the borderpublic boolean isDefaultCellAlignmentInherited()
public int getDefaultCellAlignment()
public void setDefaultCellAlignment(int alignment)
alignment
- The vertical alignment of each cell versus its rowpublic boolean isDefaultStyleInherited()
public com.klg.jclass.page.JCTextStyle getDefaultStyle()
public void setDefaultStyle(com.klg.jclass.page.JCTextStyle style)
style
- A text style to apply to printing in cells in this columnpublic boolean isDefaultBottomMarginInherited()
public JCUnit.Measure getDefaultBottomMargin()
public void setDefaultBottomMargin(JCUnit.Measure width)
width
- The size of the bottom margin for table cellspublic boolean isDefaultTopMarginInherited()
public JCUnit.Measure getDefaultTopMargin()
public void setDefaultTopMargin(JCUnit.Measure width)
width
- The size of the top margin for table cellspublic boolean isDefaultLeftMarginInherited()
public JCUnit.Measure getDefaultLeftMargin()
public void setDefaultLeftMargin(JCUnit.Measure width)
width
- The size of the left margin for table cellspublic boolean isDefaultRightMarginInherited()
public JCUnit.Measure getDefaultRightMargin()
public void setDefaultRightMargin(JCUnit.Measure width)
width
- The size of the right margin for table cellspublic boolean isDefaultCellValueInherited()
public Object getDefaultCellValue()
public void setDefaultCellValue(Object obj)
obj
- The object to be the default contents for this columnpublic JCUnit.Measure getWidth()
public void setWidth(JCUnit.Measure width)
public int getColumnNumber()
protected void addArrivingSpan()
protected int getArrivingSpans()
protected void addDepartingSpan()
protected int getDepartingSpans()
protected JCUnit.Measure getLeftBorderWidth()
protected boolean noArrivingSpans()
protected boolean noDepartingSpans()
protected JCUnit.Measure getLeftBorderWidth(boolean fullWidth)
fullWidth
- True if the total space between this column and the
previous one is required, otherwise false (half)
protected JCUnit.Measure getRightBorderWidth()
protected JCUnit.Measure getRightBorderWidth(boolean fullWidth)
fullWidth
- True if the total space between this column and the
next one is required, otherwise false (half)
protected JCUnit.Measure getDrawnWidth(boolean first, boolean last)
first
- True if the column is the first column of the table partlast
- True if the column is the last column of the table part
protected JCUnit.Measure getBorderWidth()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |