Package com.treemap
Interface TreeMapToolTip<N,Row,Column,Color,Font>
- Type Parameters:
N-
- All Known Implementing Classes:
AbstractTreeMapToolTip,AbstractTreePlotToolTip,DefaultTreeMapToolTip,DefaultTreePlotToolTip,SwingTreeMapToolTip,SwingTreePlotToolTip
@JsType
public interface TreeMapToolTip<N,Row,Column,Color,Font>
This abstract class defines the method required to display tooltips in a TreeMapView.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintgetNode()Gets the current node that the tooltip should display information about.com.macrofocus.geom.Pointcom.macrofocus.geom.PointGets the preferred location of the tooltip relative to the TreeMapView.intGets the preferred width of the tooltip.getType()Gets the type of tooltip.intgetWidth()voidPaints the background of the tooltip.voidPaints the values and the labels of the tooltip.voidSets the current node that the tooltip should display information about.voidsetPreferredWidth(int width) Sets the preferred width of the tooltip.voidvoidSets the type of the tooltip.voidShows the current node that the tooltip should display information about.
-
Method Details
-
getPreferredSize
-
setSize
-
getWidth
int getWidth() -
getHeight
int getHeight() -
getPopupLocation
com.macrofocus.geom.Point getPopupLocation() -
getPreferredLocation
com.macrofocus.geom.Point getPreferredLocation()Gets the preferred location of the tooltip relative to the TreeMapView.- Returns:
- the preferred location
-
getType
TreeMapToolTip.ToolTipType getType()Gets the type of tooltip.- Returns:
- the type of the tooltip.
-
setType
Sets the type of the tooltip.- Parameters:
type- the tooltip type.
-
getNode
N getNode()Gets the current node that the tooltip should display information about.- Returns:
- the current node.
-
setNode
Sets the current node that the tooltip should display information about.- Parameters:
node- the node to dislay information about.
-
showNode
Shows the current node that the tooltip should display information about.- Parameters:
node- the node to dislay information about.
-
getPreferredWidth
int getPreferredWidth()Gets the preferred width of the tooltip.- Returns:
- the preferred width.
-
setPreferredWidth
void setPreferredWidth(int width) Sets the preferred width of the tooltip.- Parameters:
width- the preferred width.
-
paintBackground
Paints the background of the tooltip.- Parameters:
g- a Graphis2D object.
-
paintText
Paints the values and the labels of the tooltip.- Parameters:
g- a Graphics2D object.
-