Class Popup.PositionBehavior
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior.Adapter
net.dermetfan.gdx.scenes.scene2d.ui.Popup.PositionBehavior
- All Implemented Interfaces:
Popup.Behavior
- Direct Known Subclasses:
Popup.TooltipBehavior.TooltipPositionBehavior
sets the position of the popup in
show(Event, Popup)-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classoffsets the position by aligning it using the popup's sizestatic classposition aligned relative totargetstatic classThe position of the event if it is anInputEvent.static classoffsets the popup by a certain amountstatic classthe position of a pointerstatic interfacedetermines and applies a positionstatic classa Multiplexer for Positionsstatic classa preset positionNested classes/interfaces inherited from interface net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior
Popup.Behavior.Adapter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPosition(Popup.PositionBehavior.Position position) booleanMethods inherited from class net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior.Adapter
handle, hide
-
Constructor Details
-
PositionBehavior
- Parameters:
position- theposition
-
PositionBehavior
- Parameters:
positions- the Positions to create aPopup.PositionBehavior.PositionMultiplexerfor
-
-
Method Details
-
show
- Specified by:
showin interfacePopup.Behavior- Overrides:
showin classPopup.Behavior.Adapter- Parameters:
event- the Event to handlepopup- the popup which position to set- Returns:
true
-
getPosition
- Returns:
- the
position
-
setPosition
- Parameters:
position- thepositionto set
-