public class StyleAttribute extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
StyleAttribute()
Creates a new instance of StyleAttribute
|
StyleAttribute(String name) |
StyleAttribute(String name,
String stringValue) |
| Modifier and Type | Method and Description |
|---|---|
static float |
convertUnitsToPixels(int unitType,
float value) |
boolean |
getBooleanValue() |
Color |
getColorValue() |
double[] |
getDoubleList() |
double |
getDoubleValue() |
float[] |
getFloatList() |
float[] |
getFloatListWithUnits() |
float |
getFloatValue() |
float |
getFloatValueWithUnits() |
int[] |
getIntList() |
int |
getIntValue() |
String |
getName() |
NumberWithUnits |
getNumberWithUnits() |
float |
getRatioValue() |
String[] |
getStringList() |
String |
getStringValue() |
String |
getUnits() |
URI |
getURIValue() |
URI |
getURIValue(URI base)
Parse this sytle attribute as a URL and return it in URI form resolved
against the passed base.
|
URL |
getURLValue(URI docRoot) |
URL |
getURLValue(URL docRoot) |
static void |
main(String[] args) |
String |
parseURLFn() |
StyleAttribute |
setName(String name) |
void |
setStringValue(String value) |
public static final long serialVersionUID
public StyleAttribute()
public StyleAttribute(String name)
public String getName()
public StyleAttribute setName(String name)
public String getStringValue()
public String[] getStringList()
public void setStringValue(String value)
public boolean getBooleanValue()
public int getIntValue()
public int[] getIntList()
public double getDoubleValue()
public double[] getDoubleList()
public float getFloatValue()
public float[] getFloatList()
public float getRatioValue()
public String getUnits()
public NumberWithUnits getNumberWithUnits()
public float getFloatValueWithUnits()
public float[] getFloatListWithUnits()
public static float convertUnitsToPixels(int unitType,
float value)
public Color getColorValue()
public String parseURLFn()
public URI getURIValue()
public URI getURIValue(URI base)
base - - URI to resolve against. If null, will return value without
attempting to resolve it.public static void main(String[] args)
Copyright © 2022. All rights reserved.