|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--fri.gui.swing.polytreetable.TreeIndentIcon
Paint icons to render a tree expand control, a leaf/folder the tree level indent. It can be used for children (left indent) and parents (right indent).
PolyTreeTableCellRenderer| Field Summary | |
static int |
ICON_GAP
|
| Constructor Summary | |
TreeIndentIcon()
Create an Icon that must be set by setObject from another TreeIndentIcon. |
|
TreeIndentIcon(javax.swing.Icon one,
javax.swing.Icon two,
int indent,
boolean leftIndent)
Create an Icon that renders two other Icons and indents them from left or right by a fixed offset. |
|
| Method Summary | |
int |
getIconHeight()
Returns Math.max() of both Icons. |
int |
getIconWidth()
Returns width of both Icons plus indent + TreeIndentIcon.ICON_GAP. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Delegates to both Icons and indents them. |
void |
setIndent(int indent)
Set the indent for a specific tree level. |
void |
setObject(TreeIndentIcon icon)
Set the values of this icon to another. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int ICON_GAP
| Constructor Detail |
public TreeIndentIcon()
public TreeIndentIcon(javax.swing.Icon one,
javax.swing.Icon two,
int indent,
boolean leftIndent)
one - left Icon (expand control), can be nulltwo - right Icon (folder icon), can be nullindent - pixel offset to the left or rigth of both IconsleftIndent - true if it is a left indent, else false| Method Detail |
public void setIndent(int indent)
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconpublic void setObject(TreeIndentIcon icon)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||