|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.event.MouseAdapter
com.guiseframework.component.AbstractComponent.AbstractFlyoverStrategy<S>
S - The type of component for which this object is to control flyovers.public abstract static class AbstractComponent.AbstractFlyoverStrategy<S extends Component>
An abstract implementation of a strategy for showing and hiding flyovers in response to mouse events.
| Constructor Summary | |
|---|---|
AbstractComponent.AbstractFlyoverStrategy(S component)
Component constructor. |
|
| Method Summary | |
|---|---|
S |
getComponent()
|
Extent |
getExtent(Flow flow)
Returns the extent of the indicated flow. |
Extent |
getLineExtent()
Returns the extent of the line flow. |
Effect |
getOpenEffect()
|
Extent |
getPageExtent()
Returns the extent of the page flow. |
java.lang.String |
getStyleID()
|
java.math.BigDecimal |
getTetherBearing()
|
void |
mouseEntered(MouseEnterEvent mouseEvent)
Called when the mouse enters the target. |
void |
mouseExited(MouseExitEvent mouseEvent)
Called when the mouse exits the source. |
void |
setExtent(Flow flow,
Extent newExtent)
Sets the extent of a given flow. |
void |
setLineExtent(Extent newExtent)
Sets the extent of the line flow. |
void |
setOpenEffect(Effect newOpenEffect)
Sets the effect used for opening the flyover. |
void |
setPageExtent(Extent newExtent)
Sets the extent of the page flow. |
void |
setStyleID(java.lang.String newStyleID)
Identifies the style for the flyover component. |
void |
setTetherBearing(java.math.BigDecimal newTetherBearing)
Sets the bearing of the tether in relation to the frame. |
| Methods inherited from class com.guiseframework.event.MouseAdapter |
|---|
mouseClicked |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.guiseframework.component.Component.FlyoverStrategy |
|---|
closeFlyover, openFlyover |
| Methods inherited from interface com.guiseframework.event.MouseListener |
|---|
mouseClicked |
| Constructor Detail |
|---|
public AbstractComponent.AbstractFlyoverStrategy(S component)
component - The component for which this object will control flyovers.
java.lang.NullPointerException - if the given component is null.| Method Detail |
|---|
public S getComponent()
public Extent getExtent(Flow flow)
flow - The flow for which an extent should be returned.
public Extent getLineExtent()
getLineExtent in interface Component.FlyoverStrategy<S extends Component>null if no preferred extent has been specifiedpublic Extent getPageExtent()
getPageExtent in interface Component.FlyoverStrategy<S extends Component>null if no preferred extent has been specified
public void setExtent(Flow flow,
Extent newExtent)
flow - The flow for which the extent should be set.newExtent - The new requested extent of the flyover, or null there is no extent preference.
java.lang.NullPointerException - if the given flow is null.public void setLineExtent(Extent newExtent)
setLineExtent in interface Component.FlyoverStrategy<S extends Component>newExtent - The new requested extent of the flyover, or null there is no extent preference.public void setPageExtent(Extent newExtent)
setPageExtent in interface Component.FlyoverStrategy<S extends Component>newExtent - The new requested extent of the flyover, or null there is no extent preference.public java.lang.String getStyleID()
getStyleID in interface Component.FlyoverStrategy<S extends Component>null if there is no style ID.public void setStyleID(java.lang.String newStyleID)
setStyleID in interface Component.FlyoverStrategy<S extends Component>newStyleID - The style identifier of the flyover, or null if there is no style ID.public java.math.BigDecimal getTetherBearing()
public void setTetherBearing(java.math.BigDecimal newTetherBearing)
newTetherBearing - The new bearing of the tether in relation to the frame.
java.lang.NullPointerException - if the given bearing is null.
java.lang.IllegalArgumentException - if the given bearing is greater than 360.public Effect getOpenEffect()
getOpenEffect in interface Component.FlyoverStrategy<S extends Component>null if there is no open effect.public void setOpenEffect(Effect newOpenEffect)
setOpenEffect in interface Component.FlyoverStrategy<S extends Component>newEffect - The new effect used for opening the flyover, or null if there should be no open effect.Frame.OPEN_EFFECT_PROPERTYpublic void mouseEntered(MouseEnterEvent mouseEvent)
mouseEntered in interface MouseListenermouseEntered in class MouseAdaptermouseEvent - The event providing mouse informationComponent.FlyoverStrategy.openFlyover()public void mouseExited(MouseExitEvent mouseEvent)
mouseExited in interface MouseListenermouseExited in class MouseAdaptermouseEvent - The event providing mouse informationComponent.FlyoverStrategy.closeFlyover()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||