|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.Point2D
java.awt.Point
org.pf.swing.ComponentPoint
public class ComponentPoint
Represents a point relative to a component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Point2D |
|---|
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
| Field Summary |
|---|
| Fields inherited from class java.awt.Point |
|---|
x, y |
| Constructor Summary | |
|---|---|
ComponentPoint(java.awt.Component component)
Initialize the new instance with a component and relative position x=0, y=0. |
|
ComponentPoint(java.awt.Component component,
int x,
int y)
Initialize the new instance with a component and relative coordinates. |
|
ComponentPoint(java.awt.Component component,
java.awt.Point p)
Initialize the new instance with a component and a point. |
|
ComponentPoint(java.awt.event.MouseEvent mouseEvent)
Initialize the new instance with values to derive from the given mouse event. |
|
| Method Summary | |
|---|---|
java.awt.Component |
getComponent()
Returns the component the point is relative to. |
java.awt.Point |
getPoint()
Returns the point coordinates without the component. |
| Methods inherited from class java.awt.Point |
|---|
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, toString, translate |
| Methods inherited from class java.awt.geom.Point2D |
|---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentPoint(java.awt.Component component)
component - The component to which the point is relative
public ComponentPoint(java.awt.Component component,
java.awt.Point p)
component - The component to which the point is relativep - The point within the component
public ComponentPoint(java.awt.Component component,
int x,
int y)
component - The component to which the point is relativex - The point's x coordinatey - The point's y coordinatepublic ComponentPoint(java.awt.event.MouseEvent mouseEvent)
mouseEvent - The event that contains the component and coordinates of the mouse click| Method Detail |
|---|
public java.awt.Component getComponent()
public java.awt.Point getPoint()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||