org.zaval.lw.tree
Class ItemMetrics
java.lang.Object
|
+--org.zaval.lw.tree.ItemMetrics
- public class ItemMetrics
- extends java.lang.Object
This is tree view node descriptor class. The class provides set of metrical characteristics
for a node of the tree component. Mainly, the class is used for internal purposes.
|
Field Summary |
protected int |
height
The node height |
protected boolean |
isOpenValue
The node open state |
protected int |
viewHeight
The node view height |
protected int |
viewWidth
The node view width |
protected int |
width
The node width |
protected int |
x
The node location x coordinate |
protected int |
y
The node location y coordinate |
|
Constructor Summary |
ItemMetrics(boolean b)
Constructs the item metrics instance with the specified open flag value. |
|
Method Summary |
int |
getHeight()
Gets the node height. |
int |
getWidth()
Gets the node width. |
boolean |
isOpen()
Tests if the item is opened. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
protected int x
- The node location x coordinate
y
protected int y
- The node location y coordinate
width
protected int width
- The node width
height
protected int height
- The node height
viewWidth
protected int viewWidth
- The node view width
viewHeight
protected int viewHeight
- The node view height
isOpenValue
protected boolean isOpenValue
- The node open state
ItemMetrics
public ItemMetrics(boolean b)
- Constructs the item metrics instance with the specified open flag value.
- Parameters:
b - the specified open flag value.
getHeight
public int getHeight()
- Gets the node height.
- Returns:
- a node height.
getWidth
public int getWidth()
- Gets the node width.
- Returns:
- a node width.
isOpen
public boolean isOpen()
- Tests if the item is opened.
- Returns:
true if the item is opened; false otherwise.
|