public class CornerMenu extends Object
CornerMenu is a menu is intended to be placed in one of the four corners of a pane. It will show the provided menu items in a 90 degree arc with the origin in the corner. It is possible to, and per default will, animate the menu items in and out of view. The showing and hiding of the menu items can be done automatically based on the mouse pointer location.
CornerMenu requires a Pane to attach itself to.
CornerMenu uses CircularPane and this will leak through in the API. For example: it is possible to customize the animation, and required interface to implement is the one from CircularPane.
| Type | Property and Description |
|---|---|
ObjectProperty<Duration> |
animationDuration
animationDuration
|
ObjectProperty<jfxtras.scene.layout.CircularPane.AnimationInterpolation> |
animationInterpolation
animationInterpolation: calculate the position of a node during the animation (default: move from origin), use node.relocate to position node (or manually apply layoutBounds.minX/Y)
|
BooleanProperty |
autoShowAndHide
AutoShowAndHide:
|
ReadOnlyObjectProperty<CornerMenu.Location> |
location
Location: TOP_LEFT, TOP_RIGHT, BOTTOM_RIGHT, BOTTOM_LEFT
|
ReadOnlyBooleanProperty |
shown
shown
|
| Modifier and Type | Class and Description |
|---|---|
static class |
CornerMenu.Location |
| Constructor and Description |
|---|
CornerMenu(CornerMenu.Location location,
Pane pane,
boolean shown) |
| Modifier and Type | Method and Description |
|---|---|
ObjectProperty<Duration> |
animationDurationProperty()
animationDuration
|
ObjectProperty<jfxtras.scene.layout.CircularPane.AnimationInterpolation> |
animationInterpolationProperty()
animationInterpolation: calculate the position of a node during the animation (default: move from origin), use node.relocate to position node (or manually apply layoutBounds.minX/Y)
|
BooleanProperty |
autoShowAndHideProperty()
AutoShowAndHide:
|
Duration |
getAnimationDuration() |
jfxtras.scene.layout.CircularPane.AnimationInterpolation |
getAnimationInterpolation() |
ObservableList<MenuItem> |
getItems() |
CornerMenu.Location |
getLocation() |
void |
hide() |
Boolean |
isAutoShowAndHide() |
boolean |
isShown() |
ReadOnlyObjectProperty<CornerMenu.Location> |
locationProperty()
Location: TOP_LEFT, TOP_RIGHT, BOTTOM_RIGHT, BOTTOM_LEFT
|
void |
removeFromPane() |
void |
setAnimationDuration(Duration value) |
void |
setAnimationInterpolation(jfxtras.scene.layout.CircularPane.AnimationInterpolation value) |
void |
setAutoShowAndHide(Boolean value) |
void |
show() |
ReadOnlyBooleanProperty |
shownProperty()
shown
|
CornerMenu |
withAnimationDuration(Duration value) |
CornerMenu |
withAnimationInterpolation(jfxtras.scene.layout.CircularPane.AnimationInterpolation value) |
CornerMenu |
withAutoShowAndHide(Boolean value) |
public ReadOnlyObjectProperty<CornerMenu.Location> locationProperty
Location: TOP_LEFT, TOP_RIGHT, BOTTOM_RIGHT, BOTTOM_LEFT
getLocation()public BooleanProperty autoShowAndHideProperty
AutoShowAndHide:
isAutoShowAndHide(),
setAutoShowAndHide(Boolean)public final ReadOnlyBooleanProperty shownProperty
shown
isShown()public ObjectProperty<Duration> animationDurationProperty
animationDuration
public ObjectProperty<jfxtras.scene.layout.CircularPane.AnimationInterpolation> animationInterpolationProperty
animationInterpolation: calculate the position of a node during the animation (default: move from origin), use node.relocate to position node (or manually apply layoutBounds.minX/Y)
getAnimationInterpolation(),
#setAnimationInterpolation(AnimationInterpolation)public CornerMenu(CornerMenu.Location location, Pane pane, boolean shown)
public ReadOnlyObjectProperty<CornerMenu.Location> locationProperty()
Location: TOP_LEFT, TOP_RIGHT, BOTTOM_RIGHT, BOTTOM_LEFT
getLocation()public CornerMenu.Location getLocation()
public final ObservableList<MenuItem> getItems()
public BooleanProperty autoShowAndHideProperty()
AutoShowAndHide:
isAutoShowAndHide(),
setAutoShowAndHide(Boolean)public Boolean isAutoShowAndHide()
public void setAutoShowAndHide(Boolean value)
public CornerMenu withAutoShowAndHide(Boolean value)
public final ReadOnlyBooleanProperty shownProperty()
shown
isShown()public final boolean isShown()
public ObjectProperty<Duration> animationDurationProperty()
animationDuration
public Duration getAnimationDuration()
public void setAnimationDuration(Duration value)
public CornerMenu withAnimationDuration(Duration value)
public ObjectProperty<jfxtras.scene.layout.CircularPane.AnimationInterpolation> animationInterpolationProperty()
animationInterpolation: calculate the position of a node during the animation (default: move from origin), use node.relocate to position node (or manually apply layoutBounds.minX/Y)
getAnimationInterpolation(),
#setAnimationInterpolation(AnimationInterpolation)public jfxtras.scene.layout.CircularPane.AnimationInterpolation getAnimationInterpolation()
public void setAnimationInterpolation(jfxtras.scene.layout.CircularPane.AnimationInterpolation value)
public CornerMenu withAnimationInterpolation(jfxtras.scene.layout.CircularPane.AnimationInterpolation value)
public void show()
public void hide()
public void removeFromPane()