Package com.treemap.swing
Class SwingTreeMapToolTip<N,Row,Column>
java.lang.Object
com.treemap.AbstractTreeMapToolTip<N,Row,Column,JComponent,Color,Font>
com.treemap.swing.SwingTreeMapToolTip<N,Row,Column>
- Type Parameters:
N-
- All Implemented Interfaces:
TreeMapToolTip<N,Row, Column, Color, Font>
public class SwingTreeMapToolTip<N,Row,Column>
extends AbstractTreeMapToolTip<N,Row,Column,JComponent,Color,Font>
Default implementation of a tooltip using JidePopup as a container.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.treemap.TreeMapToolTip
TreeMapToolTip.ToolTipType -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TreeMapPopupCreates a popup.intcom.macrofocus.geom.PointGets the preferred location of the tooltip relative to the TreeMapView.getType()Gets the type of tooltip.intgetWidth()voidPaints the background of the tooltip.voidvoidsetRedispatchMouseEvent(boolean redispatchMouseEvent) Controls whether the mouse event on the tooltip should be redispatched to the TreeMapView.voidvoidSets the type of the tooltip.voidsetVisible(boolean visible) voidShows the current node that the tooltip should display information about.Methods inherited from class com.treemap.AbstractTreeMapToolTip
getBorderColor, getInsets, getNode, getPopup, getPopupLocation, getPreferredLocation, getPreferredSize, getPreferredWidth, getRenderer, getView, hidePopup, paintText, setNode, setPreferredWidth, setRenderer, showPopup
-
Constructor Details
-
SwingTreeMapToolTip
-
-
Method Details
-
setRedispatchMouseEvent
public void setRedispatchMouseEvent(boolean redispatchMouseEvent) Controls whether the mouse event on the tooltip should be redispatched to the TreeMapView.- Parameters:
redispatchMouseEvent- true to redispatch all the mouse events, false otherwise.
-
setBorder
-
setVisible
public void setVisible(boolean visible) -
setSize
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getNativeComponent
-
paintBackground
Paints the background of the tooltip.- Specified by:
paintBackgroundin interfaceTreeMapToolTip<N,Row, Column, Color, Font> - Overrides:
paintBackgroundin classAbstractTreeMapToolTip<N,Row, Column, JComponent, Color, Font> - Parameters:
g- a Graphis2D object.
-
getPreferredLocation
public com.macrofocus.geom.Point getPreferredLocation()Gets the preferred location of the tooltip relative to the TreeMapView.- Returns:
- the preferred location
-
getType
Gets the type of tooltip.- Returns:
- the type of the tooltip.
-
setType
Sets the type of the tooltip.- Parameters:
type- the tooltip type.
-
showNode
Description copied from interface:TreeMapToolTipShows the current node that the tooltip should display information about.- Specified by:
showNodein interfaceTreeMapToolTip<N,Row, Column, Color, Font> - Overrides:
showNodein classAbstractTreeMapToolTip<N,Row, Column, JComponent, Color, Font> - Parameters:
node- the node to dislay information about.
-
createPopup
Creates a popup.- Overrides:
createPopupin classAbstractTreeMapToolTip<N,Row, Column, JComponent, Color, Font> - Returns:
- a JidePopup component.
-