| Package | Description |
|---|---|
| de.saxsys.svgfx.core.path | |
| de.saxsys.svgfx.core.path.commands |
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.shape.Rectangle |
CommandParser.getBoundingBox(String path)
Returns the bounding box that would result from the given path command.
|
| Modifier and Type | Method and Description |
|---|---|
protected javafx.geometry.Point2D |
PathCommand.addPoints(javafx.geometry.Point2D first,
javafx.geometry.Point2D second)
Combines the two given points based on hte
PathCommand.isAbsolute. |
CloseCommand |
CommandFactory.createCloseCommand(char commandName,
javafx.geometry.Point2D startPoint)
Creates a new
CloseCommand using the given data, which needs to contain the command name. |
PathCommand |
CommandFactory.createCommandOrFail(Character delimiter,
String data,
javafx.geometry.Point2D absolutePathStartingPoint,
javafx.geometry.Point2D absoluteCurrentPoint,
PathCommand previousCommand)
Creates a new
PathCommand based on the given information. |
CubicBezierCurveCommand |
CommandFactory.createCubicBezierCurveCommand(char commandName,
String data)
Creates a new
BezierCurveCommand using the given data, which needs to contains three points. |
HorizontalLineCommand |
CommandFactory.createHorizontalLineCommand(char commandName,
String data)
Creates a new
LineCommand using the given data, which need to contain one numeric value which determines which position is moved to. |
LineCommand |
CommandFactory.createLineCommand(char commandName,
String data)
Creates a new
LineCommand using the given data, which needs to be two numeric values separated by whitespaces or one comma
which determines which position is moved to. |
MoveCommand |
CommandFactory.createMoveCommand(char commandName,
String data)
Creates a new
LineCommand using the given data, which needs to be two numeric values separated by whitespaces or one comma
which determines which position is moved to. |
QuadraticBezierCurveCommand |
CommandFactory.createQuadraticBezierCurveCommand(char commandName,
String data)
Creates a new
BezierCurveCommand using the given data, which needs to contains three points. |
CubicBezierCurveCommand |
CommandFactory.createShortCubicBezierCurveCommand(char commandName,
String data,
javafx.geometry.Point2D absoluteCurrentPoint,
PathCommand previousCommand)
Creates a new
BezierCurveCommand using the given data, which needs to contains three points. |
QuadraticBezierCurveCommand |
CommandFactory.createShortQuadraticBezierCurveCommand(char commandName,
String data,
javafx.geometry.Point2D absoluteStartPoint,
PathCommand previousCommand)
Creates a new
BezierCurveCommand using the given data, which needs to contains three points. |
VerticalLineCommand |
CommandFactory.createVerticalLineCommand(char commandName,
String data)
Creates a new
LineCommand using the given data, which need to contain one numeric value which determines which position is moved to. |
javafx.geometry.Point2D |
QuadraticBezierCurveCommand.getAbsoluteControlPoint(javafx.geometry.Point2D absoluteCurrentPoint)
Returns the control point, which is in absolute coordinates.
|
javafx.geometry.Point2D |
QuadraticBezierCurveCommand.getAbsoluteEndControlPoint(javafx.geometry.Point2D absoluteCurrentPoint)
Returns the end control point, which is in absolute coordinates.
|
javafx.geometry.Point2D |
CubicBezierCurveCommand.getAbsoluteEndControlPoint(javafx.geometry.Point2D absoluteCurrentPoint)
Returns the
CubicBezierCurveCommand.endControlPoint which is in absolute coordinates. |
abstract javafx.geometry.Point2D |
BezierCurveCommand.getAbsoluteEndControlPoint(javafx.geometry.Point2D absoluteCurrentPoint) |
javafx.geometry.Point2D |
VerticalLineCommand.getAbsoluteEndPoint(javafx.geometry.Point2D absoluteCurrentPoint) |
abstract javafx.geometry.Point2D |
PathCommand.getAbsoluteEndPoint(javafx.geometry.Point2D absoluteCurrentPoint)
Gets the next possible absoluteCurrentPoint based on the internal state of the command and the provided absoluteCurrentPoint.
|
javafx.geometry.Point2D |
LineCommand.getAbsoluteEndPoint(javafx.geometry.Point2D absoluteCurrentPoint) |
javafx.geometry.Point2D |
HorizontalLineCommand.getAbsoluteEndPoint(javafx.geometry.Point2D absoluteCurrentPoint) |
javafx.geometry.Point2D |
BezierCurveCommand.getAbsoluteEndPoint(javafx.geometry.Point2D absoluteCurrentPoint) |
javafx.geometry.Point2D |
QuadraticBezierCurveCommand.getAbsoluteStartControlPoint(javafx.geometry.Point2D absoluteCurrentPoint)
Returns the start control point, which is in absolute coordinates.
|
javafx.geometry.Point2D |
CubicBezierCurveCommand.getAbsoluteStartControlPoint(javafx.geometry.Point2D absoluteCurrentPoint)
Returns the
CubicBezierCurveCommand.startControlPoint which is in absolute coordinates. |
abstract javafx.geometry.Point2D |
BezierCurveCommand.getAbsoluteStartControlPoint(javafx.geometry.Point2D absoluteCurrentPoint) |
Optional<javafx.scene.shape.Rectangle> |
VerticalLineCommand.getBoundingBox(javafx.geometry.Point2D absoluteCurrentPoint) |
abstract Optional<javafx.scene.shape.Rectangle> |
PathCommand.getBoundingBox(javafx.geometry.Point2D absoluteCurrentPoint)
Gets the bounding box which would result of using the given absoluteCurrentPoint as the starting point and then applying the internal state of the command.
|
Optional<javafx.scene.shape.Rectangle> |
MoveCommand.getBoundingBox(javafx.geometry.Point2D absoluteCurrentPoint)
Returns
Optional.empty(). |
Optional<javafx.scene.shape.Rectangle> |
LineCommand.getBoundingBox(javafx.geometry.Point2D absoluteCurrentPoint) |
Optional<javafx.scene.shape.Rectangle> |
HorizontalLineCommand.getBoundingBox(javafx.geometry.Point2D absoluteCurrentPoint) |
Optional<javafx.scene.shape.Rectangle> |
CloseCommand.getBoundingBox(javafx.geometry.Point2D absoluteCurrentPoint) |
Optional<javafx.scene.shape.Rectangle> |
BezierCurveCommand.getBoundingBox(javafx.geometry.Point2D absoluteCurrentPoint) |
protected double |
PathCommand.getDistanceX(javafx.geometry.Point2D first,
javafx.geometry.Point2D second)
Returns the x distance between the two points. if one of the points is null, then then 0.0 will be returned.
|
protected double |
PathCommand.getDistanceY(javafx.geometry.Point2D first,
javafx.geometry.Point2D second)
Returns the y distance between the two points. if one of the points is null, then then 0.0 will be returned.
|
protected double |
PathCommand.getMinX(javafx.geometry.Point2D first,
javafx.geometry.Point2D second)
Returns the minimum x of the two points.
|
protected double |
PathCommand.getMinY(javafx.geometry.Point2D first,
javafx.geometry.Point2D second)
Returns the minimum y of the two points.
|
protected <T,R> R |
PathCommand.getValueOrFail(T first,
T second,
Function<T,R> valueProvider,
BiFunction<T,T,R> resolver)
Ensures to always return a value of the given values, even if either of the provided values is null.
|
Copyright © 2017 Saxonia Systems AG. All rights reserved.