|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.vex.css.Styles
Represents the computed style properties for a particular element.
Constructor Summary | |
Styles()
|
Method Summary | |
java.awt.Color |
getBackgroundColor()
Returns the value of the backgroundColor property. |
java.awt.Color |
getBorderBottomColor()
Returns the value of the borderBottomColor property. |
java.lang.String |
getBorderBottomStyle()
Returns the value of the borderBottomStyle property. |
int |
getBorderBottomWidth()
|
java.awt.Color |
getBorderLeftColor()
Returns the value of the borderLeftColor property. |
java.lang.String |
getBorderLeftStyle()
Returns the value of the borderLeftStyle property. |
int |
getBorderLeftWidth()
|
java.awt.Color |
getBorderRightColor()
Returns the value of the borderRightColor property. |
java.lang.String |
getBorderRightStyle()
Returns the value of the borderRightStyle property. |
int |
getBorderRightWidth()
|
java.awt.Color |
getBorderTopColor()
Returns the value of the borderTopColor property. |
java.lang.String |
getBorderTopStyle()
Returns the value of the borderTopStyle property. |
int |
getBorderTopWidth()
|
java.awt.Color |
getColor()
Returns the value of the color property. |
java.util.List |
getContent()
Returns a List of ContentPart objects
representing the content property. |
java.lang.String |
getDisplay()
Returns the value of the display property. |
java.awt.Font |
getFont()
Returns the value of the font property. |
java.lang.String |
getFontFamily()
Returns the value of the fontFamily property. |
float |
getFontSize()
Returns the value of the fontSize property. |
java.lang.String |
getFontStyle()
Returns the value of the fontStyle property. |
int |
getFontWeight()
Returns the value of the fontWeight property. |
int |
getLineHeight()
Returns the value of the lineHeight property. |
float |
getLineHeightMultiplier()
Returns the value of the lineHeightMultiplier property. |
java.lang.String |
getListStyleType()
Returns the value of the listStyleType property. |
RelativeLength |
getMarginBottom()
|
RelativeLength |
getMarginLeft()
|
RelativeLength |
getMarginRight()
|
RelativeLength |
getMarginTop()
|
RelativeLength |
getPaddingBottom()
|
RelativeLength |
getPaddingLeft()
|
RelativeLength |
getPaddingRight()
|
RelativeLength |
getPaddingTop()
|
java.lang.String |
getTextAlign()
Returns the value of the textAlign property. |
java.lang.String |
getWhiteSpace()
Returns the value of the whiteSpace property. |
boolean |
isBlock()
Returns true if this element is block-formatted, or false if it is inline-formatted. |
void |
setBackgroundColor(java.awt.Color backgroundColor)
Sets the value of the backgroundColor property. |
void |
setBorderBottomColor(java.awt.Color borderBottomColor)
Sets the value of the borderBottomColor property. |
void |
setBorderBottomStyle(java.lang.String borderBottomStyle)
Sets the value of the borderBottomStyle property. |
void |
setBorderBottomWidth(int i)
|
void |
setBorderLeftColor(java.awt.Color borderLeftColor)
Sets the value of the borderLeftColor property. |
void |
setBorderLeftStyle(java.lang.String borderLeftStyle)
Sets the value of the borderLeftStyle property. |
void |
setBorderLeftWidth(int i)
|
void |
setBorderRightColor(java.awt.Color borderRightColor)
Sets the value of the borderRightColor property. |
void |
setBorderRightStyle(java.lang.String borderRightStyle)
Sets the value of the borderRightStyle property. |
void |
setBorderRightWidth(int i)
|
void |
setBorderTopColor(java.awt.Color borderTopColor)
Sets the value of the borderTopColor property. |
void |
setBorderTopStyle(java.lang.String borderTopStyle)
Sets the value of the borderTopStyle property. |
void |
setBorderTopWidth(int i)
|
void |
setColor(java.awt.Color color)
Sets the value of the color property. |
void |
setContent(java.util.List content)
Sets the vale of the content property. |
void |
setDisplay(java.lang.String display)
Sets the value of the display property. |
void |
setFont(java.awt.Font font)
Sets the value of the font property. |
void |
setFontFamily(java.lang.String fontFamily)
Sets the value of the fontFamily property. |
void |
setFontSize(float fontSize)
Sets the value of the fontSize property. |
void |
setFontStyle(java.lang.String fontStyle)
Sets the value of the fontStyle property. |
void |
setFontWeight(int fontWeight)
Sets the value of the fontWeight property. |
void |
setLineHeight(int lineHeight)
Sets the value of the lineHeight property. |
void |
setLineHeightMultiplier(float lineHeightMultiplier)
Sets the value of the lineHeightMultiplier property. |
void |
setListStyleType(java.lang.String listStyleType)
Sets the value of the listStyleType property. |
void |
setMarginBottom(RelativeLength length)
|
void |
setMarginLeft(RelativeLength length)
|
void |
setMarginRight(RelativeLength length)
|
void |
setMarginTop(RelativeLength length)
|
void |
setPaddingBottom(RelativeLength length)
|
void |
setPaddingLeft(RelativeLength length)
|
void |
setPaddingRight(RelativeLength length)
|
void |
setPaddingTop(RelativeLength length)
|
void |
setTextAlign(java.lang.String textAlign)
Sets the value of the textAlign property. |
void |
setWhiteSpace(java.lang.String whiteSpace)
Sets the value of the whiteSpace property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Styles()
Method Detail |
public java.awt.Color getBackgroundColor()
backgroundColor
property.
Returns null if the background color is transparent.
public java.awt.Color getBorderBottomColor()
borderBottomColor
property.
public java.lang.String getBorderBottomStyle()
borderBottomStyle
property.
public java.awt.Color getBorderLeftColor()
borderLeftColor
property.
public java.lang.String getBorderLeftStyle()
borderLeftStyle
property.
public java.awt.Color getBorderRightColor()
borderRightColor
property.
public java.lang.String getBorderRightStyle()
borderRightStyle
property.
public java.awt.Color getBorderTopColor()
borderTopColor
property.
public java.lang.String getBorderTopStyle()
borderTopStyle
property.
public java.awt.Color getColor()
color
property.
public java.util.List getContent()
List
of ContentPart
objects
representing the content
property.
public java.lang.String getDisplay()
display
property.
public java.awt.Font getFont()
font
property.
public java.lang.String getFontFamily()
fontFamily
property.
public float getFontSize()
fontSize
property.
public java.lang.String getFontStyle()
fontStyle
property.
public int getFontWeight()
fontWeight
property.
public int getLineHeight()
lineHeight
property.
public float getLineHeightMultiplier()
lineHeightMultiplier
property.
public java.lang.String getListStyleType()
listStyleType
property.
public java.lang.String getTextAlign()
textAlign
property.
public java.lang.String getWhiteSpace()
whiteSpace
property.
public boolean isBlock()
public void setBackgroundColor(java.awt.Color backgroundColor)
backgroundColor
property.
backgroundColor
- new value for the backgroundColor
property.public void setBorderBottomColor(java.awt.Color borderBottomColor)
borderBottomColor
property.
borderBottomColor
- new value for the borderBottomColor
property.public void setBorderBottomStyle(java.lang.String borderBottomStyle)
borderBottomStyle
property.
borderBottomStyle
- new value for the borderBottomStyle
property.public void setBorderLeftColor(java.awt.Color borderLeftColor)
borderLeftColor
property.
borderLeftColor
- new value for the borderLeftColor
property.public void setBorderLeftStyle(java.lang.String borderLeftStyle)
borderLeftStyle
property.
borderLeftStyle
- new value for the borderLeftStyle
property.public void setBorderRightColor(java.awt.Color borderRightColor)
borderRightColor
property.
borderRightColor
- new value for the borderRightColor
property.public void setBorderRightStyle(java.lang.String borderRightStyle)
borderRightStyle
property.
borderRightStyle
- new value for the borderRightStyle
property.public void setBorderTopColor(java.awt.Color borderTopColor)
borderTopColor
property.
borderTopColor
- new value for the borderTopColor
property.public void setBorderTopStyle(java.lang.String borderTopStyle)
borderTopStyle
property.
borderTopStyle
- new value for the borderTopStyle
property.public void setColor(java.awt.Color color)
color
property.
color
- new value for the color
property.public void setContent(java.util.List content)
content
property.
content
- List
of ContentPart
objects
representing the content.public void setDisplay(java.lang.String display)
display
property.
display
- new value for the display
property.public void setFont(java.awt.Font font)
font
property.
font
- new value for the font
property.public void setFontFamily(java.lang.String fontFamily)
fontFamily
property.
fontFamily
- new value for the fontFamily
property.public void setFontSize(float fontSize)
fontSize
property.
fontSize
- new value for the fontSize
property.public void setFontStyle(java.lang.String fontStyle)
fontStyle
property.
fontStyle
- new value for the fontStyle
property.public void setFontWeight(int fontWeight)
fontWeight
property.
fontWeight
- new value for the fontWeight
property.public void setLineHeight(int lineHeight)
lineHeight
property.
lineHeight
- new value for the lineHeight
property.public void setLineHeightMultiplier(float lineHeightMultiplier)
lineHeightMultiplier
property.
lineHeightMultiplier
- new value for the lineHeightMultiplier
property.public void setListStyleType(java.lang.String listStyleType)
listStyleType
property.
listStyleType
- new value for the listStyleType
property.public void setTextAlign(java.lang.String textAlign)
textAlign
property.
textAlign
- new value for the textAlign
property.public void setWhiteSpace(java.lang.String whiteSpace)
whiteSpace
property.
whiteSpace
- new value for the whiteSpace
property.public int getBorderBottomWidth()
public int getBorderLeftWidth()
public int getBorderRightWidth()
public int getBorderTopWidth()
public RelativeLength getMarginBottom()
public RelativeLength getMarginLeft()
public RelativeLength getMarginRight()
public RelativeLength getMarginTop()
public RelativeLength getPaddingBottom()
public RelativeLength getPaddingLeft()
public RelativeLength getPaddingRight()
public RelativeLength getPaddingTop()
public void setBorderBottomWidth(int i)
i
- new value for border-bottom-widthpublic void setBorderLeftWidth(int i)
i
- new value for border-left-widthpublic void setBorderRightWidth(int i)
i
- new value for border-right-widthpublic void setBorderTopWidth(int i)
i
- new value for border-top-widthpublic void setMarginBottom(RelativeLength length)
length
- new value for margin-bottompublic void setMarginLeft(RelativeLength length)
length
- new value for margin-leftpublic void setMarginRight(RelativeLength length)
length
- new value for margin-rightpublic void setMarginTop(RelativeLength length)
length
- new value for margin-toppublic void setPaddingBottom(RelativeLength length)
length
- new value for padding-bottompublic void setPaddingLeft(RelativeLength length)
length
- new value for padding-leftpublic void setPaddingRight(RelativeLength length)
length
- new value for padding-rightpublic void setPaddingTop(RelativeLength length)
length
- new value for padding-top
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |