JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.swing.gauge
Class GaugeLayout

java.lang.Object
  |
  +--com.klg.jclass.swing.gauge.GaugeLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2, Serializable
Direct Known Subclasses:
LinearLayout, RadialLayout

public abstract class GaugeLayout
extends Object
implements LayoutManager2, Serializable

GaugeLayout -- lays out GaugeConstraint components.

See Also:
Serialized Form

Field Summary
protected  Vector components
          List of components
protected  Vector constraints
          List of locations
 
Constructor Summary
GaugeLayout()
           
 
Method Summary
 void addLayoutComponent(Component comp, Object constraint)
           
 void addLayoutComponent(String r, Component comp)
           
 float getLayoutAlignmentX(Container c)
           
 float getLayoutAlignmentY(Container c)
           
 void invalidateLayout(Container c)
           
abstract  void layoutContainer(Container target)
          Lays out the container linearly or radially.
 Dimension maximumLayoutSize(Container c)
           
 Dimension minimumLayoutSize(Container target)
           
 Dimension preferredLayoutSize(Container target)
           
 void removeLayoutComponent(Component comp)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

constraints

protected Vector constraints
List of locations


components

protected Vector components
List of components

Constructor Detail

GaugeLayout

public GaugeLayout()
Method Detail

addLayoutComponent

public void addLayoutComponent(Component comp,
                               Object constraint)
Specified by:
addLayoutComponent in interface LayoutManager2
Parameters:
comp -
constraint -

getLayoutAlignmentX

public float getLayoutAlignmentX(Container c)
Specified by:
getLayoutAlignmentX in interface LayoutManager2

getLayoutAlignmentY

public float getLayoutAlignmentY(Container c)
Specified by:
getLayoutAlignmentY in interface LayoutManager2

invalidateLayout

public void invalidateLayout(Container c)
Specified by:
invalidateLayout in interface LayoutManager2

maximumLayoutSize

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

addLayoutComponent

public void addLayoutComponent(String r,
                               Component comp)
Specified by:
addLayoutComponent in interface LayoutManager

removeLayoutComponent

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

preferredLayoutSize

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

minimumLayoutSize

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

layoutContainer

public abstract void layoutContainer(Container target)
Lays out the container linearly or radially. Each component encapsulates the position/angle and extent at which it would like to be placed in the component

Specified by:
layoutContainer in interface LayoutManager
Parameters:
target -

toString

public String toString()
Overrides:
toString in class Object

Copyright © 2004 Quest Software Inc..
All rights reserved.