dsto.dfc.swing.panels
Class TopLeft

java.lang.Object
  extended by dsto.dfc.swing.panels.Corner
      extended by 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

Field Summary
 
Fields inherited from class dsto.dfc.swing.panels.Corner
BOTTOM_LEFT, BOTTOM_RIGHT, TOP_LEFT, TOP_RIGHT
 
Constructor Summary
TopLeft()
           
 
Method Summary
protected  void calculateFrameSizeDifference(Component inner, Component outer)
           
protected  int horizontalInset(int indentLevel)
           
protected  void indent(Point startCorner, int indentLevel)
           
protected  boolean innerFrameTooLarge(Component inner, Component outer)
           
 Point locationFor(Component inner, Component outer, int indentLevel)
           
protected  void makePointAbsolute(Point topLeft, Point absoluteTopLeft)
           
protected  Point moveToCorner(Point topLeft)
           
protected  boolean pointLiesWithinFrame(Point topLeft, Component frame, int indentLevel)
           
protected  boolean usesAbsoluteCoordinates(Component frame)
           
protected  int verticalInset(int indentLevel)
           
 
Methods inherited from class dsto.dfc.swing.panels.Corner
locationFor, placeFrame, placeFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopLeft

public TopLeft()
Method Detail

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