public class Magnifier
extends javafx.scene.control.Control
<p> A control which allows the subsection of its content to be magnified when the mouse hovers over it. </p>
<p> Note : When the magnifier is activated mode, the contents inside this control are not accessible. </p>
<p> Example : <pre> <code>Magnifier magnifier = new Magnifier(); magnifier.setContent(someNode);</code> or <code>Magnifier magnifier = new Magnifier(someNode);</code> </pre>
Type | Property and Description |
---|---|
javafx.beans.property.BooleanProperty |
active
Controls the magnifier whether to activate or not.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
content
<p>
The content associated with the magnifier.
|
javafx.beans.property.DoubleProperty |
frameWidth
Property for setting the frame width of the circular viewer.
|
javafx.beans.property.DoubleProperty |
radius
Property for setting the radius of the circular viewer.
|
javafx.beans.property.BooleanProperty |
resizableOnScroll
Controls the magnifier whether to resize the viewer on mouse scroll or not.
|
javafx.beans.property.BooleanProperty |
scalableOnScroll
Controls the magnifier whether to scale the content on mouse scroll or not.
|
javafx.beans.property.DoubleProperty |
scaleFactor
Property for setting the scale factor to which the content need to be magnified.
|
javafx.beans.property.BooleanProperty |
scopeLinesVisible
Controls whether lines are displayed to show in the magnifier viewer.
|
javafx.beans.property.DoubleProperty |
scopeLineWidth
Property for setting the width of the scope lines that are visible in the circular viewer.
|
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
impl_traversalEngineProperty, needsLayoutProperty
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
Constructor and Description |
---|
Magnifier()
Creates a magnifier pane with empty content.
|
Magnifier(javafx.scene.Node node)
Creates a magnifier pane with the provided content.
|
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.BooleanProperty |
activeProperty()
Controls the magnifier whether to activate or not.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
contentProperty()
<p>
The content associated with the magnifier.
|
javafx.beans.property.DoubleProperty |
frameWidthProperty()
Property for setting the frame width of the circular viewer.
|
javafx.scene.Node |
getContent()
Gets the content of the magnifier.
|
double |
getFrameWidth()
Gets the value of the property frameWidth.
|
double |
getRadius()
Gets the value of the property radius.
|
double |
getScaleFactor()
Gets the value of the property scaleFactor.
|
double |
getScopeLineWidth()
Gets the value of the property scopeLineWidth.
|
java.lang.String |
getUserAgentStylesheet()
Return the path to the CSS file so things are setup right
|
boolean |
isActive()
Gets the value of the property active.
|
boolean |
isResizableOnScroll()
Gets the value of the property resizableOnScroll.
|
boolean |
isScalableOnScroll()
Gets the value of the property scalableOnScroll.
|
boolean |
isScopeLinesVisible()
Gets the value of the property scopeLinesVisible.
|
javafx.beans.property.DoubleProperty |
radiusProperty()
Property for setting the radius of the circular viewer.
|
javafx.beans.property.BooleanProperty |
resizableOnScrollProperty()
Controls the magnifier whether to resize the viewer on mouse scroll or not.
|
javafx.beans.property.BooleanProperty |
scalableOnScrollProperty()
Controls the magnifier whether to scale the content on mouse scroll or not.
|
javafx.beans.property.DoubleProperty |
scaleFactorProperty()
Property for setting the scale factor to which the content need to be magnified.
|
javafx.beans.property.BooleanProperty |
scopeLinesVisibleProperty()
Controls whether lines are displayed to show in the magnifier viewer.
|
javafx.beans.property.DoubleProperty |
scopeLineWidthProperty()
Property for setting the width of the scope lines that are visible in the circular viewer.
|
void |
setActive(boolean paramActivate)
Sets the value of the property active.
|
void |
setContent(javafx.scene.Node value)
Sets the content of the magnifier.
|
void |
setFrameWidth(double paramFrameWidth)
Sets the value of the property frameWidth.
|
void |
setRadius(double paramRadius)
Sets the value of the property radius.
|
void |
setResizableOnScroll(boolean paramResizableOnScroll)
Sets the value of the property resizableOnScroll.
|
void |
setScalableOnScroll(boolean paramScalableOnScroll)
Sets the value of the property scalableOnScroll.
|
void |
setScaleFactor(double paramScaleFactor)
Sets the value of the property scaleFactor.
|
void |
setScopeLinesVisible(boolean paramScopeLinesVisible)
Sets the value of the property scopeLinesVisible.
|
void |
setScopeLineWidth(double paramScopeLineWidth)
Sets the value of the property scopeLineWidth.
|
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, createDefaultSkin, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthProperty
getChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBounds
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
public final javafx.beans.property.DoubleProperty radiusProperty
Property for setting the radius of the circular viewer. The default value is 86.0D.
getRadius()
,
setRadius(double)
public final javafx.beans.property.DoubleProperty frameWidthProperty
Property for setting the frame width of the circular viewer. The default value is 5.5D.
getFrameWidth()
,
setFrameWidth(double)
public final javafx.beans.property.DoubleProperty scaleFactorProperty
Property for setting the scale factor to which the content need to be magnified. The default value is 3.0D.
getScaleFactor()
,
setScaleFactor(double)
public final javafx.beans.property.DoubleProperty scopeLineWidthProperty
Property for setting the width of the scope lines that are visible in the circular viewer. The default value is 1.5px.
getScopeLineWidth()
,
setScopeLineWidth(double)
public final javafx.beans.property.BooleanProperty scopeLinesVisibleProperty
Controls whether lines are displayed to show in the magnifier viewer. Default is false
.
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> contentProperty
<p> The content associated with the magnifier. </p>
getContent()
,
setContent(Node)
public final javafx.beans.property.BooleanProperty activeProperty
Controls the magnifier whether to activate or not.
<ul>
<li> true
Shows the magnified viewer on mouse over and does not allow to access the content inside the control.</li>
<li> false
Does not show the magnified viewer on mouse over and can access the content inside the control.</li>
</ul>
<p>Default value is true
</p>.
isActive()
,
setActive(boolean)
public final javafx.beans.property.BooleanProperty scalableOnScrollProperty
Controls the magnifier whether to scale the content on mouse scroll or not. Content is scaled only when the mouse is scrolled in
combination with CTRL key press.
<ul>
<li> true
Allows the content to scale when mouse is scrolled in combination with CTRL key press.</li>
<li> false
Does not allow the content to scale when mouse is scrolled.</li>
</ul>
<p>Default value is false
</p>.
isScalableOnScroll()
,
setScalableOnScroll(boolean)
public final javafx.beans.property.BooleanProperty resizableOnScrollProperty
Controls the magnifier whether to resize the viewer on mouse scroll or not. The viewer is resized only when the mouse is scrolled in
combination with ALT key press.
<ul>
<li> true
Allows the viewer to resize when mouse is scrolled in combination with ALT key press.</li>
<li> false
Does not allow the viewer to resize when mouse is scrolled.</li>
</ul>
<p>Default value is false
</p>.
public Magnifier()
Creates a magnifier pane with empty content.
public Magnifier(javafx.scene.Node node)
Creates a magnifier pane with the provided content.
public java.lang.String getUserAgentStylesheet()
Return the path to the CSS file so things are setup right
getUserAgentStylesheet
in class javafx.scene.layout.Region
public final javafx.beans.property.DoubleProperty radiusProperty()
Property for setting the radius of the circular viewer. The default value is 86.0D.
getRadius()
,
setRadius(double)
public final void setRadius(double paramRadius)
Sets the value of the property radius.
public final double getRadius()
Gets the value of the property radius.
public final javafx.beans.property.DoubleProperty frameWidthProperty()
Property for setting the frame width of the circular viewer. The default value is 5.5D.
getFrameWidth()
,
setFrameWidth(double)
public final void setFrameWidth(double paramFrameWidth)
Sets the value of the property frameWidth.
public final double getFrameWidth()
Gets the value of the property frameWidth.
public final javafx.beans.property.DoubleProperty scaleFactorProperty()
Property for setting the scale factor to which the content need to be magnified. The default value is 3.0D.
getScaleFactor()
,
setScaleFactor(double)
public final void setScaleFactor(double paramScaleFactor)
Sets the value of the property scaleFactor.
public final double getScaleFactor()
Gets the value of the property scaleFactor.
public final javafx.beans.property.DoubleProperty scopeLineWidthProperty()
Property for setting the width of the scope lines that are visible in the circular viewer. The default value is 1.5px.
getScopeLineWidth()
,
setScopeLineWidth(double)
public final void setScopeLineWidth(double paramScopeLineWidth)
Sets the value of the property scopeLineWidth.
public final double getScopeLineWidth()
Gets the value of the property scopeLineWidth.
public final javafx.beans.property.BooleanProperty scopeLinesVisibleProperty()
Controls whether lines are displayed to show in the magnifier viewer. Default is false
.
public final void setScopeLinesVisible(boolean paramScopeLinesVisible)
Sets the value of the property scopeLinesVisible.
public final boolean isScopeLinesVisible()
Gets the value of the property scopeLinesVisible.
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> contentProperty()
<p> The content associated with the magnifier. </p>
getContent()
,
setContent(Node)
public final void setContent(javafx.scene.Node value)
Sets the content of the magnifier.
public final javafx.scene.Node getContent()
Gets the content of the magnifier.
public final javafx.beans.property.BooleanProperty activeProperty()
Controls the magnifier whether to activate or not.
<ul>
<li> true
Shows the magnified viewer on mouse over and does not allow to access the content inside the control.</li>
<li> false
Does not show the magnified viewer on mouse over and can access the content inside the control.</li>
</ul>
<p>Default value is true
</p>.
isActive()
,
setActive(boolean)
public final void setActive(boolean paramActivate)
Sets the value of the property active.
public final boolean isActive()
Gets the value of the property active.
public final javafx.beans.property.BooleanProperty scalableOnScrollProperty()
Controls the magnifier whether to scale the content on mouse scroll or not. Content is scaled only when the mouse is scrolled in
combination with CTRL key press.
<ul>
<li> true
Allows the content to scale when mouse is scrolled in combination with CTRL key press.</li>
<li> false
Does not allow the content to scale when mouse is scrolled.</li>
</ul>
<p>Default value is false
</p>.
isScalableOnScroll()
,
setScalableOnScroll(boolean)
public final void setScalableOnScroll(boolean paramScalableOnScroll)
Sets the value of the property scalableOnScroll.
public final boolean isScalableOnScroll()
Gets the value of the property scalableOnScroll.
public final javafx.beans.property.BooleanProperty resizableOnScrollProperty()
Controls the magnifier whether to resize the viewer on mouse scroll or not. The viewer is resized only when the mouse is scrolled in
combination with ALT key press.
<ul>
<li> true
Allows the viewer to resize when mouse is scrolled in combination with ALT key press.</li>
<li> false
Does not allow the viewer to resize when mouse is scrolled.</li>
</ul>
<p>Default value is false
</p>.
public final void setResizableOnScroll(boolean paramResizableOnScroll)
Sets the value of the property resizableOnScroll.
public final boolean isResizableOnScroll()
Gets the value of the property resizableOnScroll.