Class HwmfDrawProperties


  • public class HwmfDrawProperties
    extends java.lang.Object
    • Constructor Detail

      • HwmfDrawProperties

        public HwmfDrawProperties()
    • Method Detail

      • setViewportExt

        public void setViewportExt​(double width,
                                   double height)
      • setViewportOrg

        public void setViewportOrg​(double x,
                                   double y)
      • getViewport

        public java.awt.geom.Rectangle2D getViewport()
      • setWindowExt

        public void setWindowExt​(double width,
                                 double height)
      • setWindowOrg

        public void setWindowOrg​(double x,
                                 double y)
      • getWindow

        public java.awt.geom.Rectangle2D getWindow()
      • setLocation

        public void setLocation​(double x,
                                double y)
      • getLocation

        public java.awt.geom.Point2D getLocation()
      • setMapMode

        public void setMapMode​(HwmfMapMode mapMode)
      • setBrushStyle

        public void setBrushStyle​(HwmfBrushStyle brushStyle)
      • setBrushHatch

        public void setBrushHatch​(HwmfHatchStyle brushHatch)
      • setBrushColor

        public void setBrushColor​(HwmfColorRef brushColor)
      • setPenStyle

        public void setPenStyle​(HwmfPenStyle penStyle)
      • setPenColor

        public void setPenColor​(HwmfColorRef penColor)
      • getPenWidth

        public double getPenWidth()
      • setPenWidth

        public void setPenWidth​(double penWidth)
      • getPenMiterLimit

        public double getPenMiterLimit()
      • setPenMiterLimit

        public void setPenMiterLimit​(double penMiterLimit)
      • getBackgroundColor

        public HwmfColorRef getBackgroundColor()
      • setBackgroundColor

        public void setBackgroundColor​(HwmfColorRef backgroundColor)
      • getBrushBitmap

        public java.awt.image.BufferedImage getBrushBitmap()
      • setBrushBitmap

        public void setBrushBitmap​(java.awt.image.BufferedImage brushBitmap)
      • getRegion

        public java.awt.Shape getRegion()
        Gets the last stored region
        Returns:
        the last stored region
      • setRegion

        public void setRegion​(java.awt.Shape region)
        Sets a region for further usage
        Parameters:
        region - a region object which is usually a rectangle
      • getPalette

        public java.util.List<HwmfPalette.PaletteEntry> getPalette()
        Returns the current palette. Callers may modify the palette.
        Returns:
        the current palette or null, if it hasn't been set
      • setPalette

        public void setPalette​(java.util.List<HwmfPalette.PaletteEntry> palette)
        Sets the current palette. It's the callers duty to set a modifiable copy of the palette.
        Parameters:
        palette -
      • getPaletteOffset

        public int getPaletteOffset()
      • setPaletteOffset

        public void setPaletteOffset​(int paletteOffset)
      • setTextColor

        public void setTextColor​(HwmfColorRef textColor)
      • setFont

        public void setFont​(HwmfFont font)