public class PosTools
extends java.lang.Object
| Constructor | Description |
|---|---|
PosTools() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.awt.Point |
findCenter() |
Without arguements, we will return the centre of the 'desktop'
|
static java.awt.Point |
findCenter(java.awt.Component comp) |
Find the centre of the object that we have been passed
|
static java.awt.Point |
findCenter(java.awt.Component comp,
int corner) |
Returns the specified corner of the object which we have been passed
|
static java.awt.Point |
findCenter(java.awt.Component parent,
java.awt.Component child) |
return the point to centre the child component on the parent component
|
static java.awt.Point |
findCentre() |
Deprecated.
use findCenter() instead. English spelling confuses people
|
static java.awt.Point |
findCentre(java.awt.Component comp) |
Deprecated.
use findCenter(Component c) instead
|
static java.awt.Point |
findCentre(java.awt.Component comp,
int corner) |
Deprecated.
use findCenter(Component c, int corner) instead
|
static java.awt.Point |
findCentre(java.awt.Component parent,
int corner,
java.awt.Component child) |
return the Point to centre the child component over the given axis of the parent
|
static java.awt.Point |
findCentre(java.awt.Component parent,
java.awt.Component child) |
Deprecated.
use findCenter(Component parent, Component child)
|
public static java.awt.Point findCentre()
public static java.awt.Point findCenter()
public static java.awt.Point findCenter(java.awt.Component comp)
comp - The component that we are to find the centre of.public static java.awt.Point findCentre(java.awt.Component comp)
comp - The component that we are to find the centre of.public static java.awt.Point findCentre(java.awt.Component comp,
int corner)
comp - The component that we are to find the centre of.corner - public static java.awt.Point findCenter(java.awt.Component comp,
int corner)
comp - The component that we are to find the centre of.corner - The name of the component's corner-coordinates that we want returnedpublic static java.awt.Point findCentre(java.awt.Component parent,
java.awt.Component child)
parent - The parent component that will be used to centre the childchild - public static java.awt.Point findCenter(java.awt.Component parent,
java.awt.Component child)
parent - The parent component that will be used to centre the childchild - The child component to be centred on the parentpublic static java.awt.Point findCentre(java.awt.Component parent,
int corner,
java.awt.Component child)
parent - The parent component that will be used to centre the childcorner - child -