Class IFState
java.lang.Object
org.apache.fop.render.intermediate.IFState
a state class for intermediate format data
-
Method Summary
Modifier and TypeMethodDescriptionstatic IFState
create()
Returns the font family.int
Returns the font size.Returns the font style.Returns the font variant.int
Returns the font weight.Returns the text color.boolean
pop()
push()
void
reset font changedvoid
setFontFamily
(String family) Sets the font family.void
setFontSize
(int size) Sets the font size.void
setFontStyle
(String style) Set the font stylevoid
setFontVariant
(String variant) Sets the font variant.void
setFontWeight
(int weight) Sets the font weightvoid
setTextColor
(Color color) Sets the text color.
-
Method Details
-
create
- Returns:
- create state
-
push
- Returns:
- push state
-
pop
- Returns:
- pop state
-
isFontChanged
public boolean isFontChanged()- Returns:
- true if font changed
-
resetFontChanged
public void resetFontChanged()reset font changed -
getFontFamily
Returns the font family.- Returns:
- the font family
-
setFontFamily
Sets the font family.- Parameters:
family
- the new font family
-
getFontSize
public int getFontSize()Returns the font size.- Returns:
- the font size (in mpt)
-
setFontSize
public void setFontSize(int size) Sets the font size.- Parameters:
size
- the new font size (in mpt)
-
getFontStyle
Returns the font style.- Returns:
- the font style
-
setFontStyle
Set the font style- Parameters:
style
- the new font style
-
getFontWeight
public int getFontWeight()Returns the font weight.- Returns:
- the font weight
-
setFontWeight
public void setFontWeight(int weight) Sets the font weight- Parameters:
weight
- the new font weight
-
getFontVariant
Returns the font variant.- Returns:
- the font variant
-
setFontVariant
Sets the font variant.- Parameters:
variant
- the new font variant
-
getTextColor
Returns the text color.- Returns:
- the text color
-
setTextColor
Sets the text color.- Parameters:
color
- the new text color
-