|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--com.klg.jclass.util.swing.JCSpring
Stretchable concrete implementable of the JCElastic
interface,
which specifies components as stretchable for the
JCElasticLayout
manager and its subclasses.
Nested Class Summary |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected int |
b_count
|
protected int |
h_count
|
protected int |
horizontalElasticity
|
protected Dimension |
max
|
protected int |
v_count
|
protected int |
verticalElasticity
|
protected Dimension |
zero
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCSpring()
Creates a completely stretchable component with an elasticity of 1 in both horizontal and vertical directions. |
|
JCSpring(int horizontal_elasticity,
int vertical_elasticity)
Creates a component that is stretchable in the direction specified. |
Method Summary | |
static com.klg.jclass.util.swing.JCSpring |
createHorizontalSpring()
Creates a spring that is only horizontally stretchable with an elasticity of 1. |
static com.klg.jclass.util.swing.JCSpring |
createHorizontalSpring(int elasticity)
Creates a spring that is only horizontally stretchable with the specified elasticity. |
static com.klg.jclass.util.swing.JCSpring |
createVerticalSpring()
Creates a spring that is only vertically stretchable with an elasticity of 1. |
static com.klg.jclass.util.swing.JCSpring |
createVerticalSpring(int elasticity)
Creates a spring that is only vertically stretchable with the specified elasticity. |
String |
getAbout()
Returns vendor information. |
int |
getHorizontalElasticity()
Returns the horizontal elasticity or "stretchiness" of the component. |
Dimension |
getMaximumSize()
Returns the maximum size of the component. |
Dimension |
getMinimumSize()
Returns the minimum size of the component. |
Dimension |
getPreferredSize()
Returns the preferred size of the component. |
int |
getVerticalElasticity()
Returns the vertical elasticity or "stretchiness" of the component. |
void |
setAbout(String s)
Provided for Beans property editors - has no effect. |
void |
setHorizontalElasticity(int elasticity)
|
void |
setVerticalElasticity(int elasticity)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final Dimension zero
protected final Dimension max
protected int horizontalElasticity
protected int verticalElasticity
protected int h_count
protected int b_count
protected int v_count
Constructor Detail |
public JCSpring()
public JCSpring(int horizontal_elasticity, int vertical_elasticity)
horizontal_elasticity
- vertical_elasticity
- Method Detail |
public static com.klg.jclass.util.swing.JCSpring createHorizontalSpring()
public static com.klg.jclass.util.swing.JCSpring createHorizontalSpring(int elasticity)
elasticity
-
public static com.klg.jclass.util.swing.JCSpring createVerticalSpring()
public static com.klg.jclass.util.swing.JCSpring createVerticalSpring(int elasticity)
elasticity
-
public void setAbout(String s)
s
- public String getAbout()
public int getHorizontalElasticity()
JCElastic
getHorizontalElasticity
in interface JCElastic
public void setHorizontalElasticity(int elasticity)
public int getVerticalElasticity()
JCElastic
getVerticalElasticity
in interface JCElastic
public void setVerticalElasticity(int elasticity)
public Dimension getMinimumSize()
getMinimumSize
in class Component
public Dimension getPreferredSize()
getPreferredSize
in class Component
public Dimension getMaximumSize()
getMaximumSize
in class Component
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |