dog.gui
Class DGroup

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--dog.gui.DContainer
                    |
                    +--dog.gui.DGroup
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, Referential, java.io.Serializable

public class DGroup
extends DContainer

A container with an optional label.
If the label is set, the group shows a border.

See Also:
Serialized Form

Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
protected  int align
          The alignment of the label.
protected  java.awt.Insets insets
          The additional insets for this group.
protected  java.lang.String label
          The label.
 
Fields inherited from class dog.gui.DContainer
cancelButton, CENTER, defaultButton, EAST, NORTH, NORTHEAST, NORTHWEST, reference, SOUTH, SOUTHEAST, SOUTHWEST, tooltip, WEST
 
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
DGroup()
          Constructs a group with no label or border.
DGroup(java.lang.String label)
          Constructs a group with the specified label and centre alignment.
DGroup(java.lang.String label, int align)
          Constructs a bordered group with the specified label and alignment.
 
Method Summary
 int getAlign()
          Returns the label alignment.
 java.awt.Insets getInsets()
          Returns the insets of this group.
 java.lang.String getLabel()
          Returns this group's label.
 void paint(java.awt.Graphics g)
          Paints this component.
protected  java.lang.String paramString()
          Returns additional parameters about the component.
 void setAlign(int align)
          Sets the label alignment.
 void setInsets(java.awt.Insets insets)
          Sets the additional insets for this group.
 void setLabel(java.lang.String label)
          Sets this group's label.
 
Methods inherited from class dog.gui.DContainer
addImpl, addPropertyChangeListener, alignParamString, drawActiveButtonBorder, drawActiveOptionBorder, drawArrow, drawBorder, drawButtonBorder, drawCheckbox, drawDarkBorder, drawDefaultButtonBorder, drawDisabledBorder, drawDisabledCheckbox, drawDisabledOption, drawExpander, drawFocusBorder, drawImage, drawLabel, drawOption, drawOptionBorder, drawPressedBorder, getCancelButton, getComponent, getDefaultButton, getDefaultToolkit, getImage, getImage, getImage, getReference, getRootPane, getTooltip, isPreloadImages, processCancelAction, processDefaultAction, processEvent, processMouseEvent, processMouseMotionEvent, removePropertyChangeListener, setCancelButton, setDefaultButton, setEnabled, setPreloadImages, setReference, setTooltip, toString
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

align

protected int align
The alignment of the label.

label

protected java.lang.String label
The label.

insets

protected java.awt.Insets insets
The additional insets for this group.
Constructor Detail

DGroup

public DGroup()
Constructs a group with no label or border.

DGroup

public DGroup(java.lang.String label)
Constructs a group with the specified label and centre alignment.
Parameters:
label - the label to display

DGroup

public DGroup(java.lang.String label,
              int align)
Constructs a bordered group with the specified label and alignment.
Parameters:
label - the label to display
align - the alignment of the label (NORTH, NORTHEAST, NORTHWEST, SOUTH, SOUTHEAST, or SOUTHWEST)
Method Detail

getLabel

public java.lang.String getLabel()
Returns this group's label.
See Also:
setLabel(java.lang.String)

setLabel

public void setLabel(java.lang.String label)
Sets this group's label.
Parameters:
label - the desired label
See Also:
getLabel()

getAlign

public int getAlign()
Returns the label alignment.
See Also:
setAlign(int)

setAlign

public void setAlign(int align)
Sets the label alignment.
Parameters:
align - the alignment of the label (NORTH, NORTHEAST, NORTHWEST, SOUTH, SOUTHEAST, or SOUTHWEST)
See Also:
getAlign()

setInsets

public void setInsets(java.awt.Insets insets)
Sets the additional insets for this group.

getInsets

public java.awt.Insets getInsets()
Returns the insets of this group.
Overrides:
getInsets in class java.awt.Container

paint

public void paint(java.awt.Graphics g)
Paints this component.
Overrides:
paint in class java.awt.Container

paramString

protected java.lang.String paramString()
Description copied from class: DContainer
Returns additional parameters about the component.
Overrides:
paramString in class DContainer