类 DynamicChart

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
com.tlcsdm.core.javafx.chart.DynamicChart
所有已实现的接口:
javafx.css.Styleable, javafx.event.EventTarget
直接已知子类:
DynamicXYChart

public abstract class DynamicChart extends javafx.scene.layout.Region
Variation of the base class Chart that provides a simpler implementation with a tighter layout destined to plot multiple charts in a single window.
作者:
unknowIfGuestInDream
  • 属性概要

    属性
    类型
    属性
    说明
    protected final javafx.beans.property.ObjectProperty<javafx.scene.Node>
    The node to display as the Legend.

    从类继承的属性 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.scene.layout.Pane
    This is the Pane that Chart subclasses use to contain the chart content, It is sized to be inside the chart area leaving space for the title and legend.
    private final javafx.beans.property.ObjectProperty<javafx.scene.Node>
    The node to display as the Legend.
    private static final int
     
    private static final int
     

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

    USE_COMPUTED_SIZE, USE_PREF_SIZE

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

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • 构造器概要

    构造器
    构造器
    说明
    Creates a new default Chart instance.
  • 方法概要

    修饰符和类型
    方法
    说明
    private double
    boundedSize(double var0, double var2, double var4)
     
    protected double
    computeMinHeight(double width)
    Charts are sized outside in, user tells chart how much space it has and chart draws inside that.
    protected double
    computeMinWidth(double height)
    Charts are sized outside in, user tells chart how much space it has and chart draws inside that.
    protected double
    computePrefHeight(double width)
    Charts are sized outside in, user tells chart how much space it has and chart draws inside that.
    protected double
    computePrefWidth(double height)
    Charts are sized outside in, user tells chart how much space it has and chart draws inside that.
    protected javafx.collections.ObservableList<javafx.scene.Node>
    Modifiable and observable list of all content in the chart.
    protected final javafx.scene.Node
    获取legend属性的值。
    protected abstract void
    layoutChartChildren(double top, double left, double width, double height)
    Called to update and layout the chart children available from getChartChildren()
    protected void
    Invoked during the layout pass to layout this chart and all its content.
    protected final javafx.beans.property.ObjectProperty<javafx.scene.Node>
    The node to display as the Legend.
    protected void
    Call this when you know something has changed that needs the chart to be relayed out.
    protected final void
    setLegend(javafx.scene.Node value)
    设置legend属性的值。
    protected void
    updateLegendSizeBinding(javafx.scene.Node legend)
     

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

    backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, 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

    getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, 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, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, 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
  • 属性详细资料

    • legend

      protected final javafx.beans.property.ObjectProperty<javafx.scene.Node> legendProperty
      The node to display as the Legend. Subclasses can set a node here to be displayed on a side as the legend. If no legend is wanted then this can be set to null
      另请参阅:
  • 字段详细资料

    • MIN_WIDTH_TO_LEAVE_FOR_CHART_CONTENT

      private static final int MIN_WIDTH_TO_LEAVE_FOR_CHART_CONTENT
      另请参阅:
    • MIN_HEIGHT_TO_LEAVE_FOR_CHART_CONTENT

      private static final int MIN_HEIGHT_TO_LEAVE_FOR_CHART_CONTENT
      另请参阅:
    • chartContent

      private final javafx.scene.layout.Pane chartContent
      This is the Pane that Chart subclasses use to contain the chart content, It is sized to be inside the chart area leaving space for the title and legend.
    • legend

      private final javafx.beans.property.ObjectProperty<javafx.scene.Node> legend
      The node to display as the Legend. Subclasses can set a node here to be displayed on a side as the legend. If no legend is wanted then this can be set to null
  • 构造器详细资料

    • DynamicChart

      public DynamicChart()
      Creates a new default Chart instance.
  • 方法详细资料

    • getLegend

      protected final javafx.scene.Node getLegend()
      获取legend属性的值。
      属性说明:
      The node to display as the Legend. Subclasses can set a node here to be displayed on a side as the legend. If no legend is wanted then this can be set to null
      返回:
      legend 属性的值
      另请参阅:
    • setLegend

      protected final void setLegend(javafx.scene.Node value)
      设置legend属性的值。
      属性说明:
      The node to display as the Legend. Subclasses can set a node here to be displayed on a side as the legend. If no legend is wanted then this can be set to null
      参数:
      value - legend 属性的值
      另请参阅:
    • legendProperty

      protected final javafx.beans.property.ObjectProperty<javafx.scene.Node> legendProperty()
      The node to display as the Legend. Subclasses can set a node here to be displayed on a side as the legend. If no legend is wanted then this can be set to null
      返回:
      legend 属性
      另请参阅:
    • updateLegendSizeBinding

      protected void updateLegendSizeBinding(javafx.scene.Node legend)
    • getChartChildren

      protected javafx.collections.ObservableList<javafx.scene.Node> getChartChildren()
      Modifiable and observable list of all content in the chart. This is where implementations of Chart should add any nodes they use to draw their chart. This excludes the legend and title which are looked after by this class.
      返回:
      Observable list of plot children
    • requestChartLayout

      protected void requestChartLayout()
      Call this when you know something has changed that needs the chart to be relayed out.
    • layoutChartChildren

      protected abstract void layoutChartChildren(double top, double left, double width, double height)
      Called to update and layout the chart children available from getChartChildren()
      参数:
      top - The top offset from the origin to account for any padding on the chart content
      left - The left offset from the origin to account for any padding on the chart content
      width - The width of the area to layout the chart within
      height - The height of the area to layout the chart within
    • layoutChildren

      protected void layoutChildren()
      Invoked during the layout pass to layout this chart and all its content.
      覆盖:
      layoutChildren 在类中 javafx.scene.Parent
    • computeMinHeight

      protected double computeMinHeight(double width)
      Charts are sized outside in, user tells chart how much space it has and chart draws inside that. So minimum height is a constant 150.
      覆盖:
      computeMinHeight 在类中 javafx.scene.layout.Region
    • computeMinWidth

      protected double computeMinWidth(double height)
      Charts are sized outside in, user tells chart how much space it has and chart draws inside that. So minimum width is a constant 200.
      覆盖:
      computeMinWidth 在类中 javafx.scene.layout.Region
    • computePrefWidth

      protected double computePrefWidth(double height)
      Charts are sized outside in, user tells chart how much space it has and chart draws inside that. So preferred width is a constant 500.
      覆盖:
      computePrefWidth 在类中 javafx.scene.layout.Region
    • computePrefHeight

      protected double computePrefHeight(double width)
      Charts are sized outside in, user tells chart how much space it has and chart draws inside that. So preferred height is a constant 400.
      覆盖:
      computePrefHeight 在类中 javafx.scene.layout.Region
    • boundedSize

      private double boundedSize(double var0, double var2, double var4)