Package com.aowagie.text.pdf.codec.wmf
Class MetaDo
- java.lang.Object
-
- com.aowagie.text.pdf.codec.wmf.MetaDo
-
public class MetaDo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private intbottomprivate PdfContentBytecbprivate InputMetainprivate intinchprivate intleftprivate static intMETA_ARCprivate static intMETA_CHORDprivate static intMETA_CREATEBRUSHINDIRECTprivate static intMETA_CREATEFONTINDIRECTprivate static intMETA_CREATEPALETTEprivate static intMETA_CREATEPENINDIRECTprivate static intMETA_CREATEREGIONprivate static intMETA_DELETEOBJECTprivate static intMETA_DIBCREATEPATTERNBRUSHprivate static intMETA_DIBSTRETCHBLTprivate static intMETA_ELLIPSEprivate static intMETA_EXTTEXTOUTprivate static intMETA_INTERSECTCLIPRECTprivate static intMETA_LINETOprivate static intMETA_MOVETOprivate static intMETA_PIEprivate static intMETA_POLYGONprivate static intMETA_POLYLINEprivate static intMETA_POLYPOLYGONprivate static intMETA_RECTANGLEprivate static intMETA_RESTOREDCprivate static intMETA_ROUNDRECTprivate static intMETA_SAVEDCprivate static intMETA_SELECTOBJECTprivate static intMETA_SETBKCOLORprivate static intMETA_SETBKMODEprivate static intMETA_SETPIXELprivate static intMETA_SETPOLYFILLMODEprivate static intMETA_SETTEXTALIGNprivate static intMETA_SETTEXTCOLORprivate static intMETA_SETWINDOWEXTprivate static intMETA_SETWINDOWORGprivate static intMETA_STRETCHDIBprivate static intMETA_TEXTOUTprivate intrightprivate MetaStatestateprivate inttop
-
Constructor Summary
Constructors Constructor Description MetaDo(java.io.InputStream in, PdfContentByte cb)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static floatgetArc(float xCenter, float yCenter, float xDot, float yDot)private booleanisNullStrokeFill(boolean isRectangle)private voidoutputText(int x, int y, int flag, int x1, int y1, int x2, int y2, java.lang.String text)voidreadAll()private voidstrokeAndFill()private static voidwriteDWord(java.io.OutputStream os, int v)private static voidwriteWord(java.io.OutputStream os, int v)
-
-
-
Field Detail
-
META_SETBKCOLOR
private static final int META_SETBKCOLOR
- See Also:
- Constant Field Values
-
META_SETBKMODE
private static final int META_SETBKMODE
- See Also:
- Constant Field Values
-
META_SETPOLYFILLMODE
private static final int META_SETPOLYFILLMODE
- See Also:
- Constant Field Values
-
META_SETTEXTCOLOR
private static final int META_SETTEXTCOLOR
- See Also:
- Constant Field Values
-
META_SETWINDOWORG
private static final int META_SETWINDOWORG
- See Also:
- Constant Field Values
-
META_SETWINDOWEXT
private static final int META_SETWINDOWEXT
- See Also:
- Constant Field Values
-
META_LINETO
private static final int META_LINETO
- See Also:
- Constant Field Values
-
META_MOVETO
private static final int META_MOVETO
- See Also:
- Constant Field Values
-
META_INTERSECTCLIPRECT
private static final int META_INTERSECTCLIPRECT
- See Also:
- Constant Field Values
-
META_ARC
private static final int META_ARC
- See Also:
- Constant Field Values
-
META_ELLIPSE
private static final int META_ELLIPSE
- See Also:
- Constant Field Values
-
META_PIE
private static final int META_PIE
- See Also:
- Constant Field Values
-
META_RECTANGLE
private static final int META_RECTANGLE
- See Also:
- Constant Field Values
-
META_ROUNDRECT
private static final int META_ROUNDRECT
- See Also:
- Constant Field Values
-
META_SAVEDC
private static final int META_SAVEDC
- See Also:
- Constant Field Values
-
META_SETPIXEL
private static final int META_SETPIXEL
- See Also:
- Constant Field Values
-
META_TEXTOUT
private static final int META_TEXTOUT
- See Also:
- Constant Field Values
-
META_POLYGON
private static final int META_POLYGON
- See Also:
- Constant Field Values
-
META_POLYLINE
private static final int META_POLYLINE
- See Also:
- Constant Field Values
-
META_RESTOREDC
private static final int META_RESTOREDC
- See Also:
- Constant Field Values
-
META_SELECTOBJECT
private static final int META_SELECTOBJECT
- See Also:
- Constant Field Values
-
META_SETTEXTALIGN
private static final int META_SETTEXTALIGN
- See Also:
- Constant Field Values
-
META_CHORD
private static final int META_CHORD
- See Also:
- Constant Field Values
-
META_EXTTEXTOUT
private static final int META_EXTTEXTOUT
- See Also:
- Constant Field Values
-
META_POLYPOLYGON
private static final int META_POLYPOLYGON
- See Also:
- Constant Field Values
-
META_DIBSTRETCHBLT
private static final int META_DIBSTRETCHBLT
- See Also:
- Constant Field Values
-
META_DIBCREATEPATTERNBRUSH
private static final int META_DIBCREATEPATTERNBRUSH
- See Also:
- Constant Field Values
-
META_STRETCHDIB
private static final int META_STRETCHDIB
- See Also:
- Constant Field Values
-
META_DELETEOBJECT
private static final int META_DELETEOBJECT
- See Also:
- Constant Field Values
-
META_CREATEPALETTE
private static final int META_CREATEPALETTE
- See Also:
- Constant Field Values
-
META_CREATEPENINDIRECT
private static final int META_CREATEPENINDIRECT
- See Also:
- Constant Field Values
-
META_CREATEFONTINDIRECT
private static final int META_CREATEFONTINDIRECT
- See Also:
- Constant Field Values
-
META_CREATEBRUSHINDIRECT
private static final int META_CREATEBRUSHINDIRECT
- See Also:
- Constant Field Values
-
META_CREATEREGION
private static final int META_CREATEREGION
- See Also:
- Constant Field Values
-
cb
private final PdfContentByte cb
-
in
private final InputMeta in
-
left
private int left
-
top
private int top
-
right
private int right
-
bottom
private int bottom
-
inch
private int inch
-
state
private final MetaState state
-
-
Constructor Detail
-
MetaDo
public MetaDo(java.io.InputStream in, PdfContentByte cb)
-
-
Method Detail
-
readAll
public void readAll() throws java.io.IOException, DocumentException- Throws:
java.io.IOExceptionDocumentException
-
outputText
private void outputText(int x, int y, int flag, int x1, int y1, int x2, int y2, java.lang.String text)
-
isNullStrokeFill
private boolean isNullStrokeFill(boolean isRectangle)
-
strokeAndFill
private void strokeAndFill()
-
getArc
private static float getArc(float xCenter, float yCenter, float xDot, float yDot)
-
writeWord
private static void writeWord(java.io.OutputStream os, int v) throws java.io.IOException- Throws:
java.io.IOException
-
writeDWord
private static void writeDWord(java.io.OutputStream os, int v) throws java.io.IOException- Throws:
java.io.IOException
-
-