public class LengthParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static double |
parseLength(java.lang.String lengthValue,
boolean isWidth,
javafx.geometry.Bounds bounds,
Viewport viewport)
Parse a length value.
|
static double |
parseLength(java.lang.String lengthValue,
boolean isWidth,
Viewport viewport)
Parse a length value.
|
static double |
parseLength(java.lang.String lengthValue,
Viewport viewport)
Parse a length value.
|
static double |
parseLength(XMLNode node,
boolean isWidth,
javafx.geometry.Bounds bounds,
Viewport viewport,
java.lang.String attrName)
Parse a node attribute as a length value.
|
static double |
parseLength(XMLNode node,
boolean isWidth,
Viewport viewport,
java.lang.String attrName)
Parse a node attribute as a length value.
|
static double |
parseLength(XMLNode node,
Viewport viewport,
java.lang.String attrName)
Parse a node attribute as a length value.
|
static double |
parseLengthProtected(java.lang.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(java.lang.String lengthValue,
boolean isWidth,
Viewport viewport)
Parse a length value, ensuring that a 0 length will return 0.
|
static double |
parseLineWidth(java.lang.String lengthValue,
Viewport viewport)
Parse a line width value.
|
static double |
parsePosition(java.lang.String lengthValue,
boolean isWidth,
javafx.geometry.Bounds bounds,
Viewport viewport)
Parse a position value.
|
public static double parseLength(XMLNode node, Viewport viewport, java.lang.String attrName)
node
- the nodeviewport
- the viewportattrName
- the attribute namepublic static double parseLength(XMLNode node, boolean isWidth, Viewport viewport, java.lang.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, java.lang.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(java.lang.String lengthValue, Viewport viewport)
lengthValue
- the valueviewport
- the viewportpublic static double parseLengthProtected(java.lang.String lengthValue, boolean isWidth, Viewport viewport)
lengthValue
- the valueisWidth
- for a width unitviewport
- the viewportpublic static double parseLength(java.lang.String lengthValue, boolean isWidth, Viewport viewport)
lengthValue
- the valueisWidth
- for a width unitviewport
- the viewportpublic static double parsePosition(java.lang.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(java.lang.String lengthValue, Viewport viewport)
lengthValue
- the valueviewport
- the viewportpublic static double parseLengthProtected(java.lang.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(java.lang.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 © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence