JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.swing
Interface JCElastic

All Known Implementing Classes:
JCSpring

public interface JCElastic

Empty interface that informs enabled layout managers that a particular component should be stretched up to its maximum before stretching any non-elastic components.

See Also:
JCColumnLayout, JCRowLayout

Method Summary
 int getHorizontalElasticity()
          Returns the horizontal elasticity or "stretchiness" of the component.
 int getVerticalElasticity()
          Returns the vertical elasticity or "stretchiness" of the component.
 

Method Detail

getHorizontalElasticity

public int getHorizontalElasticity()
Returns the horizontal elasticity or "stretchiness" of the component. A value of 0 means it is not "stretchy" at all. A common value is 1. The higher the value the greater the stretchiness.

Returns:
horizontal elasticity; 0 means not "stretchy"

getVerticalElasticity

public int getVerticalElasticity()
Returns the vertical elasticity or "stretchiness" of the component. A value of 0 means it is not "stretchy" at all. A common value is 1. The higher the value the greater the stretchiness.

Returns:
vertical elasticity; 0 means not "stretchy"

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