|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.smil.basic.AttributeHandler
AttributeHandler parses and returns a value of one attribute.
| Field Summary | |
static int |
bottom
|
static int |
height
|
static int |
left
|
static int |
right
|
static int |
top
|
static int |
width
|
| Constructor Summary | |
protected |
AttributeHandler()
|
| Method Summary | |
static int |
convertAmountToString(java.lang.String s)
|
static int |
convertHorizStringToInt(java.lang.String value,
LayoutCalc parent)
|
static int |
convertPercentageToInt(java.lang.String p,
int attributeType,
SMILElement e)
|
static int |
convertSizeStringToInt(java.lang.String value,
int size)
Converts CSS2 size values to integer sizes, relative to the given size (width/height). |
static int |
convertSizeStringToInt2(java.lang.String s,
int attributeType,
SMILElement e)
Converts CSS2 size values to integer sizes, relative to the given element (RootLayout/Region). |
static int |
convertVertStringToInt(java.lang.String value,
LayoutCalc parent)
|
static boolean |
evaluateSystemValues(org.w3c.dom.Element element,
Viewer viewer,
boolean customTest)
Evaluates the "system-xxx" attributes for the element and returns value true/false. |
static boolean |
getSystemRequired(java.lang.String prefix,
org.w3c.dom.Element element,
Viewer viewer)
Go through parent elements and search for the prefix definition to find out the related URL. |
static int |
intOrRepeatToInt(java.lang.String s)
|
static boolean |
isPercentage(java.lang.String s)
Is the value percentage value? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int top
public static final int left
public static final int width
public static final int height
public static final int right
public static final int bottom
| Constructor Detail |
protected AttributeHandler()
| Method Detail |
public static boolean evaluateSystemValues(org.w3c.dom.Element element,
Viewer viewer,
boolean customTest)
public static boolean getSystemRequired(java.lang.String prefix,
org.w3c.dom.Element element,
Viewer viewer)
public static int intOrRepeatToInt(java.lang.String s)
public static boolean isPercentage(java.lang.String s)
s - value to be checked
public static int convertVertStringToInt(java.lang.String value,
LayoutCalc parent)
public static int convertHorizStringToInt(java.lang.String value,
LayoutCalc parent)
public static int convertSizeStringToInt(java.lang.String value,
int size)
value - Percentage/absolute value
public static int convertSizeStringToInt2(java.lang.String s,
int attributeType,
SMILElement e)
s - Percentage/absolute valueattributeType - top/bottom/left/right/width/height - type of the attributee - RootLayoutElement or RegionElement - width or height for %public static int convertAmountToString(java.lang.String s)
public static int convertPercentageToInt(java.lang.String p,
int attributeType,
SMILElement e)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||