|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.jidesoft.treemap.TreeMapToolTip<N>
com.jidesoft.treemap.DefaultTreeMapToolTip<N>
N - public class DefaultTreeMapToolTip<N>
Default implementation of a tooltip using JidePopup as a container.
| Nested Class Summary | |
|---|---|
protected class |
DefaultTreeMapToolTip.MouseRedispatcher
|
| Nested classes/interfaces inherited from class com.jidesoft.treemap.TreeMapToolTip |
|---|
TreeMapToolTip.ToolTipType |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
DefaultTreeMapToolTip(TreeMapView<N> view)
|
|
| Method Summary | |
|---|---|
protected JidePopup |
createPopup()
Creates a popup. |
Border |
getBorder()
|
N |
getNode()
Gets the current node that the tooltip should display information about. |
JidePopup |
getPopup()
Gets the popup or create one if one doesn't exist yet. |
Point |
getPreferredLocation()
Gets the preferred location of the tooltip relative to the TreeMapView. |
Point |
getPreferredLocation(Point p)
Gets the preferred location of the tooltip relative to the TreeMapView. |
Dimension |
getPreferredSize()
|
int |
getPreferredWidth()
Gets the preferred width of the tooltip. |
ToolTipTreeMapRenderer |
getRenderer()
|
TreeMapToolTip.ToolTipType |
getType()
Gets the type of tooltip. |
protected TreeMapView<N> |
getView()
Gets the view associated with this tooltip. |
protected void |
hidePopup()
Hides the popup. |
protected void |
paintBackground(Graphics2D g)
Paints the background of the tooltip. |
void |
paintComponent(Graphics g)
|
protected void |
paintText(Graphics2D g)
Paints the values and the labels of the tooltip. |
void |
setNode(N node)
Sets the current node that the tooltip should display information about. |
void |
setPreferredWidth(int width)
Sets the preferred width of the tooltip. |
void |
setRedispatchMouseEvent(boolean redispatchMouseEvent)
Controls whether the mouse event on the tooltip should be redispatched to the TreeMapView. |
void |
setRenderer(ToolTipTreeMapRenderer renderer)
|
void |
setType(TreeMapToolTip.ToolTipType type)
Sets the type of the tooltip. |
protected void |
showPopup(int x,
int y)
Shows the popup at the specified x and y coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTreeMapToolTip(TreeMapView<N> view)
| Method Detail |
|---|
public void setRedispatchMouseEvent(boolean redispatchMouseEvent)
redispatchMouseEvent - true to redispatch all the mouse events, false otherwise.public void paintComponent(Graphics g)
paintComponent in class JComponentprotected void paintText(Graphics2D g)
g - a Graphics2D object.protected void paintBackground(Graphics2D g)
g - a Graphis2D object.public Border getBorder()
getBorder in class JComponentprotected TreeMapView<N> getView()
public ToolTipTreeMapRenderer getRenderer()
public void setRenderer(ToolTipTreeMapRenderer renderer)
public N getNode()
getNode in class TreeMapToolTip<N>public void setNode(N node)
setNode in class TreeMapToolTip<N>node - the node to dislay information about.public Point getPreferredLocation()
getPreferredLocation in class TreeMapToolTip<N>public Point getPreferredLocation(Point p)
p - the position of the mouse.
public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic TreeMapToolTip.ToolTipType getType()
getType in class TreeMapToolTip<N>public void setType(TreeMapToolTip.ToolTipType type)
setType in class TreeMapToolTip<N>type - the tooltip type.public int getPreferredWidth()
getPreferredWidth in class TreeMapToolTip<N>public void setPreferredWidth(int width)
setPreferredWidth in class TreeMapToolTip<N>width - the preferred width.public JidePopup getPopup()
protected void showPopup(int x,
int y)
x - the x position. It is screen position.y - the y position. It is screen position.protected void hidePopup()
protected JidePopup createPopup()
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||