|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.control.attributetree.AttributeTreeIcon
Icon that is used in the SwingAttributeTree to display the attributes with a specific indentation and with an expand/collapse icon.
| Field Summary | |
static int |
TYPE_COLLAPSED
Icon type: Collapsed. |
static int |
TYPE_EXPANDED
Icon type: Expanded. |
static int |
TYPE_INDENTATION
Icon type: Indentation. |
| Constructor Summary | |
AttributeTreeIcon(int width,
int height,
int type)
Constructor |
|
| Method Summary | |
javax.swing.border.Border |
getBorder()
Creates and returns a border that will contain the same indentation and icon than this icon instance. |
int |
getIconHeight()
|
int |
getIconTextSpacing()
Returns the iconTextSpacing. |
int |
getIconWidth()
|
int |
getIndent()
Returns the current indentation of this icon |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
void |
setIconTextSpacing(int iconTextSpacing)
Sets the iconTextSpacing |
void |
setLevel(int level)
Sets the depth, which is used to calculate the indentation |
void |
setType(int type)
Sets the type of this icon |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TYPE_INDENTATION
public static final int TYPE_COLLAPSED
public static final int TYPE_EXPANDED
| Constructor Detail |
public AttributeTreeIcon(int width,
int height,
int type)
width - The with of the icon to createheight - The heiht of the icon to createtype - The type of the icon| Method Detail |
public void setType(int type)
type - The type to setpublic void setLevel(int level)
level - the depth, which is used to calculate the indentation
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIndent()
public int getIconTextSpacing()
public void setIconTextSpacing(int iconTextSpacing)
iconTextSpacing - The iconTextSpacing to set.public javax.swing.border.Border getBorder()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||