dog.gui
Class DTooltip

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--dog.gui.DContainer
                    |
                    +--dog.gui.DPopup
                          |
                          +--dog.gui.DTooltip
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, Referential, java.io.Serializable

public class DTooltip
extends DPopup

A multiline tooltip component.

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  java.lang.String label
          The tooltip label.
 
Fields inherited from class dog.gui.DPopup
ABOVE, BELOW, component, COMPONENT, componentWindow, fitMode, height, hideOnFocusLost, LEFT, MOVE, NONE, position, RESIZE, RIGHT, width
 
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
DTooltip(DRootPane root, java.lang.String label)
          Constructs a tooltip with the specified label.
 
Method Summary
 java.lang.String getLabel()
          Returns the text of this tooltip.
 java.awt.Dimension getMinimumSize()
          Returns the minimum size for this tooltip.
 java.awt.Dimension getPreferredSize()
          Returns the preferred size for this tooltip.
 java.lang.String getText()
          Returns the text of this tooltip.
 void paint(java.awt.Graphics g)
          Paints this tooltip.
 java.lang.String paramString()
          Returns the parameter string for this label.
 void setLabel(java.lang.String label)
          Sets the text of this tooltip.
 void setText(java.lang.String label)
          Sets the text of this tooltip.
 
Methods inherited from class dog.gui.DPopup
componentHidden, componentMoved, componentResized, componentShown, dispose, fit, getFont, getOffset, getOffset, paintBackground, processFocusEvent, processKeyEvent, setConstraints, setConstraints, setSize, setVisible
 
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, getInsets, getLayout, getListeners, getMaximumSize, 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, 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, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, 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, show, show, size, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

protected java.lang.String label
The tooltip label.
Constructor Detail

DTooltip

public DTooltip(DRootPane root,
                java.lang.String label)
Constructs a tooltip with the specified label.
Method Detail

getText

public java.lang.String getText()
Returns the text of this tooltip. This is an alias for getLabel().
See Also:
getLabel()

setText

public void setText(java.lang.String label)
Sets the text of this tooltip. This is an alias for setLabel().
See Also:
setLabel(java.lang.String)

getLabel

public java.lang.String getLabel()
Returns the text of this tooltip.
See Also:
setLabel(java.lang.String)

setLabel

public void setLabel(java.lang.String label)
Sets the text of this tooltip.
See Also:
getLabel()

getMinimumSize

public java.awt.Dimension getMinimumSize()
Returns the minimum size for this tooltip. The minimum size is calculated as the length of the longest word by the font height.
Overrides:
getMinimumSize in class java.awt.Container

getPreferredSize

public java.awt.Dimension getPreferredSize()
Returns the preferred size for this tooltip. The minimum size is calculated as the length of the longest line by the font height times the number of lines.
Overrides:
getPreferredSize in class java.awt.Container

paint

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

paramString

public java.lang.String paramString()
Returns the parameter string for this label.
Overrides:
paramString in class DContainer