org.basex.gui.view.tree
Class TreeRect

java.lang.Object
  extended by org.basex.gui.view.tree.TreeRect

public class TreeRect
extends Object

This is class is used to handle rectangles.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Wolfgang Miller

Field Summary
 int w
          Width.
 int x
          X position.
 
Constructor Summary
TreeRect(int xx, int ww)
          Initializes TreeRect.
 
Method Summary
 boolean contains(int xx)
          Verifies if the specified coordinates are inside the rectangle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public int x
X position.


w

public int w
Width.

Constructor Detail

TreeRect

public TreeRect(int xx,
                int ww)
Initializes TreeRect.

Parameters:
xx - x position
ww - width
Method Detail

contains

public boolean contains(int xx)
Verifies if the specified coordinates are inside the rectangle.

Parameters:
xx - x position
Returns:
result of comparison