|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanecho.gui.PosTools
public class PosTools
A set of tools to help ease finding the centre and corner points of existing objects and/or the screen.
| Constructor Summary | |
|---|---|
PosTools()
|
|
| Method Summary | |
|---|---|
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 parent,
java.awt.Component child)
return the point to centre the child component on the parent component |
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 |
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 parent,
java.awt.Component child)
Deprecated. use findCenter(Component parent, Component child) |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PosTools()
| Method Detail |
|---|
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 returned
public 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 parent
public 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 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||