Class AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>

java.lang.Object
io.guise.framework.event.MouseAdapter
io.guise.framework.component.AbstractComponent.AbstractFlyoverStrategy<S>
io.guise.framework.component.AbstractComponent.AbstractFlyoverFrameStrategy<S>
Type Parameters:
S - The type of component for which this object is to control flyovers.
All Implemented Interfaces:
Component.FlyoverStrategy<S>, GuiseEventListener, MouseListener, EventListener
Direct Known Subclasses:
AbstractComponent.DefaultFlyoverStrategy
Enclosing class:
AbstractComponent

public abstract static class AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component> extends AbstractComponent.AbstractFlyoverStrategy<S>
An abstract flyover strategy that uses flyover frames.
Author:
Garret Wilson
  • Constructor Details

    • AbstractFlyoverFrameStrategy

      public AbstractFlyoverFrameStrategy(S component)
      Component constructor.
      Parameters:
      component - The component for which this object will control flyovers.
      Throws:
      NullPointerException - if the given component is null.
  • Method Details

    • openFlyover

      public void openFlyover()
      Shows a flyover for the component.

      This implementation creates a flyover frame if necessary and then opens the frame.

      See Also:
    • closeFlyover

      public void closeFlyover()
      Closes the flyover for the component.

      This implementation closes any open flyover frame.

    • createFrame

      protected abstract FlyoverFrame createFrame()
      Returns:
      A new frame for displaying flyover information.