public class LengthParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
parseLength(String lengthValue,
boolean isWidth,
javafx.geometry.Bounds bounds,
Viewport viewport)
Parse a length value.
|
static double |
parseLength(String lengthValue,
boolean isWidth,
Viewport viewport)
Parse a length value.
|
static double |
parseLength(String lengthValue,
Viewport viewport)
Parse a length value.
|
static double |
parseLength(XMLNode node,
boolean isWidth,
javafx.geometry.Bounds bounds,
Viewport viewport,
String attrName)
Parse a node attribute as a length value.
|
static double |
parseLength(XMLNode node,
boolean isWidth,
Viewport viewport,
String attrName)
Parse a node attribute as a length value.
|
static double |
parseLength(XMLNode node,
Viewport viewport,
String attrName)
Parse a node attribute as a length value.
|
static double |
parseLengthProtected(String lengthValue,
boolean isWidth,
javafx.geometry.Bounds bounds,
Viewport viewport)
Parse a length value, ensuring that a 0 length will return 0.
|
static double |
parseLengthProtected(String lengthValue,
boolean isWidth,
Viewport viewport)
Parse a length value, ensuring that a 0 length will return 0.
|
static double |
parseLineWidth(String lengthValue,
Viewport viewport)
Parse a line width value.
|
static double |
parsePosition(String lengthValue,
boolean isWidth,
javafx.geometry.Bounds bounds,
Viewport viewport)
Parse a position value.
|
public static double parseLength(XMLNode node, Viewport viewport, String attrName)
node - the nodeviewport - the viewportattrName - the attribute namepublic static double parseLength(XMLNode node, boolean isWidth, Viewport viewport, String attrName)
node - the nodeisWidth - for a width unitviewport - the viewportattrName - the attribute namepublic static double parseLength(XMLNode node, boolean isWidth, javafx.geometry.Bounds bounds, Viewport viewport, String attrName)
node - the nodeisWidth - for a width unitbounds - the optional bounds of the figure for which it is relative toviewport - the viewportattrName - the attribute namepublic static double parseLength(String lengthValue, Viewport viewport)
lengthValue - the valueviewport - the viewportpublic static double parseLengthProtected(String lengthValue, boolean isWidth, Viewport viewport)
lengthValue - the valueisWidth - for a width unitviewport - the viewportpublic static double parseLength(String lengthValue, boolean isWidth, Viewport viewport)
lengthValue - the valueisWidth - for a width unitviewport - the viewportpublic static double parsePosition(String lengthValue, boolean isWidth, javafx.geometry.Bounds bounds, Viewport viewport)
lengthValue - the valueisWidth - true for a width lengthbounds - the optional bounds of the figure for which it is relative toviewport - the viewportpublic static double parseLineWidth(String lengthValue, Viewport viewport)
lengthValue - the valueviewport - the viewportpublic static double parseLengthProtected(String lengthValue, boolean isWidth, javafx.geometry.Bounds bounds, Viewport viewport)
lengthValue - the valueisWidth - for a width unitbounds - the optional bounds of the figure for which it is relative toviewport - the viewportpublic static double parseLength(String lengthValue, boolean isWidth, javafx.geometry.Bounds bounds, Viewport viewport)
lengthValue - the valueisWidth - true for a width lengthbounds - the optional bounds of the figure for which it is relative toviewport - the viewportCopyright © 2026. All rights reserved.