|
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.higrid.RowFormat
The RowFormat
class contains the design-time and run-time
information associated with a given RowNode
.
Field Summary | |
protected static int |
COLUMN_SIZING_TOLERANCE
|
static int |
MIXED_BORDER_STYLES
indicates not all the cell formats' border styles are the same |
static int |
MIXED_SIZE
indicates not all the font sizes are the same |
static int |
MIXED_STYLE
indicates not all the font styles are the same |
protected static int |
ROW_SIZING_TOLERANCE
|
Constructor Summary | |
RowFormat()
Constructor |
Method Summary | |
protected int |
calculatePreferredHeight()
Calculate the preferred height of this row format. |
protected void |
checkForRowResizing(com.klg.jclass.higrid.NullGraphics nullgc,
com.klg.jclass.higrid.RowNode rowNode)
|
protected void |
computeSize(Vector cells)
|
protected void |
computeWidth()
|
protected com.klg.jclass.higrid.CellFormat |
createEditStatus(com.klg.jclass.higrid.HiGrid grid)
Creates the edit status indicator column. |
void |
createIndicatorFormats(com.klg.jclass.higrid.HiGrid grid)
Setup the indicator formats. |
protected com.klg.jclass.higrid.CellFormat |
createNodeFormat(com.klg.jclass.higrid.HiGrid grid)
Creates the node column. |
boolean |
draw(Graphics gc,
com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode)
Draw an entire RowNode. |
void |
drawCells(Graphics gc,
com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode,
Vector cells,
Rectangle rect,
Rectangle intersectRect)
Draw a vector of cells within the given row. |
protected boolean |
findFromFormat(com.klg.jclass.higrid.NullGraphics nullgc,
Enumeration e,
int x)
|
int |
getActualColumnIndex(int visibleColumnIndex)
Compute the actual column index from the visible column index. |
boolean |
getAllowHeightSizing()
Retrieves whether height sizing is allowed for this object. |
Color |
getBackground()
Retrieves the background color for this object. |
Insets |
getBorderInsets()
Retrieves the border insets for this object. |
int |
getBorderStyle()
Retrieves the border style for this object. |
Vector |
getDataFormats()
Retrieves the data formats for this level. |
protected int |
getDataWidth()
Get the total width of all of the visible data cells. |
protected int |
getFirstVisibleCell()
Returns the first available editable position |
String |
getFontName()
Retrieves the font name for this object. |
int |
getFontSize()
Retrieves the font size for this object. |
int |
getFontStyle()
Retrieves the font style for this object. |
Color |
getForeground()
Retrieves the foreground color for this object. |
Object |
getHeaderLabel(com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode,
com.klg.jclass.higrid.CellFormat cellFormat)
Setup the header label for the indicated cell. |
int |
getHeight()
Retrieves the height of this object. |
Vector |
getIndicatorFormats()
Retrieves the indicator formats for this level. |
int |
getIndicatorIndent(com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.FormatNode node)
Get the initial pixel indent for the given format level's indicator formats. |
int |
getInitialLevelIndent(com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.FormatNode node)
Get the initial pixel indent for the given format level. |
protected int |
getLastVisibleCell()
Returns the last available editable position |
com.klg.jclass.datasource.MetaDataModel |
getMetaData()
Retrieves the metadata for this row format. |
protected int |
getNodeIndent(com.klg.jclass.higrid.HiGrid grid,
Vector indicatorFormats)
|
protected com.klg.jclass.higrid.FormatNode |
getParent()
Retrieves the parent of this object. |
int |
getPreferredHeight()
Get the preferred height of this row format. |
protected int |
getTotalPrintWidth(com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.FormatNode node,
int printableWidth)
|
protected int |
getTotalWidth(com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.FormatNode node)
|
int |
getVisibleColumnCount()
Compute the number of visible dataFormat columns for this rowFormat. |
int |
getVisibleColumnIndex(int actualColumnIndex)
Compute the visible column index from the actual column index. |
int |
getWidth()
Retrieves the width of this object. |
protected void |
getXPosition(com.klg.jclass.higrid.NullGraphics nullgc,
com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode,
int operation)
|
protected void |
heightChanged()
|
protected void |
hitTest(com.klg.jclass.higrid.NullGraphics nullgc,
com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode)
|
protected int |
hitTestWithinRow(com.klg.jclass.higrid.NullGraphics nullgc,
com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode,
Vector cells,
int x)
|
boolean |
isShowing()
Retrieves whether this object is showing. |
protected void |
nextRow(Graphics gc,
com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode)
Move down to prepare to draw the next row. |
protected boolean |
nullDraw(com.klg.jclass.higrid.NullGraphics nullgc,
com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode)
"Pretend" to draw an entire RowNode. |
static void |
prepareDrawingArea(Graphics gc,
com.klg.jclass.higrid.CellFormat cellFormat,
Rectangle totalArea,
boolean selected)
Paints the background and the border for the given cell. |
void |
setAllowHeightSizing(boolean allow)
Sets whether height sizing is allowed for this object. |
void |
setBackground(Color color)
Sets the background color for this object (all its data formats). |
void |
setBorderInsets(Insets insets)
Sets the border insets for this object (all its cell formats). |
void |
setBorderStyle(int style)
Sets the border style for this object (all its cell formats). |
void |
setCellStyle(com.klg.jclass.higrid.CellStyleModel style)
Sets the CellStyle style for this object (all its CellFormats). |
protected void |
setCellStyle(com.klg.jclass.higrid.CellStyleModel style,
Vector v)
Sets the CellStyle style for this object's CellFormats). |
protected void |
setCellWidths(int newWidth)
|
void |
setDataCellStyle(com.klg.jclass.higrid.CellStyleModel style)
Sets the CellStyle style for this object's DataFormats). |
void |
setDataFormats(Vector formats)
Sets the data formats for this level. |
void |
setFont(String name,
int style,
int size,
FontMetrics fm)
Sets the font for this object (all its data formats). |
void |
setForeground(Color color)
Sets the foreground color for this object (all its data formats). |
void |
setHeight(int height)
Sets the height of this object. |
void |
setIndicatorCellStyle(com.klg.jclass.higrid.CellStyleModel style)
Sets the CellStyle style for this object's IndicatorFormats). |
void |
setIndicatorFormats(Vector formats)
Sets the indicator formats for this level. |
void |
setMetaData(com.klg.jclass.datasource.MetaDataModel metaData)
Sets the metadata for this row format. |
protected void |
setParent(com.klg.jclass.higrid.FormatNode parent)
Sets the parent of this object. |
void |
setShowing(boolean showing)
Sets whether this object is showing. |
protected void |
setWidth(int width)
Sets the width of this object. |
protected boolean |
shouldConnect(com.klg.jclass.higrid.RowNode rowNode)
Determine whether this row can be visually connected to another row. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MIXED_BORDER_STYLES
protected static final int ROW_SIZING_TOLERANCE
protected static final int COLUMN_SIZING_TOLERANCE
public static final int MIXED_STYLE
public static final int MIXED_SIZE
Constructor Detail |
public RowFormat()
Method Detail |
protected com.klg.jclass.higrid.FormatNode getParent()
protected void setParent(com.klg.jclass.higrid.FormatNode parent)
parent
- The new parent.public int getHeight()
public void setHeight(int height)
height
- The new height.public int getWidth()
protected void setWidth(int width)
width
- The new width.public com.klg.jclass.datasource.MetaDataModel getMetaData()
public void setMetaData(com.klg.jclass.datasource.MetaDataModel metaData)
metaData
- The new metadata.public boolean isShowing()
public void setShowing(boolean showing)
showing
- Whether object is to be shown.protected int getFirstVisibleCell()
protected int getLastVisibleCell()
public boolean getAllowHeightSizing()
public void setAllowHeightSizing(boolean allow)
allow
- Whether to allow height sizing.public void setCellStyle(com.klg.jclass.higrid.CellStyleModel style)
style
- The new CellStyle.public void setIndicatorCellStyle(com.klg.jclass.higrid.CellStyleModel style)
style
- The new CellStyle.public void setDataCellStyle(com.klg.jclass.higrid.CellStyleModel style)
style
- The new CellStyle.protected void setCellStyle(com.klg.jclass.higrid.CellStyleModel style, Vector v)
style
- The new CellStyle.public int getBorderStyle()
public void setBorderStyle(int style)
style
- The new border style.public Insets getBorderInsets()
public void setBorderInsets(Insets insets)
public Color getForeground()
public void setForeground(Color color)
color
- The new foreground color.public Color getBackground()
public void setBackground(Color color)
color
- The new background color.public String getFontName()
public int getFontStyle()
public int getFontSize()
public void setFont(String name, int style, int size, FontMetrics fm)
name
- The new font name.style
- The new font style.size
- The new font size.public Vector getIndicatorFormats()
public void setIndicatorFormats(Vector formats)
formats
- Indicator formats for this level.public Vector getDataFormats()
public void setDataFormats(Vector formats)
formats
- Data formats for this level.protected void setCellWidths(int newWidth)
protected void heightChanged()
public int getPreferredHeight()
protected int calculatePreferredHeight()
protected int getDataWidth()
protected void computeWidth()
protected void computeSize(Vector cells)
protected int getTotalWidth(com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.FormatNode node)
protected int getTotalPrintWidth(com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.FormatNode node, int printableWidth)
protected int getNodeIndent(com.klg.jclass.higrid.HiGrid grid, Vector indicatorFormats)
public int getInitialLevelIndent(com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.FormatNode node)
grid
- the current instance of HiGrid.node
- the FormatNode to examine.
public int getIndicatorIndent(com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.FormatNode node)
grid
- the current instance of HiGrid.node
- the FormatNode to examine.
protected void nextRow(Graphics gc, com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.RowNode rowNode)
gc
- the Graphics Context.grid
- the current instance of HiGrid.rowNode
- the current RowNode to move beyond.protected boolean shouldConnect(com.klg.jclass.higrid.RowNode rowNode)
rowNode
- the RowNode to examine.
public void drawCells(Graphics gc, com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.RowNode rowNode, Vector cells, Rectangle rect, Rectangle intersectRect)
gc
- the Graphics Context.grid
- the current instance of HiGrid.rowNode
- the current RowNode to draw.cells
- the cells to draw.rect
- rectangle used for clipping.intersectRect
- rectangle used for clipping.public boolean draw(Graphics gc, com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.RowNode rowNode)
gc
- the Graphics Context.grid
- the current instance of HiGrid.rowNode
- the RowNode to draw.
protected boolean nullDraw(com.klg.jclass.higrid.NullGraphics nullgc, com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.RowNode rowNode)
grid
- the current instance of HiGrid.rowNode
- the RowNode to draw.
protected boolean findFromFormat(com.klg.jclass.higrid.NullGraphics nullgc, Enumeration e, int x)
protected void getXPosition(com.klg.jclass.higrid.NullGraphics nullgc, com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.RowNode rowNode, int operation)
protected int hitTestWithinRow(com.klg.jclass.higrid.NullGraphics nullgc, com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.RowNode rowNode, Vector cells, int x)
protected void checkForRowResizing(com.klg.jclass.higrid.NullGraphics nullgc, com.klg.jclass.higrid.RowNode rowNode)
public int getVisibleColumnCount()
public int getVisibleColumnIndex(int actualColumnIndex)
actualColumnIndex
- the actual index into the dataFormat vector
public int getActualColumnIndex(int visibleColumnIndex)
visibleColumnIndex
- the visible index into the dataFormat vector
protected void hitTest(com.klg.jclass.higrid.NullGraphics nullgc, com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.RowNode rowNode)
public static void prepareDrawingArea(Graphics gc, com.klg.jclass.higrid.CellFormat cellFormat, Rectangle totalArea, boolean selected)
gc
- the Graphics Context.cellFormat
- The cell to paint.totalArea
- the rectangle to paint.selected
- true if the cell should be painted as selected.public Object getHeaderLabel(com.klg.jclass.higrid.HiGrid grid, com.klg.jclass.higrid.RowNode rowNode, com.klg.jclass.higrid.CellFormat cellFormat)
grid
- The higrid.rowNode
- The row node.cellFormat
- The cell format.
public void createIndicatorFormats(com.klg.jclass.higrid.HiGrid grid)
protected com.klg.jclass.higrid.CellFormat createEditStatus(com.klg.jclass.higrid.HiGrid grid)
protected com.klg.jclass.higrid.CellFormat createNodeFormat(com.klg.jclass.higrid.HiGrid grid)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |