Class PathElement2dfx

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javafx.beans.property.ReadOnlyBooleanWrapper isEmpty
      Is Empty property.
      protected Point2dfx to
      Target point.
      protected PathElementType type
      Type of the element.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      javafx.beans.property.DoubleProperty ctrlX1Property()
      Replies the property for the x coordinate of the first control point.
      javafx.beans.property.DoubleProperty ctrlX2Property()
      Replies the property for the x coordinate of the second control point.
      javafx.beans.property.DoubleProperty ctrlY1Property()
      Replies the property for the y coordinate of the first control point.
      javafx.beans.property.DoubleProperty ctrlY2Property()
      Replies the property for the y coordinate of the second control point.
      abstract boolean equals​(Object obj)  
      abstract javafx.beans.property.DoubleProperty fromXProperty()
      Replies the property for the x coordinate of the starting point.
      abstract javafx.beans.property.DoubleProperty fromYProperty()
      Replies the property for the y coordinate of the starting point.
      double getCtrlX1()
      Replies the x coordinate of the first control point.
      double getCtrlX2()
      Replies the x coordinate of the second control point.
      double getCtrlY1()
      Replies the y coordinate of the first control point.
      double getCtrlY2()
      Replies the y coordinate of the second control point.
      boolean getLargeArcFlag()
      Replies if the arc-to will sweep clockwise around the ellipse.
      double getRadiusX()
      Replies the x radius of the arc-to ellipse.
      double getRadiusY()
      Replies the y radius of the arc-to ellipse.
      double getRotationX()
      Replies the rotation of the x axis of the arc-to ellipse.
      boolean getSweepFlag()
      Replies if the arc-to will sweep the long way around the ellipse.
      double getToX()
      Replies the x coordinate of the target point.
      double getToY()
      Replies the y coordinate of the target point.
      PathElementType getType()
      Replies the type of the element.
      abstract int hashCode()  
      boolean isEmpty()
      Replies if the element is empty, ie. the points are the same.
      abstract javafx.beans.property.BooleanProperty isEmptyProperty()
      Replies the property that indicates if this patth element is empty.
      javafx.beans.property.BooleanProperty largeArcFlagProperty()
      Replies the property for the large ellipse arc flag.
      javafx.beans.property.DoubleProperty radiusXProperty()
      Replies the property for the radius along the x axis.
      javafx.beans.property.DoubleProperty radiusYProperty()
      Replies the property for the radius along the y axis.
      javafx.beans.property.DoubleProperty rotationXProperty()
      Replies the property for the rotation of the x axis.
      javafx.beans.property.BooleanProperty sweepFlagProperty()
      Replies the property for the sweep ellipse arc flag.
      abstract javafx.beans.property.DoubleProperty[] toArray()
      Copy the coords into an array, except the source point.
      abstract void toArray​(javafx.beans.property.DoubleProperty[] array)
      Copy the coords into the given array, except the source point.
      String toString()  
      javafx.beans.property.DoubleProperty toXProperty()
      Replies the property for the x coordinate of the target point.
      javafx.beans.property.DoubleProperty toYProperty()
      Replies the property for the y coordinate of the target point.
    • Field Detail

      • isEmpty

        protected javafx.beans.property.ReadOnlyBooleanWrapper isEmpty
        Is Empty property.
    • Constructor Detail

      • PathElement2dfx

        PathElement2dfx​(PathElementType type,
                        javafx.beans.property.DoubleProperty tox,
                        javafx.beans.property.DoubleProperty toy)
        Constructor.
        Parameters:
        type - is the type of the element.
        tox - the x coordinate of the target point.
        toy - the x coordinate of the target point.
      • PathElement2dfx

        PathElement2dfx​(PathElementType type,
                        Point2dfx toPoint)
        Constructor by setting the destination point.
        Parameters:
        type - is the type of the element.
        toPoint - the point to set as the target point.
    • Method Detail

      • equals

        @Pure
        public abstract boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        @Pure
        public abstract int hashCode()
        Overrides:
        hashCode in class Object
      • isEmptyProperty

        public abstract javafx.beans.property.BooleanProperty isEmptyProperty()
        Replies the property that indicates if this patth element is empty.
        Returns:
        the isEmpty property.
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: PathElement2D
        Replies if the element is empty, ie. the points are the same.
        Specified by:
        isEmpty in interface PathElement2D
        Returns:
        true if the points are the same; otherwise false.
      • getToX

        @Pure
        public final double getToX()
        Description copied from interface: PathElement2afp
        Replies the x coordinate of the target point.
        Specified by:
        getToX in interface PathElement2afp
        Returns:
        the x coordinate.
      • getToY

        @Pure
        public final double getToY()
        Description copied from interface: PathElement2afp
        Replies the y coordinate of the target point.
        Specified by:
        getToY in interface PathElement2afp
        Returns:
        the y coordinate.
      • fromXProperty

        @Pure
        public abstract javafx.beans.property.DoubleProperty fromXProperty()
        Replies the property for the x coordinate of the starting point.
        Returns:
        the x coordinate, or null if the type is PathElementType.MOVE_TO.
      • fromYProperty

        @Pure
        public abstract javafx.beans.property.DoubleProperty fromYProperty()
        Replies the property for the y coordinate of the starting point.
        Returns:
        the y coordinate, or null if the type is PathElementType.MOVE_TO.
      • toXProperty

        @Pure
        public javafx.beans.property.DoubleProperty toXProperty()
        Replies the property for the x coordinate of the target point.
        Returns:
        the x coordinate.
      • toYProperty

        @Pure
        public javafx.beans.property.DoubleProperty toYProperty()
        Replies the property for the y coordinate of the target point.
        Returns:
        the y coordinate.
      • toArray

        @Pure
        public abstract void toArray​(javafx.beans.property.DoubleProperty[] array)
        Copy the coords into the given array, except the source point.
        Parameters:
        array - the output array.
      • toArray

        @Pure
        public abstract javafx.beans.property.DoubleProperty[] toArray()
        Copy the coords into an array, except the source point.
        Returns:
        the array of the points, except the source point.
      • getSweepFlag

        public boolean getSweepFlag()
        Description copied from interface: PathElement2afp
        Replies if the arc-to will sweep the long way around the ellipse.
        Specified by:
        getSweepFlag in interface PathElement2afp
        Returns:
        true iff the element will sweep clockwise around the ellipse, or 0 if the type is not PathElementType.ARC_TO.
      • getLargeArcFlag

        public boolean getLargeArcFlag()
        Description copied from interface: PathElement2afp
        Replies if the arc-to will sweep clockwise around the ellipse.
        Specified by:
        getLargeArcFlag in interface PathElement2afp
        Returns:
        true iff the element will sweep clockwise around the ellipse, or 0 if the type is not PathElementType.ARC_TO.
      • radiusXProperty

        @Pure
        public javafx.beans.property.DoubleProperty radiusXProperty()
        Replies the property for the radius along the x axis.
        Returns:
        the x radius, or null if the type is not PathElementType.ARC_TO.
      • radiusYProperty

        @Pure
        public javafx.beans.property.DoubleProperty radiusYProperty()
        Replies the property for the radius along the y axis.
        Returns:
        the y radius, or null if the type is not PathElementType.ARC_TO.
      • rotationXProperty

        @Pure
        public javafx.beans.property.DoubleProperty rotationXProperty()
        Replies the property for the rotation of the x axis.
        Returns:
        the x-axis rotation, or null if the type is not PathElementType.ARC_TO.
      • largeArcFlagProperty

        @Pure
        public javafx.beans.property.BooleanProperty largeArcFlagProperty()
        Replies the property for the large ellipse arc flag.
        Returns:
        the flag, or null if the type is not PathElementType.ARC_TO.
      • sweepFlagProperty

        @Pure
        public javafx.beans.property.BooleanProperty sweepFlagProperty()
        Replies the property for the sweep ellipse arc flag.
        Returns:
        the flag, or null if the type is not PathElementType.ARC_TO.