com.imagero.swing.drag
Class SimpleRect
java.lang.Object
com.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)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SimpleRect
public SimpleRect(java.awt.Rectangle r)
- create new SimpleRect
- Parameters:
r - Rectangle
SimpleRect
public SimpleRect(java.awt.Rectangle r,
java.awt.Insets insets)
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()