jas.plot
Class DataAreaLayout

java.lang.Object
  extended by jas.plot.DataAreaLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2

public final class DataAreaLayout
extends Object
implements LayoutManager2


Field Summary
static String X_AXIS
           
static String X_AXIS_LABEL
           
static String Y_AXIS_LEFT
           
static String Y_AXIS_LEFT_LABEL
           
static String Y_AXIS_RIGHT
           
static String Y_AXIS_RIGHT_LABEL
           
 
Constructor Summary
DataAreaLayout()
           
 
Method Summary
 void addLayoutComponent(Component c, Object constraints)
           
 void addLayoutComponent(String s, Component c)
           
 float getLayoutAlignmentX(Container parent)
          Returns the alignment along the x axis.
 float getLayoutAlignmentY(Container parent)
          Returns the alignment along the y axis.
 void invalidateLayout(Container target)
          Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
 void layoutContainer(Container parent)
           
 Dimension maximumLayoutSize(Container parent)
           
 Dimension minimumLayoutSize(Container parent)
           
 Dimension preferredLayoutSize(Container parent)
           
 void removeLayoutComponent(Component c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_AXIS

public static final String X_AXIS
See Also:
Constant Field Values

Y_AXIS_LEFT

public static final String Y_AXIS_LEFT
See Also:
Constant Field Values

Y_AXIS_RIGHT

public static final String Y_AXIS_RIGHT
See Also:
Constant Field Values

X_AXIS_LABEL

public static final String X_AXIS_LABEL
See Also:
Constant Field Values

Y_AXIS_LEFT_LABEL

public static final String Y_AXIS_LEFT_LABEL
See Also:
Constant Field Values

Y_AXIS_RIGHT_LABEL

public static final String Y_AXIS_RIGHT_LABEL
See Also:
Constant Field Values
Constructor Detail

DataAreaLayout

public DataAreaLayout()
Method Detail

addLayoutComponent

public void addLayoutComponent(Component c,
                               Object constraints)
Specified by:
addLayoutComponent in interface LayoutManager2

addLayoutComponent

public void addLayoutComponent(String s,
                               Component c)
Specified by:
addLayoutComponent in interface LayoutManager

removeLayoutComponent

public void removeLayoutComponent(Component c)
Specified by:
removeLayoutComponent in interface LayoutManager

layoutContainer

public void layoutContainer(Container parent)
Specified by:
layoutContainer in interface LayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Specified by:
minimumLayoutSize in interface LayoutManager

maximumLayoutSize

public Dimension maximumLayoutSize(Container parent)
Specified by:
maximumLayoutSize in interface LayoutManager2

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Specified by:
preferredLayoutSize in interface LayoutManager

getLayoutAlignmentX

public float getLayoutAlignmentX(Container parent)
Returns the alignment along the x axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.

Specified by:
getLayoutAlignmentX in interface LayoutManager2

getLayoutAlignmentY

public float getLayoutAlignmentY(Container parent)
Returns the alignment along the y axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.

Specified by:
getLayoutAlignmentY in interface LayoutManager2

invalidateLayout

public void invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.

Specified by:
invalidateLayout in interface LayoutManager2


Copyright © 2000-2009 FreeHEP. All Rights Reserved.