public class mxVdxUtils
extends java.lang.Object
| Constructor and Description |
|---|
mxVdxUtils() |
| Modifier and Type | Method and Description |
|---|---|
static mxPoint |
adjustConstraint(mxPoint constraint)
Adjusts a constraint in the range of 0..1
|
static double |
conversionFactor()
Returns the conversion factor from inches to pixels.
|
static java.util.List<org.w3c.dom.Node> |
copyNodeList(org.w3c.dom.NodeList nodeList)
Copy a given NodeList into a List
|
static java.lang.Object[] |
getOrderArray(java.util.List<PageShapeIDKey> orderList,
java.util.HashMap<PageShapeIDKey,java.lang.Object> map)
Creates an array with the cells contained in the map, ordered according
the order of the keys in orderList.
|
static java.util.HashMap<java.lang.String,java.lang.Object> |
getStyleMap(java.lang.String style,
java.lang.String asig)
Create a style map from a String with style definitions.
|
static java.lang.String |
getStyleString(java.util.Map<java.lang.String,java.lang.Object> styleMap,
java.lang.String asig)
Returns the string that represents the content of a given style map.
|
static boolean |
nodeListHasTag(org.w3c.dom.NodeList nl,
java.lang.String tag)
Checks if the NodeList has a Node with name = tag.
|
static org.w3c.dom.Element |
nodeListTag(org.w3c.dom.NodeList nl,
java.lang.String tag)
Returns the first Element that has name = tag in Node List.
|
static org.w3c.dom.Element |
nodeListTagIndexed(org.w3c.dom.NodeList nl,
java.lang.String tag,
java.lang.String ix)
Returns the Element that has name = tag and Index = ix in Node List.
|
static java.util.List<org.w3c.dom.Element> |
nodeListTags(org.w3c.dom.NodeList nl,
java.lang.String tag)
Returns a list with the elements included in the Node List that have name = tag.
|
static void |
printPointList(java.util.List<mxPoint> list)
Print a list of mxPoint in the standard output.
|
static java.lang.String |
surroundedByTags(java.lang.String text,
java.lang.String tag)
Returns a text surrounded by tags html.
|
static java.lang.String |
toInitialCapital(java.lang.String text)
Converts the initial letter of each word in text to uppercase
|
static java.lang.String |
toSmallCaps(java.lang.String text,
java.lang.String size)
Trnsforms each lower case letter in text to small capital.
|
public static boolean nodeListHasTag(org.w3c.dom.NodeList nl,
java.lang.String tag)
nl - NodeListtag - Name of the node.true if the Node List has a Node with name = tag.public static org.w3c.dom.Element nodeListTag(org.w3c.dom.NodeList nl,
java.lang.String tag)
nl - NodeListtag - Name of the Elementpublic static org.w3c.dom.Element nodeListTagIndexed(org.w3c.dom.NodeList nl,
java.lang.String tag,
java.lang.String ix)
nl - NodeListtag - name of the Elementpublic static java.util.List<org.w3c.dom.Element> nodeListTags(org.w3c.dom.NodeList nl,
java.lang.String tag)
nl - NodeListtag - name of the Element.public static java.util.List<org.w3c.dom.Node> copyNodeList(org.w3c.dom.NodeList nodeList)
nodeList - Node List.public static double conversionFactor()
public static mxPoint adjustConstraint(mxPoint constraint)
constraint - Point with the constraint.public static java.lang.String getStyleString(java.util.Map<java.lang.String,java.lang.Object> styleMap,
java.lang.String asig)
styleMap - Map with the styles valuespublic static java.lang.String surroundedByTags(java.lang.String text,
java.lang.String tag)
text - Text to be surrounded.tag - Name of the tag.public static java.lang.String toInitialCapital(java.lang.String text)
text - Text to be transformed.public static java.lang.String toSmallCaps(java.lang.String text,
java.lang.String size)
text - Text to be transformed.size - Size of the original text.public static java.util.HashMap<java.lang.String,java.lang.Object> getStyleMap(java.lang.String style,
java.lang.String asig)
style - Definition of the style.asig - Asignation simbol used in 'style'.public static void printPointList(java.util.List<mxPoint> list)
list - Lis of mxPoint.public static java.lang.Object[] getOrderArray(java.util.List<PageShapeIDKey> orderList, java.util.HashMap<PageShapeIDKey,java.lang.Object> map)
orderList - List of keys in the order desired.map - Map with the object to be put in the array.Copyright (c) 2010 Gaudenz Alder. All rights reserved.