|
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.JCBrace
An implementation of a component that participates in layout but has no view. It is called a "brace" since its main function is to reserve space for the purpose of controlling layout.
A brace usually has a minimum and preferred size that are equal, and an unlimited maximum size.
Nested Class Summary |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
HORIZONTAL
|
protected Dimension |
maximumSize
|
protected Dimension |
minimumSize
|
protected int |
orientation
|
protected Dimension |
preferredSize
|
static int |
VERTICAL
|
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 | |
JCBrace()
Default constructor. |
|
JCBrace(Dimension minimum_size,
Dimension preferred_size,
Dimension maximum_size)
Creates a shape with the given constraints. |
|
JCBrace(int length,
int orientation)
|
Method Summary | |
static com.klg.jclass.util.swing.JCBrace |
createHorizontalBrace(int width)
Creates a horizontal JCBrace with the specified width. |
static com.klg.jclass.util.swing.JCBrace |
createVerticalBrace(int height)
Creates a vertical JCBrace with the specified width. |
String |
getAbout()
Returns vendor information. |
int |
getLength()
|
Dimension |
getMaximumSize()
Returns the maximum size of the component. |
Dimension |
getMinimumSize()
Returns the minimum size of the component. |
int |
getOrientation()
|
Dimension |
getPreferredSize()
Returns the preferred size of the component. |
void |
setAbout(String s)
Provided for Beans property editors - has no effect. |
void |
setLength(int length)
|
void |
setOrientation(int orientation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int HORIZONTAL
public static final int VERTICAL
protected int orientation
protected Dimension minimumSize
protected Dimension preferredSize
protected Dimension maximumSize
Constructor Detail |
public JCBrace()
public JCBrace(Dimension minimum_size, Dimension preferred_size, Dimension maximum_size)
minimum_size
- minimum sizepreferred_size
- preferred sizemaximum_size
- maximum sizepublic JCBrace(int length, int orientation)
Method Detail |
public static com.klg.jclass.util.swing.JCBrace createHorizontalBrace(int width)
JCBrace
with the specified width.
width
-
public static com.klg.jclass.util.swing.JCBrace createVerticalBrace(int height)
JCBrace
with the specified width.
height
-
public int getOrientation()
public void setOrientation(int orientation)
public int getLength()
public void setLength(int length)
public void setAbout(String s)
s
- public String getAbout()
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 |