|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.design.view.ScreenPresence
public class ScreenPresence
Represent location and size information for a screen component.
Constructor Summary | |
---|---|
ScreenPresence(Component component)
|
|
ScreenPresence(Point position,
Dimension size)
|
Method Summary | |
---|---|
void |
fit(Component component)
Fit a component to the location and size of this screen presence. |
Point |
getLocation()
|
Dimension |
getSize()
|
Point |
locationToCenter(Dimension size)
Return the location relative to this screen area that would centre something of the given size within this screen area.. |
ScreenPresence |
smaller(double factor)
Create ScreenPresence a factor the size of this. |
String |
toString()
|
static ScreenPresence |
wholeScreen()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScreenPresence(Point position, Dimension size)
public ScreenPresence(Component component)
Method Detail |
---|
public void fit(Component component)
component
- public Point getLocation()
public Dimension getSize()
public Point locationToCenter(Dimension size)
size
-
public ScreenPresence smaller(double factor)
factor
- The factor to size the new ScreenPresence by.
public static ScreenPresence wholeScreen()
public String toString()
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |