Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Shear

[13:7] extends: Transform

Wraps JavaFX Shear, a Transform that slants a node along the X and Y axes about a pivot point. A shear leaves the pivot fixed and shifts the rest of the node in proportion to its distance from the pivot, turning rectangles into parallelograms.

Methods

  • Shear (double X = 0.0, double Y = 0.0, double PivotX = 0.0, double PivotY = 0.0)

    Creates a new Shear with the given X and Y shear factors about an optional pivot point.

    • @p X is a double with the X shear factor (horizontal slant).
    • @p Y is a double with the Y shear factor (vertical slant).
    • @p PivotX is an optional double with the pivot X coordinate.
    • @p PivotY is an optional double with the pivot Y coordinate.
  • setX (double X)

    Sets the X shear factor.

    • @p X is a double with the new X shear factor.
    • @r this object
  • getX ()

    Returns the X shear factor.

    • @r A double with the X shear factor.
  • xProperty ()

    Returns the DoubleProperty backing the X shear factor.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setY (double Y)

    Sets the Y shear factor.

    • @p Y is a double with the new Y shear factor.
    • @r this object
  • getY ()

    Returns the Y shear factor.

    • @r A double with the Y shear factor.
  • yProperty ()

    Returns the DoubleProperty backing the Y shear factor.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setPivotX (double PivotX)

    Sets the pivot X coordinate that stays fixed during the shear.

    • @p PivotX is a double with the pivot X coordinate.
    • @r this object
  • getPivotX ()

    Returns the pivot X coordinate.

    • @r A double with the pivot X coordinate.
  • pivotXProperty ()

    Returns the DoubleProperty backing the pivot X coordinate.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setPivotY (double PivotY)

    Sets the pivot Y coordinate that stays fixed during the shear.

    • @p PivotY is a double with the pivot Y coordinate.
    • @r this object
  • getPivotY ()

    Returns the pivot Y coordinate.

    • @r A double with the pivot Y coordinate.
  • pivotYProperty ()

    Returns the DoubleProperty backing the pivot Y coordinate.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.