com.metsci.glimpse.context
Class GlimpseBounds
java.lang.Object
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
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
EMPTY_BOUNDS
public static final GlimpseBounds EMPTY_BOUNDS
GlimpseBounds
public GlimpseBounds(java.awt.Dimension d)
GlimpseBounds
public GlimpseBounds(int x,
int y,
int width,
int height)
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.