com.imagero.swing.drag
Class ComponentRect
java.lang.Object
com.imagero.swing.drag.ComponentRect
- All Implemented Interfaces:
- Rect
- public class ComponentRect
- extends java.lang.Object
- implements Rect
ComponentRect.
Implementation of Rect for Component
|
Constructor Summary |
ComponentRect(java.awt.Component comp)
create new ComponentRect |
ComponentRect(java.awt.Component comp,
java.awt.Insets insets)
create new ComponentRect |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ComponentRect
public ComponentRect(java.awt.Component comp)
- create new ComponentRect
- Parameters:
comp - Component
ComponentRect
public ComponentRect(java.awt.Component comp,
java.awt.Insets insets)
- create new ComponentRect
- Parameters:
comp - Componentinsets - 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()