public class CornerMenu
extends java.lang.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 |
---|---|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
animationDuration
|
javafx.beans.property.ObjectProperty<jfxtras.scene.layout.CircularPane.AnimationInterpolation> |
animationInterpolation
|
javafx.beans.property.BooleanProperty |
autoShowAndHide
|
javafx.beans.property.ReadOnlyObjectProperty<CornerMenu.Location> |
location
|
javafx.beans.property.ReadOnlyBooleanProperty |
shown
|
Modifier and Type | Class and Description |
---|---|
static class |
CornerMenu.Location |
Constructor and Description |
---|
CornerMenu(CornerMenu.Location location,
javafx.scene.layout.Pane pane,
boolean shown) |
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
animationDurationProperty()
|
javafx.beans.property.ObjectProperty<jfxtras.scene.layout.CircularPane.AnimationInterpolation> |
animationInterpolationProperty()
|
javafx.beans.property.BooleanProperty |
autoShowAndHideProperty()
|
javafx.util.Duration |
getAnimationDuration() |
jfxtras.scene.layout.CircularPane.AnimationInterpolation |
getAnimationInterpolation() |
javafx.collections.ObservableList<javafx.scene.control.MenuItem> |
getItems() |
CornerMenu.Location |
getLocation() |
void |
hide() |
java.lang.Boolean |
isAutoShowAndHide() |
boolean |
isShown() |
javafx.beans.property.ReadOnlyObjectProperty<CornerMenu.Location> |
locationProperty()
|
void |
removeFromPane() |
void |
setAnimationDuration(javafx.util.Duration value) |
void |
setAnimationInterpolation(jfxtras.scene.layout.CircularPane.AnimationInterpolation value) |
void |
setAutoShowAndHide(java.lang.Boolean value) |
void |
show() |
javafx.beans.property.ReadOnlyBooleanProperty |
shownProperty()
|
CornerMenu |
withAnimationDuration(javafx.util.Duration value) |
CornerMenu |
withAnimationInterpolation(jfxtras.scene.layout.CircularPane.AnimationInterpolation value) |
CornerMenu |
withAutoShowAndHide(java.lang.Boolean value) |
public javafx.beans.property.ReadOnlyObjectProperty<CornerMenu.Location> locationProperty
Location: TOP_LEFT, TOP_RIGHT, BOTTOM_RIGHT, BOTTOM_LEFT
getLocation()
public javafx.beans.property.BooleanProperty autoShowAndHideProperty
AutoShowAndHide:
isAutoShowAndHide()
,
setAutoShowAndHide(Boolean)
public final javafx.beans.property.ReadOnlyBooleanProperty shownProperty
shown
isShown()
public javafx.beans.property.ObjectProperty<javafx.util.Duration> animationDurationProperty
animationDuration
public javafx.beans.property.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, javafx.scene.layout.Pane pane, boolean shown)
public javafx.beans.property.ReadOnlyObjectProperty<CornerMenu.Location> locationProperty()
Location: TOP_LEFT, TOP_RIGHT, BOTTOM_RIGHT, BOTTOM_LEFT
getLocation()
public CornerMenu.Location getLocation()
public final javafx.collections.ObservableList<javafx.scene.control.MenuItem> getItems()
public javafx.beans.property.BooleanProperty autoShowAndHideProperty()
AutoShowAndHide:
isAutoShowAndHide()
,
setAutoShowAndHide(Boolean)
public java.lang.Boolean isAutoShowAndHide()
public void setAutoShowAndHide(java.lang.Boolean value)
public CornerMenu withAutoShowAndHide(java.lang.Boolean value)
public final javafx.beans.property.ReadOnlyBooleanProperty shownProperty()
shown
isShown()
public final boolean isShown()
public javafx.beans.property.ObjectProperty<javafx.util.Duration> animationDurationProperty()
animationDuration
public javafx.util.Duration getAnimationDuration()
public void setAnimationDuration(javafx.util.Duration value)
public CornerMenu withAnimationDuration(javafx.util.Duration value)
public javafx.beans.property.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()