com.imagero.swing.drag
Class SimpleRect

java.lang.Object
  extended bycom.imagero.swing.drag.SimpleRect
All Implemented Interfaces:
Rect

public class SimpleRect
extends java.lang.Object
implements Rect

Implementation of Rect


Constructor Summary
SimpleRect(java.awt.Rectangle r)
          create new SimpleRect
SimpleRect(java.awt.Rectangle r, java.awt.Insets insets)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.awt.Rectangle getBounds()
           
 int getHeight()
           
 java.awt.Insets getInsets()
           
 java.awt.Point getLocation()
           
 java.awt.Dimension getSize()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 int hashCode()
           
 void setInsets(java.awt.Insets insets)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRect

public SimpleRect(java.awt.Rectangle r)
create new SimpleRect

Parameters:
r - Rectangle

SimpleRect

public SimpleRect(java.awt.Rectangle r,
                  java.awt.Insets insets)
Method Detail

getInsets

public java.awt.Insets getInsets()
Specified by:
getInsets in interface Rect

setInsets

public void setInsets(java.awt.Insets insets)
Specified by:
setInsets in interface Rect

getBounds

public java.awt.Rectangle getBounds()
Specified by:
getBounds in interface Rect

getLocation

public java.awt.Point getLocation()
Specified by:
getLocation in interface Rect

getSize

public java.awt.Dimension getSize()
Specified by:
getSize in interface Rect

getX

public int getX()
Specified by:
getX in interface Rect

getY

public int getY()
Specified by:
getY in interface Rect

getWidth

public int getWidth()
Specified by:
getWidth in interface Rect

getHeight

public int getHeight()
Specified by:
getHeight in interface Rect

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()