JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.swing
Class JCBrace

java.lang.Object
  |
  +--java.awt.Component
        |
        +--com.klg.jclass.util.swing.JCBrace
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class JCBrace
extends Component

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.

See Also:
Serialized Form

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.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

orientation

protected int orientation

minimumSize

protected Dimension minimumSize

preferredSize

protected Dimension preferredSize

maximumSize

protected Dimension maximumSize
Constructor Detail

JCBrace

public JCBrace()
Default constructor. Creates a horizontal shape.


JCBrace

public JCBrace(Dimension minimum_size,
               Dimension preferred_size,
               Dimension maximum_size)
Creates a shape with the given constraints.

Parameters:
minimum_size - minimum size
preferred_size - preferred size
maximum_size - maximum size

JCBrace

public JCBrace(int length,
               int orientation)
Method Detail

createHorizontalBrace

public static com.klg.jclass.util.swing.JCBrace createHorizontalBrace(int width)
Creates a horizontal JCBrace with the specified width.

Parameters:
width -
Returns:

createVerticalBrace

public static com.klg.jclass.util.swing.JCBrace createVerticalBrace(int height)
Creates a vertical JCBrace with the specified width.

Parameters:
height -
Returns:

getOrientation

public int getOrientation()

setOrientation

public void setOrientation(int orientation)

getLength

public int getLength()

setLength

public void setLength(int length)

setAbout

public void setAbout(String s)
Provided for Beans property editors - has no effect.

Parameters:
s -

getAbout

public String getAbout()
Returns vendor information.

Returns:
vendor information

getMinimumSize

public Dimension getMinimumSize()
Returns the minimum size of the component.

Overrides:
getMinimumSize in class Component
Returns:
minimum size of the component

getPreferredSize

public Dimension getPreferredSize()
Returns the preferred size of the component.

Overrides:
getPreferredSize in class Component
Returns:
preferred size of the component

getMaximumSize

public Dimension getMaximumSize()
Returns the maximum size of the component.

Overrides:
getMaximumSize in class Component
Returns:
maximum size of the component

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