public class RelativePoint
extends java.lang.Object
Constructor and Description |
---|
RelativePoint(java.awt.Component aComponent,
java.awt.Point aPointOnComponent) |
RelativePoint(java.awt.event.MouseEvent event) |
RelativePoint(java.awt.Point screenPoint) |
Modifier and Type | Method and Description |
---|---|
static RelativePoint |
fromScreen(java.awt.Point screenPoint) |
static RelativePoint |
getCenterOf(javax.swing.JComponent component) |
java.awt.Component |
getComponent() |
static RelativePoint |
getNorthEastOf(javax.swing.JComponent component) |
static RelativePoint |
getNorthWestOf(javax.swing.JComponent component) |
java.awt.Component |
getOriginalComponent() |
java.awt.Point |
getOriginalPoint() |
java.awt.Point |
getPoint() |
java.awt.Point |
getPoint(java.awt.Component aTargetComponent) |
RelativePoint |
getPointOn(java.awt.Component aTargetComponent) |
java.awt.Point |
getScreenPoint() |
static RelativePoint |
getSouthEastOf(javax.swing.JComponent component) |
static RelativePoint |
getSouthOf(javax.swing.JComponent component) |
static RelativePoint |
getSouthWestOf(javax.swing.JComponent component) |
java.awt.event.MouseEvent |
toMouseEvent() |
java.lang.String |
toString() |
public RelativePoint(java.awt.event.MouseEvent event)
public RelativePoint(java.awt.Point screenPoint)
public RelativePoint(java.awt.Component aComponent, java.awt.Point aPointOnComponent)
public java.awt.Component getComponent()
public java.awt.Point getPoint()
public java.awt.Point getPoint(java.awt.Component aTargetComponent)
public RelativePoint getPointOn(java.awt.Component aTargetComponent)
public java.awt.Point getScreenPoint()
public java.awt.event.MouseEvent toMouseEvent()
public java.lang.String toString()
toString
in class java.lang.Object
public static RelativePoint getCenterOf(javax.swing.JComponent component)
public static RelativePoint getSouthEastOf(javax.swing.JComponent component)
public static RelativePoint getSouthWestOf(javax.swing.JComponent component)
public static RelativePoint getSouthOf(javax.swing.JComponent component)
public static RelativePoint getNorthWestOf(javax.swing.JComponent component)
public static RelativePoint getNorthEastOf(javax.swing.JComponent component)
public static RelativePoint fromScreen(java.awt.Point screenPoint)
public java.awt.Component getOriginalComponent()
public java.awt.Point getOriginalPoint()