Class IFState
java.lang.Object
org.apache.fop.render.intermediate.IFState
a state class for intermediate format data
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IFStatecreate()Returns the font family.intReturns the font size.Returns the font style.Returns the font variant.intReturns the font weight.Returns the text color.booleanpop()push()voidreset font changedvoidsetFontFamily(String family) Sets the font family.voidsetFontSize(int size) Sets the font size.voidsetFontStyle(String style) Set the font stylevoidsetFontVariant(String variant) Sets the font variant.voidsetFontWeight(int weight) Sets the font weightvoidsetTextColor(Color color) Sets the text color.
-
Field Details
-
parent
-
fontFamily
-
fontSize
private int fontSize -
fontStyle
-
fontWeight
private int fontWeight -
fontVariant
-
fontChanged
private boolean fontChanged -
textColor
-
-
Constructor Details
-
IFState
private IFState() -
IFState
-
-
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
-
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
-
setFontStyle
-
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
-
setFontVariant
Sets the font variant.- Parameters:
variant- the new font variant
-
getTextColor
-
setTextColor
-