Package com.macrofocus.treemap
Class DefaultTreeMapPopup<Component>
- java.lang.Object
-
- com.macrofocus.treemap.DefaultTreeMapPopup<Component>
-
- All Implemented Interfaces:
TreeMapPopup<Component>
public class DefaultTreeMapPopup<Component> extends java.lang.Object implements TreeMapPopup<Component>
An implementation of a popup window using straight painting.
-
-
Constructor Summary
Constructors Constructor Description DefaultTreeMapPopup(TreeMapView<Component,?,?,?,?,?> view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Point
getLocation()
Returns the position of the popup.void
hidePopup()
Hides the popup.void
repaint()
Repaints the owner of the popup.void
showPopup(int x, int y, Component owner)
Shows the popup at the specified x and y coordinates.
-
-
-
Constructor Detail
-
DefaultTreeMapPopup
public DefaultTreeMapPopup(TreeMapView<Component,?,?,?,?,?> view)
-
-
Method Detail
-
showPopup
public void showPopup(int x, int y, Component owner)
Description copied from interface:TreeMapPopup
Shows the popup at the specified x and y coordinates.- Specified by:
showPopup
in interfaceTreeMapPopup<Component>
- Parameters:
x
- the x position. It is screen position.y
- the y position. It is screen position.owner
- the popup window's owner
-
hidePopup
public void hidePopup()
Description copied from interface:TreeMapPopup
Hides the popup.- Specified by:
hidePopup
in interfaceTreeMapPopup<Component>
-
repaint
public void repaint()
Description copied from interface:TreeMapPopup
Repaints the owner of the popup.- Specified by:
repaint
in interfaceTreeMapPopup<Component>
-
getLocation
public java.awt.Point getLocation()
Description copied from interface:TreeMapPopup
Returns the position of the popup.- Specified by:
getLocation
in interfaceTreeMapPopup<Component>
- Returns:
- the position of the popup
-
-