public final class MouseOptions extends Object
Camera
. To disable automatic handling of the mouse, set the
AutoHandleMouse
(get
/ set
)
property to false
. If you want to disable just certain mouse buttons, use the
HandledButtons
(get
/ set
)
property or the MouseOptions.setHandledButtons(MouseButtons, boolean)
method to turn off
handling of individual buttons.Modifier and Type | Method and Description |
---|---|
void |
addZoomComplete(EventHandler<EventArgs> value)
|
boolean |
getAnimateWhileHandling()
Gets whether or not mouse events will allow for animation to continue as they are
handled.
|
boolean |
getAutoHandleMouse()
Gets whether or not mouse events will be handled by the
Insight3D control
to allow for automatically controlling the scene's Camera with the
mouse. |
MouseButtons |
getHandledButtons()
Gets which of the
MouseButtons are being handled. |
boolean |
getPanning()
Gets whether holding down shift and dragging the mouse will pan across the surface
of the central body.
|
boolean |
getZooming()
Gets whether clicking and dragging the mouse will zoom to the defined area.
|
void |
removeZoomComplete(EventHandler<EventArgs> value)
|
void |
setAnimateWhileHandling(boolean value)
Sets whether or not mouse events will allow for animation to continue as they are
handled.
|
void |
setAutoHandleMouse(boolean value)
Sets whether or not mouse events will be handled by the
Insight3D control
to allow for automatically controlling the scene's Camera with the
mouse. |
void |
setHandledButtons(MouseButtons value)
Sets which of the
MouseButtons are being handled. |
void |
setHandledButtons(MouseButtons buttons,
boolean value)
Sets whether the specified
MouseButtons will be handled or not. |
void |
setPanning(boolean value)
Sets whether holding down shift and dragging the mouse will pan across the surface
of the central body.
|
void |
setZooming(boolean value)
Sets whether clicking and dragging the mouse will zoom to the defined area.
|
String |
toString()
Returns a string representation of the object.
|
public final boolean getAutoHandleMouse()
Insight3D control
to allow for automatically controlling the scene's Camera
with the
mouse.public final void setAutoHandleMouse(boolean value)
Insight3D control
to allow for automatically controlling the scene's Camera
with the
mouse.@Nonnull public final MouseButtons getHandledButtons()
MouseButtons
are being handled. The MouseButtons
enumeration allows combination of its member values. You can also call the
MouseOptions.setHandledButtons(MouseButtons, boolean)
method to set the handled
buttons.public final void setHandledButtons(@Nonnull MouseButtons value)
MouseButtons
are being handled. The MouseButtons
enumeration allows combination of its member values. You can also call the
MouseOptions.setHandledButtons(MouseButtons, boolean)
method to set the handled
buttons.public final void setHandledButtons(@Nonnull MouseButtons buttons, boolean value)
MouseButtons
will be handled or not. To turn off
mouse handling for all buttons, you can set the
AutoHandleMouse
(get
/ set
)
property to false
. The MouseButtons
enumeration allows
combination of its member values.buttons
- The MouseButtons
value to set.value
- true to set the specified buttons to be handled; otherwise, false.public final boolean getAnimateWhileHandling()
public final void setAnimateWhileHandling(boolean value)
public final boolean getZooming()
public final void setZooming(boolean value)
public final boolean getPanning()
public final void setPanning(boolean value)
public final void addZoomComplete(EventHandler<EventArgs> value)
Zooming
(get
/ set
)
property is set to true.value
- The handler.public final void removeZoomComplete(EventHandler<EventArgs> value)
Zooming
(get
/ set
)
property is set to true.value
- The handler.public String toString()
java.lang.Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())