public class MetaState extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALTERNATE |
static int |
OPAQUE |
static int |
TA_BASELINE |
static int |
TA_BOTTOM |
static int |
TA_CENTER |
static int |
TA_LEFT |
static int |
TA_NOUPDATECP |
static int |
TA_RIGHT |
static int |
TA_TOP |
static int |
TA_UPDATECP |
static int |
TRANSPARENT |
static int |
WINDING |
| Constructor and Description |
|---|
MetaState()
Creates new MetaState
|
MetaState(MetaState state)
Clones a new MetaState from the specified MetaState.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMetaObject(MetaObject object)
Add a MetaObject to the State.
|
void |
cleanup(PdfCanvas cb)
Restres the state of the specified PdfCanvas object for as many times as there are saved states on the stack.
|
void |
deleteMetaObject(int index)
Deletes the MetaObject at the specified index.
|
int |
getBackgroundMode()
Getter for property backgroundMode.
|
Color |
getCurrentBackgroundColor()
Getter for property currentBackgroundColor.
|
MetaBrush |
getCurrentBrush()
Returns the current MetaBrush object.
|
MetaFont |
getCurrentFont()
Returns the current MetaFont object.
|
MetaPen |
getCurrentPen()
Returns the current MetaPen object.
|
Point |
getCurrentPoint()
Returns the current Point.
|
Color |
getCurrentTextColor()
Getter for property currentTextColor.
|
boolean |
getLineNeutral()
Returns true if lineJoin is 0.
|
int |
getPolyFillMode()
Getter for property polyFillMode.
|
int |
getTextAlign()
Getter for property textAlign.
|
void |
restoreState(int index,
PdfCanvas cb)
Restores the state to the next state on the saved states stack.
|
void |
saveState(PdfCanvas cb)
Saves the state of this MetaState object.
|
void |
selectMetaObject(int index,
PdfCanvas cb)
Select the MetaObject at the specified index and prepare the PdfCanvas.
|
void |
setBackgroundMode(int backgroundMode)
Setter for property backgroundMode.
|
void |
setCurrentBackgroundColor(Color currentBackgroundColor)
Setter for property currentBackgroundColor.
|
void |
setCurrentPoint(Point p)
Sets the current Point to the specified Point.
|
void |
setCurrentTextColor(Color currentTextColor)
Setter for property currentTextColor.
|
void |
setExtentWx(int extentWx)
Sets the Wx extent value.
|
void |
setExtentWy(int extentWy)
Sets the Wy extent value.
|
void |
setLineJoinPolygon(PdfCanvas cb)
Sets the line join style to
PdfCanvasConstants.LineJoinStyle.ROUND if lineJoin is 0. |
void |
setLineJoinRectangle(PdfCanvas cb)
Sets the line join style to
PdfCanvasConstants.LineJoinStyle.MITER if lineJoin isn't 0. |
void |
setMetaState(MetaState state)
Sets every field of this MetaState to the values of the fields of the specified MetaState.
|
void |
setOffsetWx(int offsetWx)
Sets the Wx offset value.
|
void |
setOffsetWy(int offsetWy)
Sets the Wy offset value.
|
void |
setPolyFillMode(int polyFillMode)
Setter for property polyFillMode.
|
void |
setScalingX(float scalingX)
Sets the x value for scaling.
|
void |
setScalingY(float scalingY)
Sets the y value for scaling.
|
void |
setTextAlign(int textAlign)
Setter for property textAlign.
|
float |
transformAngle(float angle)
Transforms the specified angle.
|
float |
transformX(int x)
Transform the specified value.
|
float |
transformY(int y)
Transform the specified value.
|
public static final int TA_NOUPDATECP
public static final int TA_UPDATECP
public static final int TA_LEFT
public static final int TA_RIGHT
public static final int TA_CENTER
public static final int TA_TOP
public static final int TA_BOTTOM
public static final int TA_BASELINE
public static final int TRANSPARENT
public static final int OPAQUE
public static final int ALTERNATE
public static final int WINDING
public MetaState()
public MetaState(MetaState state)
state - the state to clonepublic void setMetaState(MetaState state)
state - state to copypublic void addMetaObject(MetaObject object)
object - MetaObject to be addedpublic void selectMetaObject(int index,
PdfCanvas cb)
index - position of the MetaObjectcb - PdfCanvas to preparepublic void deleteMetaObject(int index)
index - index of the MetaObject to deletepublic void saveState(PdfCanvas cb)
cb - PdfCanvas object on which saveState() will be calledpublic void restoreState(int index,
PdfCanvas cb)
index - index of the state to be restoredcb - PdfCanvas object on which restoreState() will be calledpublic void cleanup(PdfCanvas cb)
cb - PdfCanvas objectpublic float transformX(int x)
x - the value to transformpublic float transformY(int y)
y - the value to transformpublic void setScalingX(float scalingX)
scalingX - x value for scalingpublic void setScalingY(float scalingY)
scalingY - y value for scalingpublic void setOffsetWx(int offsetWx)
offsetWx - Wx offset valuepublic void setOffsetWy(int offsetWy)
offsetWy - Wy offset valuepublic void setExtentWx(int extentWx)
extentWx - Wx extent valuepublic void setExtentWy(int extentWy)
extentWy - Wy extent valuepublic float transformAngle(float angle)
angle - the angle to transformpublic void setCurrentPoint(Point p)
p - Point to setpublic Point getCurrentPoint()
public MetaBrush getCurrentBrush()
public MetaPen getCurrentPen()
public MetaFont getCurrentFont()
public Color getCurrentBackgroundColor()
public void setCurrentBackgroundColor(Color currentBackgroundColor)
currentBackgroundColor - New value of property currentBackgroundColor.public Color getCurrentTextColor()
public void setCurrentTextColor(Color currentTextColor)
currentTextColor - New value of property currentTextColor.public int getBackgroundMode()
public void setBackgroundMode(int backgroundMode)
backgroundMode - New value of property backgroundMode.public int getTextAlign()
public void setTextAlign(int textAlign)
textAlign - New value of property textAlign.public int getPolyFillMode()
public void setPolyFillMode(int polyFillMode)
polyFillMode - New value of property polyFillMode.public void setLineJoinRectangle(PdfCanvas cb)
PdfCanvasConstants.LineJoinStyle.MITER if lineJoin isn't 0.cb - PdfCanvas to set the line join stylepublic void setLineJoinPolygon(PdfCanvas cb)
PdfCanvasConstants.LineJoinStyle.ROUND if lineJoin is 0.cb - PdfCanvas to set the line join stylepublic boolean getLineNeutral()
Copyright © 1998–2025 Apryse Group NV. All rights reserved.