public class ToolTip extends PopupPanel implements java.awt.event.ActionListener
ToolTip object is used to display a "Tip" for a component.jp.kyasu.awt.KComponent#setToolTipText(java.awt.String),
KComponent.setToolTipText(jp.kyasu.graphics.Text),
KComponent.setToolTipVisual(jp.kyasu.graphics.Visualizable),
直列化された形式| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected java.awt.Component |
origin |
protected java.lang.String |
string |
protected Timer |
timer |
static java.awt.Color |
TOOLTIP_BACKGROUND_COLOR
The background color of the tooltip.
|
static int |
TOOLTIP_DELAY
The delay milliseconds to display a tooltip.
|
static java.awt.Color |
TOOLTIP_FOREGROUND_COLOR
The foreground color of the tooltip.
|
protected Visualizable |
visual |
protected int |
x |
protected int |
y |
popupWindowinsets, PanelInsets, PanelLayoutfocusTraversable| コンストラクタと説明 |
|---|
ToolTip(java.lang.String string)
Constructs a new tooltip with the specified string.
|
ToolTip(Text text)
Constructs a new tooltip with the specified text object.
|
ToolTip(Visualizable visual)
Constructs a new tooltip with the specified visual object.
|
ToolTip(Visualizable visual,
java.lang.String toolTipString)
Constructs a new tooltip with the specified visual object and string.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.lang.String |
getToolTipText()
Return the tooltip string.
|
Visualizable |
getToolTipVisual()
Return the visual object to display of this tooltip.
|
void |
hidePopup()
Hides the pop-up tooltip.
|
void |
paint(java.awt.Graphics g) |
void |
setPopupLocationHint(int x,
int y)
Informs the hint of the location for this pop-up tooltip.
|
void |
setToolTipText(java.lang.String string)
Sets the string to display of this tooltip.
|
void |
setToolTipText(Text text)
Sets the text object to display of this tooltip.
|
void |
setToolTipVisual(Visualizable visual)
Sets the visual object to display of this tooltip.
|
void |
setToolTipVisual(Visualizable visual,
java.lang.String toolTipText)
Sets the visual object to display of this tooltip.
|
protected void |
showPopup() |
void |
showPopup(java.awt.Component origin,
int x,
int y,
int delay)
Shows this pop-up tooltip at the x, y position relative to an
origin component after the specified delay milliseconds.
|
getFrame, showPopupaddNotify, bounds, disable, doLayout, enable, enable, getBounds, getFrame, getLocation, getMinimumSize, getPreferredSize, getSize, hide, insets, isDirectNotification, isFocusTraversable, layout, location, minimumSize, postOldEvent, preferredSize, repaintNow, requestFocus, reshape, setBounds, setEnabled, setFocusTraversable, setVisible, show, show, size, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMousePosition, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, list, list, locate, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected java.lang.String string
protected Visualizable visual
protected Timer timer
protected int x
protected int y
protected transient java.awt.Component origin
public static final int TOOLTIP_DELAY
public static final java.awt.Color TOOLTIP_FOREGROUND_COLOR
public static final java.awt.Color TOOLTIP_BACKGROUND_COLOR
public ToolTip(java.lang.String string)
string - the string to display of the tooltip.public ToolTip(Text text)
text - the text object to display of the tooltip.public ToolTip(Visualizable visual)
visual - the visual object to display of the tooltip.public ToolTip(Visualizable visual, java.lang.String toolTipString)
visual - the visual object to display of the tooltip.toolTipString - An additional tooltip string.public java.lang.String getToolTipText()
public Visualizable getToolTipVisual()
public void setToolTipText(java.lang.String string)
string - The string to display of this tooltip.public void setToolTipText(Text text)
text - The text object to display of this tooltip.public void setToolTipVisual(Visualizable visual)
visual - The visual object to display of this tooltip.public void setToolTipVisual(Visualizable visual, java.lang.String toolTipText)
visual - The visual object to display of this tooltip.toolTipText - An additional tooltip string.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed インタフェース内 java.awt.event.ActionListenerpublic void paint(java.awt.Graphics g)
paint クラス内 java.awt.Containerpublic void setPopupLocationHint(int x,
int y)
public void showPopup(java.awt.Component origin,
int x,
int y,
int delay)
origin - the component which defines the coordinate space.x - the x coordinate position to pop-up tooltip.y - the y coordinate position to pop-up tooltip.delay - the delay milliseconds.public void hidePopup()
hidePopup クラス内 PopupPanelprotected void showPopup()