public class YLayoutUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.awt.Rectangle |
DEFAULT_RECTANGLE |
protected static java.awt.Dimension |
DEFAULT_SIZE |
Constructor and Description |
---|
YLayoutUtil() |
Modifier and Type | Method and Description |
---|---|
protected static XNode |
getRectNode(java.lang.String name,
java.awt.Rectangle rect,
java.text.NumberFormat formatter) |
static XNode |
getRectNodeAsInt(java.lang.String name,
java.awt.Rectangle rect) |
protected static byte[] |
loadIcon(java.lang.String iconPath) |
protected static java.awt.geom.Point2D.Double |
parsePosition(XNode node,
java.text.NumberFormat format)
Parses an XNode's contents into a Point2D.Double object
|
protected static java.awt.Rectangle |
parseRect(XNode node,
java.text.NumberFormat format)
Parses an XNode's contents into a Rectangle object
|
protected static java.awt.Dimension |
parseSize(XNode node)
Parses an XNode's contents into a Dimension object
|
protected static int |
strToInt(java.lang.String s) |
protected static XNode |
toPointNode(java.awt.geom.Point2D.Double point,
java.lang.String name,
java.text.NumberFormat formatter) |
protected static final java.awt.Dimension DEFAULT_SIZE
protected static final java.awt.Rectangle DEFAULT_RECTANGLE
protected static java.awt.Rectangle parseRect(XNode node, java.text.NumberFormat format)
node
- the node to parseformat
- the number format of the originator's localeprotected static java.awt.Dimension parseSize(XNode node)
node
- the node to parseprotected static java.awt.geom.Point2D.Double parsePosition(XNode node, java.text.NumberFormat format)
node
- the node to parseformat
- the number format of the originator's localeprotected static int strToInt(java.lang.String s)
protected static XNode toPointNode(java.awt.geom.Point2D.Double point, java.lang.String name, java.text.NumberFormat formatter)
protected static XNode getRectNode(java.lang.String name, java.awt.Rectangle rect, java.text.NumberFormat formatter)
public static XNode getRectNodeAsInt(java.lang.String name, java.awt.Rectangle rect)
protected static byte[] loadIcon(java.lang.String iconPath) throws java.io.IOException
java.io.IOException