|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.html.CSS.CssValue javax.swing.text.html.CSS.LengthValue javax.swing.text.html.CSS.BorderWidthValue
BorderWidthValue is used to model BORDER_XXX_WIDTH and adds support for the thin/medium/thick values.
Field Summary | |
private int |
index
Index into values. |
(package private) boolean |
percentage
If true, span is a percentage value, and that to determine the length another value needs to be passed in. |
(package private) float |
span
Either the absolute value (percentage == false) or a percentage value. |
(package private) String |
svalue
The value as a string... before conversion to a binary format. |
private static float[] |
values
Values used to represent border width. |
Constructor Summary | |
(package private) |
CSS.BorderWidthValue(String svalue,
int index)
|
Method Summary | |
(package private) Object |
fromStyleConstants(StyleConstants key,
Object value)
Converts a StyleConstants attribute value to
a CSS attribute value. |
(package private) float |
getValue()
Returns the length (span) to use. |
(package private) float |
getValue(float currentValue)
Returns the length (span) to use. |
(package private) boolean |
isPercentage()
Returns true if the length represents a percentage of the containing box. |
(package private) Object |
parseCssValue(String value)
Convert a CSS value string to the internal format (for fast processing) used in the attribute sets. |
(package private) Object |
parseHtmlValue(String value)
Convert an HTML attribute value to a CSS attribute value. |
String |
toString()
Return the CSS format of the value |
(package private) Object |
toStyleConstants(StyleConstants key,
View v)
Converts a CSS attribute value to a StyleConstants
value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int index
private static final float[] values
boolean percentage
float span
String svalue
Constructor Detail |
CSS.BorderWidthValue(String svalue, int index)
Method Detail |
float getValue()
CSS.LengthValue
getValue
in class CSS.LengthValue
float getValue(float currentValue)
CSS.LengthValue
currentValue
.
getValue
in class CSS.LengthValue
Object parseCssValue(String value)
CSS.CssValue
parseCssValue
in class CSS.LengthValue
Object parseHtmlValue(String value)
CSS.CssValue
parseHtmlValue
in class CSS.LengthValue
boolean isPercentage()
Object fromStyleConstants(StyleConstants key, Object value)
StyleConstants
attribute value to
a CSS attribute value. If there is no conversion,
returns null
. By default, there is no conversion.
fromStyleConstants
in class CSS.CssValue
key
- the StyleConstants
attributevalue
- the value of a StyleConstants
attribute to be converted
StyleConstants
valueObject toStyleConstants(StyleConstants key, View v)
StyleConstants
value. If there is no conversion, returns null
.
By default, there is no conversion.
toStyleConstants
in class CSS.CssValue
key
- the StyleConstants
attributev
- the view containing AttributeSet
StyleConstants
attribute value that
represents the CSS attribute valuepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |