类 ZoomImageView

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
com.tlcsdm.core.javafx.control.ZoomImageView
所有已实现的接口:
javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable

@DefaultProperty("image") public class ZoomImageView extends javafx.scene.control.Control
作者:
unknowIfGuestInDream
  • 属性概要

    属性
    类型
    属性
    说明
    final javafx.beans.property.ObjectProperty<javafx.scene.image.Image>
     
    final javafx.beans.property.DoubleProperty
    Sets the upper bounds for zoom operations.
    final javafx.beans.property.DoubleProperty
    Sets the upper bounds for zoom operations.
    final javafx.beans.property.DoubleProperty
    The page rotation in degrees.
    final javafx.beans.property.BooleanProperty
    A flag that controls whether we always want to show the entire page.
    final javafx.beans.property.BooleanProperty
    A flag used to control whether the view will include a toolbar with zoom, search, rotation controls.
    final javafx.beans.property.DoubleProperty
    The current zoom factor.

    从类继承的属性 javafx.scene.control.Control

    contextMenu, skin, tooltip

    从类继承的属性 javafx.scene.layout.Region

    background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width

    从类继承的属性 javafx.scene.Parent

    needsLayout

    从类继承的属性 javafx.scene.Node

    accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final javafx.beans.property.ObjectProperty<javafx.scene.image.Image>
     
    private final javafx.beans.property.DoubleProperty
    Sets the upper bounds for zoom operations.
    private final javafx.beans.property.DoubleProperty
    Sets the upper bounds for zoom operations.
    private final javafx.beans.property.DoubleProperty
    The page rotation in degrees.
    private final javafx.beans.property.BooleanProperty
    A flag that controls whether we always want to show the entire page.
    private final javafx.beans.property.BooleanProperty
    A flag used to control whether the view will include a toolbar with zoom, search, rotation controls.
    private final javafx.beans.property.DoubleProperty
    The current zoom factor.

    从类继承的字段 javafx.scene.layout.Region

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    从类继承的字段 javafx.scene.Node

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • 构造器概要

    构造器
    构造器
    说明
     
    ZoomImageView(javafx.scene.image.Image image)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected javafx.scene.control.Skin<?>
     
    javafx.scene.image.Image
    获取image属性的值。
    final double
    获取maxZoomFactor属性的值。
    final double
    获取minZoomFactor属性的值。
    final double
    获取pageRotation属性的值。
     
    final double
    获取zoomFactor属性的值。
    final javafx.beans.property.ObjectProperty<javafx.scene.image.Image>
     
    final boolean
    获取showAll属性的值。
    final boolean
    获取showToolBar属性的值。
    final javafx.beans.property.DoubleProperty
    Sets the upper bounds for zoom operations.
    final javafx.beans.property.DoubleProperty
    Sets the upper bounds for zoom operations.
    final javafx.beans.property.DoubleProperty
    The page rotation in degrees.
    final void
    Convenience method to rotate the generated image by -90 degrees.
    final void
    Convenience method to rotate the generated image by +90 degrees.
    void
    setImage(javafx.scene.image.Image image)
    设置image属性的值。
    final void
    setMaxZoomFactor(double maxZoomFactor)
    设置maxZoomFactor属性的值。
    final void
    setMinZoomFactor(double minZoomFactor)
    设置minZoomFactor属性的值。
    final void
    setPageRotation(double pageRotation)
    设置pageRotation属性的值。
    final void
    setShowAll(boolean showAll)
    设置showAll属性的值。
    final void
    setShowToolBar(boolean showToolBar)
    设置showToolBar属性的值。
    final void
    setZoomFactor(double zoomFactor)
    设置zoomFactor属性的值。
    final javafx.beans.property.BooleanProperty
    A flag that controls whether we always want to show the entire page.
    final javafx.beans.property.BooleanProperty
    A flag used to control whether the view will include a toolbar with zoom, search, rotation controls.
    final javafx.beans.property.DoubleProperty
    The current zoom factor.

    从类继承的方法 javafx.scene.control.Control

    computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty

    从类继承的方法 javafx.scene.layout.Region

    backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, 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, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty

    从类继承的方法 javafx.scene.Parent

    getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds

    从类继承的方法 javafx.scene.Node

    accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, 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, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, 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, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    从接口继承的方法 javafx.css.Styleable

    getStyleableNode
  • 属性详细资料

  • 字段详细资料

    • showToolBar

      private final javafx.beans.property.BooleanProperty showToolBar
      A flag used to control whether the view will include a toolbar with zoom, search, rotation controls.
    • maxZoomFactor

      private final javafx.beans.property.DoubleProperty maxZoomFactor
      Sets the upper bounds for zoom operations. The default value is "4".
    • minZoomFactor

      private final javafx.beans.property.DoubleProperty minZoomFactor
      Sets the upper bounds for zoom operations. The default value is "4".
    • zoomFactor

      private final javafx.beans.property.DoubleProperty zoomFactor
      The current zoom factor. The default value is "1".
    • image

      private final javafx.beans.property.ObjectProperty<javafx.scene.image.Image> image
    • showAll

      private final javafx.beans.property.BooleanProperty showAll
      A flag that controls whether we always want to show the entire page. If "true" then the page will be constantly resized to fit the viewport of the scroll pane in which it is showing. In this mode zooming is not possible.
    • pageRotation

      private final javafx.beans.property.DoubleProperty pageRotation
      The page rotation in degrees. Supported values are only "0", "90", "180", "270", "360", ... multiples of "90".
  • 构造器详细资料

    • ZoomImageView

      public ZoomImageView()
    • ZoomImageView

      public ZoomImageView(javafx.scene.image.Image image)
  • 方法详细资料

    • isShowToolBar

      public final boolean isShowToolBar()
      获取showToolBar属性的值。
      属性说明:
      A flag used to control whether the view will include a toolbar with zoom, search, rotation controls.
      返回:
      showToolBar 属性的值
      另请参阅:
    • showToolBarProperty

      public final javafx.beans.property.BooleanProperty showToolBarProperty()
      A flag used to control whether the view will include a toolbar with zoom, search, rotation controls.
      返回:
      showToolBar 属性
      另请参阅:
    • setShowToolBar

      public final void setShowToolBar(boolean showToolBar)
      设置showToolBar属性的值。
      属性说明:
      A flag used to control whether the view will include a toolbar with zoom, search, rotation controls.
      参数:
      showToolBar - showToolBar 属性的值
      另请参阅:
    • getMaxZoomFactor

      public final double getMaxZoomFactor()
      获取maxZoomFactor属性的值。
      属性说明:
      Sets the upper bounds for zoom operations. The default value is "4".
      返回:
      maxZoomFactor 属性的值
      另请参阅:
    • maxZoomFactorProperty

      public final javafx.beans.property.DoubleProperty maxZoomFactorProperty()
      Sets the upper bounds for zoom operations. The default value is "4".
      返回:
      maxZoomFactor 属性
      另请参阅:
    • setMaxZoomFactor

      public final void setMaxZoomFactor(double maxZoomFactor)
      设置maxZoomFactor属性的值。
      属性说明:
      Sets the upper bounds for zoom operations. The default value is "4".
      参数:
      maxZoomFactor - maxZoomFactor 属性的值
      另请参阅:
    • getMinZoomFactor

      public final double getMinZoomFactor()
      获取minZoomFactor属性的值。
      属性说明:
      Sets the upper bounds for zoom operations. The default value is "4".
      返回:
      minZoomFactor 属性的值
      另请参阅:
    • minZoomFactorProperty

      public final javafx.beans.property.DoubleProperty minZoomFactorProperty()
      Sets the upper bounds for zoom operations. The default value is "4".
      返回:
      minZoomFactor 属性
      另请参阅:
    • setMinZoomFactor

      public final void setMinZoomFactor(double minZoomFactor)
      设置minZoomFactor属性的值。
      属性说明:
      Sets the upper bounds for zoom operations. The default value is "4".
      参数:
      minZoomFactor - minZoomFactor 属性的值
      另请参阅:
    • getZoomFactor

      public final double getZoomFactor()
      获取zoomFactor属性的值。
      属性说明:
      The current zoom factor. The default value is "1".
      返回:
      zoomFactor 属性的值
      另请参阅:
    • zoomFactorProperty

      public final javafx.beans.property.DoubleProperty zoomFactorProperty()
      The current zoom factor. The default value is "1".
      返回:
      zoomFactor 属性
      另请参阅:
    • setZoomFactor

      public final void setZoomFactor(double zoomFactor)
      设置zoomFactor属性的值。
      属性说明:
      The current zoom factor. The default value is "1".
      参数:
      zoomFactor - zoomFactor 属性的值
      另请参阅:
    • imageProperty

      public final javafx.beans.property.ObjectProperty<javafx.scene.image.Image> imageProperty()
      返回:
      image 属性
      另请参阅:
    • setImage

      public void setImage(javafx.scene.image.Image image)
      设置image属性的值。
      属性说明:
      参数:
      image - image 属性的值
      另请参阅:
    • getImage

      public javafx.scene.image.Image getImage()
      获取image属性的值。
      属性说明:
      返回:
      image 属性的值
      另请参阅:
    • isShowAll

      public final boolean isShowAll()
      获取showAll属性的值。
      属性说明:
      A flag that controls whether we always want to show the entire page. If "true" then the page will be constantly resized to fit the viewport of the scroll pane in which it is showing. In this mode zooming is not possible.
      返回:
      showAll 属性的值
      另请参阅:
    • showAllProperty

      public final javafx.beans.property.BooleanProperty showAllProperty()
      A flag that controls whether we always want to show the entire page. If "true" then the page will be constantly resized to fit the viewport of the scroll pane in which it is showing. In this mode zooming is not possible.
      返回:
      showAll 属性
      另请参阅:
    • setShowAll

      public final void setShowAll(boolean showAll)
      设置showAll属性的值。
      属性说明:
      A flag that controls whether we always want to show the entire page. If "true" then the page will be constantly resized to fit the viewport of the scroll pane in which it is showing. In this mode zooming is not possible.
      参数:
      showAll - showAll 属性的值
      另请参阅:
    • getPageRotation

      public final double getPageRotation()
      获取pageRotation属性的值。
      属性说明:
      The page rotation in degrees. Supported values are only "0", "90", "180", "270", "360", ... multiples of "90".
      返回:
      pageRotation 属性的值
      另请参阅:
    • pageRotationProperty

      public final javafx.beans.property.DoubleProperty pageRotationProperty()
      The page rotation in degrees. Supported values are only "0", "90", "180", "270", "360", ... multiples of "90".
      返回:
      pageRotation 属性
      另请参阅:
    • setPageRotation

      public final void setPageRotation(double pageRotation)
      设置pageRotation属性的值。
      属性说明:
      The page rotation in degrees. Supported values are only "0", "90", "180", "270", "360", ... multiples of "90".
      参数:
      pageRotation - pageRotation 属性的值
      另请参阅:
    • rotateLeft

      public final void rotateLeft()
      Convenience method to rotate the generated image by -90 degrees.
    • rotateRight

      public final void rotateRight()
      Convenience method to rotate the generated image by +90 degrees.
    • createDefaultSkin

      protected javafx.scene.control.Skin<?> createDefaultSkin()
      覆盖:
      createDefaultSkin 在类中 javafx.scene.control.Control
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      覆盖:
      getUserAgentStylesheet 在类中 javafx.scene.layout.Region