com.kitfox.svg.xml
Class StyleAttribute
java.lang.Object
com.kitfox.svg.xml.StyleAttribute
- All Implemented Interfaces:
- Serializable
public class StyleAttribute
- extends Object
- implements Serializable
- Author:
- Mark McKay, Mark McKay
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
StyleAttribute
public StyleAttribute()
- Creates a new instance of StyleAttribute
StyleAttribute
public StyleAttribute(String name)
StyleAttribute
public StyleAttribute(String name,
String stringValue)
getName
public String getName()
setName
public StyleAttribute setName(String name)
getStringValue
public String getStringValue()
getStringList
public String[] getStringList()
setStringValue
public void setStringValue(String value)
getBooleanValue
public boolean getBooleanValue()
getIntValue
public int getIntValue()
getIntList
public int[] getIntList()
getDoubleValue
public double getDoubleValue()
getDoubleList
public double[] getDoubleList()
getFloatValue
public float getFloatValue()
getFloatList
public float[] getFloatList()
getRatioValue
public float getRatioValue()
getUnits
public String getUnits()
getNumberWithUnits
public NumberWithUnits getNumberWithUnits()
getFloatValueWithUnits
public float getFloatValueWithUnits()
convertUnitsToPixels
public static float convertUnitsToPixels(int unitType,
float value)
getColorValue
public Color getColorValue()
parseURLFn
public String parseURLFn()
getURLValue
public URL getURLValue(URL docRoot)
getURLValue
public URL getURLValue(URI docRoot)
getURIValue
public URI getURIValue()
getURIValue
public URI getURIValue(URI base)
- Parse this sytle attribute as a URL and return it in URI form resolved
against the passed base.
- Parameters:
base - - URI to resolve against. If null, will return value without
attempting to resolve it.
main
public static void main(String[] args)
Copyright © 2011-2012 Barchart, Inc.. All Rights Reserved.