dsto.dfc.swing.panels
Class Corner

java.lang.Object
  extended by dsto.dfc.swing.panels.Corner
Direct Known Subclasses:
TopLeft

public abstract class Corner
extends Object

Corner positions an inner frame in a corner of of a larger outer frame. The indentation level nudges the inner frame by degrees towards the center of the outer frame. Used to position ToolView frames inside their parent frames.

Version:
$Revision$
Author:
Peter J Smet

Field Summary
static BottomLeft BOTTOM_LEFT
           
static BottomRight BOTTOM_RIGHT
           
static TopLeft TOP_LEFT
           
static TopRight TOP_RIGHT
           
 
Constructor Summary
Corner()
           
 
Method Summary
 Point locationFor(Component inner, Component outer)
           
abstract  Point locationFor(Component inner, Component outer, int indentLevel)
           
 void placeFrame(Component inner, Component outer)
           
 void placeFrame(Component inner, Component outer, int indentLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOP_LEFT

public static final TopLeft TOP_LEFT

TOP_RIGHT

public static final TopRight TOP_RIGHT

BOTTOM_LEFT

public static final BottomLeft BOTTOM_LEFT

BOTTOM_RIGHT

public static final BottomRight BOTTOM_RIGHT
Constructor Detail

Corner

public Corner()
Method Detail

placeFrame

public void placeFrame(Component inner,
                       Component outer)

placeFrame

public void placeFrame(Component inner,
                       Component outer,
                       int indentLevel)

locationFor

public Point locationFor(Component inner,
                         Component outer)

locationFor

public abstract Point locationFor(Component inner,
                                  Component outer,
                                  int indentLevel)


Copyright © 2008 Commonwealth of Australia