|
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.cell.renderers.JCWordWrapCellRenderer
A multi-line String cell renderer that will wrap lines to fit the cell contraints.
JCStringCellRenderer
,
Serialized FormField Summary | |
protected boolean |
drawClipArrowOutline
|
protected com.klg.jclass.cell.Utilities |
utilities
|
Constructor Summary | |
JCWordWrapCellRenderer()
|
Method Summary | |
void |
draw(Graphics gc,
com.klg.jclass.cell.JCCellInfo cellInfo,
Object o,
boolean selected)
Used to draw a String using word-wrap logic. |
int |
getHeight(FontMetrics fm,
String s)
Returns the height required to paint the String. |
Dimension |
getPreferredSize(Graphics gc,
com.klg.jclass.cell.JCCellInfo cellInfo,
Object o)
Determines the preferred size of the cell. |
int |
getWidth(FontMetrics fm,
String text)
Returns the width required to paint a multi-line String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.cell.Utilities utilities
protected boolean drawClipArrowOutline
Constructor Detail |
public JCWordWrapCellRenderer()
Method Detail |
public void draw(Graphics gc, com.klg.jclass.cell.JCCellInfo cellInfo, Object o, boolean selected)
draw
in interface JCLightCellRenderer
gc
- graphics context to use for drawingcellInfo
- cell property informationo
- the object to be renderedselected
- if true
, the selected foreground color is usedpublic int getHeight(FontMetrics fm, String s)
fm
- s
-
public int getWidth(FontMetrics fm, String text)
fm
- text
-
public Dimension getPreferredSize(Graphics gc, com.klg.jclass.cell.JCCellInfo cellInfo, Object o)
getPreferredSize
in interface JCLightCellRenderer
gc
- the graphics contextcellInfo
- cell property informationo
- the object to be rendered
java.awt.Dimension
instance containing preferred height and width
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |