public class TTreeCellIcon
extends java.lang.Object
implements javax.swing.Icon
Modifier and Type | Field and Description |
---|---|
protected boolean |
drawIconShape |
protected Element |
element |
protected TTree |
tree |
Constructor and Description |
---|
TTreeCellIcon(Element element)
Create a tree cell icon for given element.
|
TTreeCellIcon(Element element,
TTree tree) |
Modifier and Type | Method and Description |
---|---|
Element |
getElement()
The bound element instance.
|
protected javax.swing.Icon |
getElementIcon()
Get element icon.
|
protected java.lang.String |
getElementIconURL()
Gets the element icon url.
|
int |
getIconHeight()
Gets the icon height
|
int |
getIconWidth()
Gets the icon width
|
protected void |
paintContent(java.awt.Component c,
java.awt.Graphics2D g2d,
int x,
int y)
paint content
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
protected TTree tree
protected Element element
protected boolean drawIconShape
public TTreeCellIcon(Element element)
element
- Element the element on the tree cellpublic Element getElement()
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
protected void paintContent(java.awt.Component c, java.awt.Graphics2D g2d, int x, int y)
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
protected javax.swing.Icon getElementIcon()
protected java.lang.String getElementIconURL()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.