com.samskivert.swing
Interface RadialMenu.Host

Enclosing class:
RadialMenu

public static interface RadialMenu.Host

The interface used to communicate back to the component that hosts this menu.


Method Summary
 Component getComponent()
          Returns the component on which we will be rendered.
 Rectangle getViewBounds()
          Requests the bounds of the visible region in which we'll be rendering the menu.
 void menuDeactivated(RadialMenu menu)
          Instructs the host component to stop rendering this menu because it has been popped down.
 void repaintRect(int x, int y, int width, int height)
          Requests that the appropriate region of the host be repainted.
 

Method Detail

getComponent

Component getComponent()
Returns the component on which we will be rendered.


getViewBounds

Rectangle getViewBounds()
Requests the bounds of the visible region in which we'll be rendering the menu. The menu will be constrained to fit within these bounds starting with a natural position around the supplied target bounds and adjusting minimally to fit.


repaintRect

void repaintRect(int x,
                 int y,
                 int width,
                 int height)
Requests that the appropriate region of the host be repainted.


menuDeactivated

void menuDeactivated(RadialMenu menu)
Instructs the host component to stop rendering this menu because it has been popped down.



Copyright © 2000-2008 Michael Bayne. All Rights Reserved.