Spec-Zone .ru
спецификации, руководства, описания, API
|
public class Shear extends Transform
Affine
object that shears coordinates
by the specified multipliers. The matrix representing the shearing
transformation is as follows:
[ 1 x 0 0 ] [ y 1 0 0 ] [ 0 0 1 0 ]
For example:
Text text = new Text("Using Shear for pseudo-italic font");
text.setX(20);
text.setY(50);
text.setFont(new Font(20));
text.getTransforms().add(new Shear(-0.35, 0));
Type | Property and Description |
---|---|
DoubleProperty |
pivotX
Defines the X coordinate of the shear pivot point.
|
DoubleProperty |
pivotY
Defines the Y coordinate of the shear pivot point.
|
DoubleProperty |
x
Defines the multiplier by which coordinates are shifted in the direction
of the positive X axis as a factor of their Y coordinate.
|
DoubleProperty |
y
Defines the multiplier by which coordinates are shifted in the direction
of the positive Y axis as a factor of their X coordinate.
|
Constructor and Description |
---|
Shear()
Creates a default Shear (identity).
|
Shear(double x,
double y)
Creates a new instance of Shear.
|
Shear(double x,
double y,
double pivotX,
double pivotY)
Creates a new instance of Shear with pivot.
|
Modifier and Type | Method and Description |
---|---|
double |
getPivotX()
Defines the X coordinate of the shear pivot point.
|
double |
getPivotY()
Defines the Y coordinate of the shear pivot point.
|
double |
getX()
Defines the multiplier by which coordinates are shifted in the direction
of the positive X axis as a factor of their Y coordinate.
|
double |
getY()
Defines the multiplier by which coordinates are shifted in the direction
of the positive Y axis as a factor of their X coordinate.
|
DoubleProperty |
pivotXProperty()
Defines the X coordinate of the shear pivot point.
|
DoubleProperty |
pivotYProperty()
Defines the Y coordinate of the shear pivot point.
|
void |
setPivotX(double value)
Defines the X coordinate of the shear pivot point.
|
void |
setPivotY(double value)
Defines the Y coordinate of the shear pivot point.
|
void |
setX(double value)
Defines the multiplier by which coordinates are shifted in the direction
of the positive X axis as a factor of their Y coordinate.
|
void |
setY(double value)
Defines the multiplier by which coordinates are shifted in the direction
of the positive Y axis as a factor of their X coordinate.
|
java.lang.String |
toString()
Returns a string representation of this
Shear object. |
DoubleProperty |
xProperty()
Defines the multiplier by which coordinates are shifted in the direction
of the positive X axis as a factor of their Y coordinate.
|
DoubleProperty |
yProperty()
Defines the multiplier by which coordinates are shifted in the direction
of the positive Y axis as a factor of their X coordinate.
|
getX()
,
setX(double)
getY()
,
setY(double)
getPivotX()
,
setPivotX(double)
getPivotY()
,
setPivotY(double)
public Shear()
public Shear(double x, double y)
x
- the multiplier by which coordinates are shifted in the direction
of the positive X axis as a factor of their Y coordinatey
- the multiplier by which coordinates are shifted in the direction
of the positive Y axis as a factor of their X coordinatepublic Shear(double x, double y, double pivotX, double pivotY)
x
- the multiplier by which coordinates are shifted in the direction
of the positive X axis as a factor of their Y coordinatey
- the multiplier by which coordinates are shifted in the direction
of the positive Y axis as a factor of their X coordinatepivotX
- the X coordinate of the shear pivot pointpivotY
- the Y coordinate of the shear pivot pointpublic final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
getX()
,
setX(double)
public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
getY()
,
setY(double)
public final void setPivotX(double value)
public final double getPivotX()
public final DoubleProperty pivotXProperty()
getPivotX()
,
setPivotX(double)
public final void setPivotY(double value)
public final double getPivotY()
public final DoubleProperty pivotYProperty()
getPivotY()
,
setPivotY(double)
public java.lang.String toString()
Shear
object.toString
in class java.lang.Object
Shear
object.Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to