dsto.dfc.swing.panels
Class TopLeft
java.lang.Object
dsto.dfc.swing.panels.Corner
dsto.dfc.swing.panels.TopLeft
- Direct Known Subclasses:
- BottomLeft, TopRight
public class TopLeft
- extends Corner
TopLeft positions an inner frame in the top
left corner of a larger outer frame. The indentation level
nudges the inner frame by degrees towards the
center of the outer frame.
- Version:
- $Revision$
- Author:
- Peter J Smet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopLeft
public TopLeft()
locationFor
public Point locationFor(Component inner,
Component outer,
int indentLevel)
- Specified by:
locationFor
in class Corner
makePointAbsolute
protected void makePointAbsolute(Point topLeft,
Point absoluteTopLeft)
pointLiesWithinFrame
protected boolean pointLiesWithinFrame(Point topLeft,
Component frame,
int indentLevel)
horizontalInset
protected int horizontalInset(int indentLevel)
verticalInset
protected int verticalInset(int indentLevel)
moveToCorner
protected Point moveToCorner(Point topLeft)
indent
protected void indent(Point startCorner,
int indentLevel)
calculateFrameSizeDifference
protected void calculateFrameSizeDifference(Component inner,
Component outer)
innerFrameTooLarge
protected boolean innerFrameTooLarge(Component inner,
Component outer)
usesAbsoluteCoordinates
protected boolean usesAbsoluteCoordinates(Component frame)
Copyright © 2008 Commonwealth of Australia