com.metsci.glimpse.context
Class GlimpseBounds

java.lang.Object
  extended by com.metsci.glimpse.context.GlimpseBounds

public class GlimpseBounds
extends java.lang.Object

Simple storage class storing the position and bounds for a GlimpseTarget.

Author:
ulman

Field Summary
static GlimpseBounds EMPTY_BOUNDS
           
 
Constructor Summary
GlimpseBounds(java.awt.Dimension d)
           
GlimpseBounds(int x, int y, int width, int height)
           
 
Method Summary
 boolean contains(int X, int Y)
           
 boolean equals(java.lang.Object obj)
           
 int getHeight()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 int hashCode()
           
 boolean isValid()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_BOUNDS

public static final GlimpseBounds EMPTY_BOUNDS
Constructor Detail

GlimpseBounds

public GlimpseBounds(java.awt.Dimension d)

GlimpseBounds

public GlimpseBounds(int x,
                     int y,
                     int width,
                     int height)
Method Detail

getX

public int getX()

getY

public int getY()

getWidth

public int getWidth()

getHeight

public int getHeight()

isValid

public boolean isValid()

contains

public boolean contains(int X,
                        int Y)
Parameters:
X -
Y -
Returns:
true if the given point falls inside the rectangle formed by the bounds
See Also:
Rectangle.inside(int,int)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 Metron, Inc.. All Rights Reserved.