public class RelativeRectangle
extends java.lang.Object
Constructor and Description |
---|
RelativeRectangle() |
RelativeRectangle(java.awt.Component component,
java.awt.Rectangle rectangle) |
RelativeRectangle(javax.swing.JComponent component) |
RelativeRectangle(java.awt.event.MouseEvent event,
java.awt.Dimension size) |
RelativeRectangle(RelativePoint point,
java.awt.Dimension dimension) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(RelativePoint relativePoint) |
static RelativeRectangle |
fromScreen(javax.swing.JComponent target,
java.awt.Rectangle screenRectangle) |
java.awt.Component |
getComponent() |
java.awt.Dimension |
getDimension() |
RelativePoint |
getMaxPoint() |
RelativePoint |
getPoint() |
java.awt.Rectangle |
getRectangleOn(java.awt.Component target) |
java.awt.Rectangle |
getScreenRectangle() |
public RelativeRectangle()
public RelativeRectangle(java.awt.event.MouseEvent event, java.awt.Dimension size)
public RelativeRectangle(javax.swing.JComponent component)
public RelativeRectangle(java.awt.Component component, java.awt.Rectangle rectangle)
public RelativeRectangle(RelativePoint point, java.awt.Dimension dimension)
public java.awt.Dimension getDimension()
public RelativePoint getPoint()
public RelativePoint getMaxPoint()
public java.awt.Rectangle getRectangleOn(java.awt.Component target)
public java.awt.Rectangle getScreenRectangle()
public static RelativeRectangle fromScreen(javax.swing.JComponent target, java.awt.Rectangle screenRectangle)
public java.awt.Component getComponent()
public boolean contains(RelativePoint relativePoint)