Package org.apache.poi.hwmf.draw
Class HwmfDrawProperties
- java.lang.Object
 - 
- org.apache.poi.hwmf.draw.HwmfDrawProperties
 
 
- 
public class HwmfDrawProperties extends java.lang.Object 
- 
- 
Constructor Summary
Constructors Constructor Description HwmfDrawProperties()HwmfDrawProperties(HwmfDrawProperties other) 
- 
Method Summary
 
 - 
 
- 
- 
Constructor Detail
- 
HwmfDrawProperties
public HwmfDrawProperties()
 
- 
HwmfDrawProperties
public HwmfDrawProperties(HwmfDrawProperties other)
 
 - 
 
- 
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)
 
- 
getMapMode
public HwmfMapMode getMapMode()
 
- 
getBrushStyle
public HwmfBrushStyle getBrushStyle()
 
- 
setBrushStyle
public void setBrushStyle(HwmfBrushStyle brushStyle)
 
- 
getBrushHatch
public HwmfHatchStyle getBrushHatch()
 
- 
setBrushHatch
public void setBrushHatch(HwmfHatchStyle brushHatch)
 
- 
getBrushColor
public HwmfColorRef getBrushColor()
 
- 
setBrushColor
public void setBrushColor(HwmfColorRef brushColor)
 
- 
getBkMode
public HwmfMisc.WmfSetBkMode.HwmfBkMode getBkMode()
 
- 
setBkMode
public void setBkMode(HwmfMisc.WmfSetBkMode.HwmfBkMode bkMode)
 
- 
getPenStyle
public HwmfPenStyle getPenStyle()
 
- 
setPenStyle
public void setPenStyle(HwmfPenStyle penStyle)
 
- 
getPenColor
public HwmfColorRef getPenColor()
 
- 
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)
 
- 
getPolyfillMode
public HwmfFill.WmfSetPolyfillMode.HwmfPolyfillMode getPolyfillMode()
 
- 
setPolyfillMode
public void setPolyfillMode(HwmfFill.WmfSetPolyfillMode.HwmfPolyfillMode polyfillMode)
 
- 
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)
 
- 
getTextColor
public HwmfColorRef getTextColor()
 
- 
setTextColor
public void setTextColor(HwmfColorRef textColor)
 
- 
getFont
public HwmfFont getFont()
 
- 
setFont
public void setFont(HwmfFont font)
 
- 
getTextAlignLatin
public HwmfText.HwmfTextAlignment getTextAlignLatin()
 
- 
setTextAlignLatin
public void setTextAlignLatin(HwmfText.HwmfTextAlignment textAlignLatin)
 
- 
getTextVAlignLatin
public HwmfText.HwmfTextVerticalAlignment getTextVAlignLatin()
 
- 
setTextVAlignLatin
public void setTextVAlignLatin(HwmfText.HwmfTextVerticalAlignment textVAlignLatin)
 
- 
getTextAlignAsian
public HwmfText.HwmfTextAlignment getTextAlignAsian()
 
- 
setTextAlignAsian
public void setTextAlignAsian(HwmfText.HwmfTextAlignment textAlignAsian)
 
- 
getTextVAlignAsian
public HwmfText.HwmfTextVerticalAlignment getTextVAlignAsian()
 
- 
setTextVAlignAsian
public void setTextVAlignAsian(HwmfText.HwmfTextVerticalAlignment textVAlignAsian)
 
 - 
 
 -