Package com.aowagie.text.pdf.codec.wmf
Class MetaState
- java.lang.Object
-
- com.aowagie.text.pdf.codec.wmf.MetaState
-
class MetaState extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
ALTERNATE
private int
backgroundMode
private java.awt.Color
currentBackgroundColor
private MetaBrush
currentBrush
private MetaFont
currentFont
private MetaPen
currentPen
private java.awt.Point
currentPoint
private java.awt.Color
currentTextColor
private int
extentWx
private int
extentWy
private int
lineJoin
private java.util.ArrayList
MetaObjects
private int
offsetWx
private int
offsetWy
static int
OPAQUE
private int
polyFillMode
private java.util.Stack
savedStates
private float
scalingX
private float
scalingY
(package private) static int
TA_BASELINE
(package private) static int
TA_BOTTOM
(package private) static int
TA_CENTER
(package private) static int
TA_RIGHT
private int
textAlign
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetaObject(MetaObject object)
void
cleanup(PdfContentByte cb)
void
deleteMetaObject(int index)
int
getBackgroundMode()
Getter for property backgroundMode.java.awt.Color
getCurrentBackgroundColor()
Getter for property currentBackgroundColor.MetaBrush
getCurrentBrush()
MetaFont
getCurrentFont()
MetaPen
getCurrentPen()
java.awt.Point
getCurrentPoint()
java.awt.Color
getCurrentTextColor()
Getter for property currentTextColor.boolean
getLineNeutral()
int
getPolyFillMode()
Getter for property polyFillMode.int
getTextAlign()
Getter for property textAlign.void
restoreState(int index, PdfContentByte cb)
void
saveState(PdfContentByte cb)
void
selectMetaObject(int index, PdfContentByte cb)
void
setBackgroundMode(int backgroundMode)
Setter for property backgroundMode.void
setCurrentBackgroundColor(java.awt.Color currentBackgroundColor)
Setter for property currentBackgroundColor.void
setCurrentPoint(java.awt.Point p)
void
setCurrentTextColor(java.awt.Color currentTextColor)
Setter for property currentTextColor.void
setExtentWx(int extentWx)
void
setExtentWy(int extentWy)
void
setLineJoinPolygon(PdfContentByte cb)
void
setLineJoinRectangle(PdfContentByte cb)
void
setMetaState(MetaState state)
void
setOffsetWx(int offsetWx)
void
setOffsetWy(int offsetWy)
void
setPolyFillMode(int polyFillMode)
Setter for property polyFillMode.void
setScalingX(float scalingX)
void
setScalingY(float scalingY)
void
setTextAlign(int textAlign)
Setter for property textAlign.float
transformAngle(float angle)
float
transformX(int x)
float
transformY(int y)
-
-
-
Field Detail
-
TA_RIGHT
static final int TA_RIGHT
- See Also:
- Constant Field Values
-
TA_CENTER
static final int TA_CENTER
- See Also:
- Constant Field Values
-
TA_BOTTOM
static final int TA_BOTTOM
- See Also:
- Constant Field Values
-
TA_BASELINE
static final int TA_BASELINE
- See Also:
- Constant Field Values
-
OPAQUE
public static final int OPAQUE
- See Also:
- Constant Field Values
-
ALTERNATE
static final int ALTERNATE
- See Also:
- Constant Field Values
-
savedStates
private java.util.Stack savedStates
-
MetaObjects
private java.util.ArrayList MetaObjects
-
currentPoint
private java.awt.Point currentPoint
-
currentPen
private MetaPen currentPen
-
currentBrush
private MetaBrush currentBrush
-
currentFont
private MetaFont currentFont
-
currentBackgroundColor
private java.awt.Color currentBackgroundColor
-
currentTextColor
private java.awt.Color currentTextColor
-
backgroundMode
private int backgroundMode
-
polyFillMode
private int polyFillMode
-
lineJoin
private int lineJoin
-
textAlign
private int textAlign
-
offsetWx
private int offsetWx
-
offsetWy
private int offsetWy
-
extentWx
private int extentWx
-
extentWy
private int extentWy
-
scalingX
private float scalingX
-
scalingY
private float scalingY
-
-
Constructor Detail
-
MetaState
public MetaState()
Creates new MetaState
-
MetaState
private MetaState(MetaState state)
-
-
Method Detail
-
setMetaState
public void setMetaState(MetaState state)
-
addMetaObject
public void addMetaObject(MetaObject object)
-
selectMetaObject
public void selectMetaObject(int index, PdfContentByte cb)
-
deleteMetaObject
public void deleteMetaObject(int index)
-
saveState
public void saveState(PdfContentByte cb)
-
restoreState
public void restoreState(int index, PdfContentByte cb)
-
cleanup
public void cleanup(PdfContentByte cb)
-
transformX
public float transformX(int x)
-
transformY
public float transformY(int y)
-
setScalingX
public void setScalingX(float scalingX)
-
setScalingY
public void setScalingY(float scalingY)
-
setOffsetWx
public void setOffsetWx(int offsetWx)
-
setOffsetWy
public void setOffsetWy(int offsetWy)
-
setExtentWx
public void setExtentWx(int extentWx)
-
setExtentWy
public void setExtentWy(int extentWy)
-
transformAngle
public float transformAngle(float angle)
-
setCurrentPoint
public void setCurrentPoint(java.awt.Point p)
-
getCurrentPoint
public java.awt.Point getCurrentPoint()
-
getCurrentBrush
public MetaBrush getCurrentBrush()
-
getCurrentPen
public MetaPen getCurrentPen()
-
getCurrentFont
public MetaFont getCurrentFont()
-
getCurrentBackgroundColor
public java.awt.Color getCurrentBackgroundColor()
Getter for property currentBackgroundColor.- Returns:
- Value of property currentBackgroundColor.
-
setCurrentBackgroundColor
public void setCurrentBackgroundColor(java.awt.Color currentBackgroundColor)
Setter for property currentBackgroundColor.- Parameters:
currentBackgroundColor
- New value of property currentBackgroundColor.
-
getCurrentTextColor
public java.awt.Color getCurrentTextColor()
Getter for property currentTextColor.- Returns:
- Value of property currentTextColor.
-
setCurrentTextColor
public void setCurrentTextColor(java.awt.Color currentTextColor)
Setter for property currentTextColor.- Parameters:
currentTextColor
- New value of property currentTextColor.
-
getBackgroundMode
public int getBackgroundMode()
Getter for property backgroundMode.- Returns:
- Value of property backgroundMode.
-
setBackgroundMode
public void setBackgroundMode(int backgroundMode)
Setter for property backgroundMode.- Parameters:
backgroundMode
- New value of property backgroundMode.
-
getTextAlign
public int getTextAlign()
Getter for property textAlign.- Returns:
- Value of property textAlign.
-
setTextAlign
public void setTextAlign(int textAlign)
Setter for property textAlign.- Parameters:
textAlign
- New value of property textAlign.
-
getPolyFillMode
public int getPolyFillMode()
Getter for property polyFillMode.- Returns:
- Value of property polyFillMode.
-
setPolyFillMode
public void setPolyFillMode(int polyFillMode)
Setter for property polyFillMode.- Parameters:
polyFillMode
- New value of property polyFillMode.
-
setLineJoinRectangle
public void setLineJoinRectangle(PdfContentByte cb)
-
setLineJoinPolygon
public void setLineJoinPolygon(PdfContentByte cb)
-
getLineNeutral
public boolean getLineNeutral()
-
-