public class AWTXMLEncodeDecode extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addChildElement(Element rootElement,
String name,
AlphaComposite value)
Add an element with an AlphaComposite value as a child of
another element.
|
static void |
addChildElement(Element rootElement,
String name,
Color value)
Add an element with a Color value as a child of another element.
|
static void |
addChildElement(Element rootElement,
String name,
Font value)
Add an element with a Font value as a child of another element.
|
static Color |
colorFromString(String value)
Convert a String object back to a Color object.
|
static String |
colorToString(Color value)
Convert a Color object to a string.
|
static AlphaComposite |
compositeFromString(String value)
Convert a String object back to an AlphaComposite object.
|
static String |
compositeToString(AlphaComposite value)
Convert an AlphaComposite object to a string.
|
static Font |
fontFromString(String value)
Convert a String back to a Font.
|
static String |
fontToString(Font font)
Convert a Font to a string.
|
public static void addChildElement(Element rootElement, String name, Font value)
public static void addChildElement(Element rootElement, String name, Color value)
public static Color colorFromString(String value)
public static void addChildElement(Element rootElement, String name, AlphaComposite value)
public static String compositeToString(AlphaComposite value)
public static AlphaComposite compositeFromString(String value)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.