Class PathElement2dfx.LinePathElement2dfx

    • Constructor Detail

      • LinePathElement2dfx

        LinePathElement2dfx​(javafx.beans.property.DoubleProperty fromx,
                            javafx.beans.property.DoubleProperty fromy,
                            javafx.beans.property.DoubleProperty tox,
                            javafx.beans.property.DoubleProperty toy)
        Constructor.
        Parameters:
        fromx - x coordinate of the origin point.
        fromy - y coordinate of the origin point.
        tox - x coordinate of the target point.
        toy - y coordinate of the target point.
      • LinePathElement2dfx

        LinePathElement2dfx​(Point2dfx fromPoint,
                            Point2dfx toPoint)
        Constructor bt setting.
        Parameters:
        fromPoint - the point to set as the origin point.
        toPoint - the point to set as the target point.
    • Method Detail

      • isEmptyProperty

        @Pure
        public javafx.beans.property.BooleanProperty isEmptyProperty()
        Description copied from class: PathElement2dfx
        Replies the property that indicates if this patth element is empty.
        Specified by:
        isEmptyProperty in class PathElement2dfx
        Returns:
        the isEmpty property.
      • isDrawable

        @Pure
        public boolean isDrawable()
        Description copied from interface: PathElement2D
        Replies if the element is not empty and is drawable.

        Only the path elements that may produce pixels on the screen must reply true in this function.

        Returns:
        true if the path element is drawable; otherwise false.
      • toArray

        @Pure
        public void toArray​(int[] array)
        Description copied from interface: PathElement2afp
        Copy the coords into the given array, except the source point.
        Parameters:
        array - the output array.
      • toArray

        @Pure
        public void toArray​(double[] array)
        Description copied from interface: PathElement2afp
        Copy the coords into the given array, except the source point.
        Parameters:
        array - the output array.
      • toArray

        @Pure
        public void toArray​(javafx.beans.property.DoubleProperty[] array)
        Description copied from class: PathElement2dfx
        Copy the coords into the given array, except the source point.
        Specified by:
        toArray in class PathElement2dfx
        Parameters:
        array - the output array.
      • toArray

        @Pure
        public javafx.beans.property.DoubleProperty[] toArray()
        Description copied from class: PathElement2dfx
        Copy the coords into an array, except the source point.
        Specified by:
        toArray in class PathElement2dfx
        Returns:
        the array of the points, except the source point.
      • getFromX

        @Pure
        public double getFromX()
        Description copied from interface: PathElement2afp
        Replies the x coordinate of the starting point.
        Returns:
        the x coordinate, or 0 if the type is PathElementType.MOVE_TO.
      • getFromY

        @Pure
        public double getFromY()
        Description copied from interface: PathElement2afp
        Replies the y coordinate of the starting point.
        Returns:
        the y coordinate, or 0 if the type is PathElementType.MOVE_TO.