Class MfDcState

  • All Implemented Interfaces:
    Cloneable

    public class MfDcState
    extends Object
    implements Cloneable
    Track the state of the DeviceContext of a Windows metafile.
    • Constructor Detail

      • MfDcState

        public MfDcState​(WmfFile parent)
      • MfDcState

        public MfDcState​(MfDcState copy)
    • Method Detail

      • restoredState

        public void restoredState()
      • getClipRegion

        public Rectangle getClipRegion()
      • setClipRegion

        public void setClipRegion​(Rectangle clipRegion)
      • getBkMode

        public int getBkMode()
      • setBkMode

        public void setBkMode​(int bkmode)
      • getBreakCount

        public int getBreakCount()
      • getExtraSpaceLength

        public int getExtraSpaceLength()
      • setTextJustification

        public void setTextJustification​(int breakCount,
                                         int extraSpaceLength)
      • getStretchBltMode

        public int getStretchBltMode()
      • setStretchBltMode

        public void setStretchBltMode​(int stretchBltMode)
      • getTextColor

        public Color getTextColor()
      • setTextColor

        public void setTextColor​(Color textColor)
      • getTextCharExtra

        public int getTextCharExtra()
      • setTextCharExtra

        public void setTextCharExtra​(int textCharExtra)
      • getMapMode

        public int getMapMode()
      • setMapMode

        public void setMapMode​(int mapMode)
      • getMapperFlag

        public int getMapperFlag()
      • setMapperFlag

        public void setMapperFlag​(int mapperFlag)
      • getROP

        public int getROP()
      • setROP

        public void setROP​(int rop)
      • getPolyFillMode

        public int getPolyFillMode()
      • setPolyFillMode

        public void setPolyFillMode​(int mode)
      • setWindowOrg

        public void setWindowOrg​(int windowOrgX,
                                 int windowOrgY)
      • getWindowOrgX

        public int getWindowOrgX()
      • getWindowOrgY

        public int getWindowOrgY()
      • setWindowExt

        public void setWindowExt​(int windowExtX,
                                 int windowExtY)
      • getWindowExtX

        public int getWindowExtX()
      • getWindowExtY

        public int getWindowExtY()
      • setViewportOrg

        public void setViewportOrg​(int viewportOrgX,
                                   int viewportOrgY)
      • getViewportOrgX

        public int getViewportOrgX()
      • getViewportOrgY

        public int getViewportOrgY()
      • setViewportExt

        public void setViewportExt​(int viewportExtX,
                                   int viewportExtY)
      • getViewportExtX

        public int getViewportExtX()
      • getViewportExtY

        public int getViewportExtY()
      • setCurPos

        public void setCurPos​(int _curPosX,
                              int _curPosY)
      • getCurPosX

        public int getCurPosX()
      • getCurPosY

        public int getCurPosY()
      • getTextAlign

        public int getTextAlign()
      • setTextAlign

        public void setTextAlign​(int textAlign)
      • setFgColor

        public void setFgColor​(Color fgColor)
      • setBkColor

        public void setBkColor​(Color bkColor)
      • getFgColor

        public Color getFgColor()
      • getBkColor

        public Color getBkColor()
      • getLogPen

        public MfLogPen getLogPen()
      • setLogFont

        public void setLogFont​(MfLogFont logFont)
      • setLogBrush

        public void setLogBrush​(MfLogBrush logBrush)
      • setLogPen

        public void setLogPen​(MfLogPen logPen)
      • setLogPalette

        public void setLogPalette​(MfLogPalette logPalette)
      • setLogRegion

        public void setLogRegion​(MfLogRegion logRegion)
      • getPhysicalX

        public int getPhysicalX​(int logPointX)
      • getPhysicalY

        public int getPhysicalY​(int logPointY)
      • prepareDraw

        public void prepareDraw()
      • postDraw

        public void postDraw()
      • prepareDrawText

        public void prepareDrawText()
      • postDrawText

        public void postDrawText()
      • preparePaint

        public void preparePaint()
      • postPaint

        public void postPaint()
      • getVerticalTextAlignment

        public int getVerticalTextAlignment()
      • getHorizontalTextAlignment

        public int getHorizontalTextAlignment()