Package org.apache.poi.hwmf.draw
Class HwmfDrawProperties
java.lang.Object
org.apache.poi.hwmf.draw.HwmfDrawProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFont()Returns the current palette.intdoubledoubleGets the last stored regionvoidsetBackgroundColor(HwmfColorRef backgroundColor) voidvoidsetBrushBitmap(BufferedImage brushBitmap) voidsetBrushColor(HwmfColorRef brushColor) voidsetBrushHatch(HwmfHatchStyle brushHatch) voidsetBrushStyle(HwmfBrushStyle brushStyle) voidvoidsetLocation(double x, double y) voidsetMapMode(HwmfMapMode mapMode) voidsetPalette(List<HwmfPalette.PaletteEntry> palette) Sets the current palette.voidsetPaletteOffset(int paletteOffset) voidsetPenColor(HwmfColorRef penColor) voidsetPenMiterLimit(double penMiterLimit) voidsetPenStyle(HwmfPenStyle penStyle) voidsetPenWidth(double penWidth) voidsetPolyfillMode(HwmfFill.WmfSetPolyfillMode.HwmfPolyfillMode polyfillMode) voidSets a region for further usagevoidsetTextAlignAsian(HwmfText.HwmfTextAlignment textAlignAsian) voidsetTextAlignLatin(HwmfText.HwmfTextAlignment textAlignLatin) voidsetTextColor(HwmfColorRef textColor) voidsetTextVAlignAsian(HwmfText.HwmfTextVerticalAlignment textVAlignAsian) voidsetTextVAlignLatin(HwmfText.HwmfTextVerticalAlignment textVAlignLatin) voidsetViewportExt(double width, double height) voidsetViewportOrg(double x, double y) voidsetWindowExt(double width, double height) voidsetWindowOrg(double x, double y)
-
Constructor Details
-
HwmfDrawProperties
public HwmfDrawProperties() -
HwmfDrawProperties
-
-
Method Details
-
setViewportExt
public void setViewportExt(double width, double height) -
setViewportOrg
public void setViewportOrg(double x, double y) -
getViewport
-
setWindowExt
public void setWindowExt(double width, double height) -
setWindowOrg
public void setWindowOrg(double x, double y) -
getWindow
-
setLocation
public void setLocation(double x, double y) -
getLocation
-
setMapMode
-
getMapMode
-
getBrushStyle
-
setBrushStyle
-
getBrushHatch
-
setBrushHatch
-
getBrushColor
-
setBrushColor
-
getBkMode
-
setBkMode
-
getPenStyle
-
setPenStyle
-
getPenColor
-
setPenColor
-
getPenWidth
public double getPenWidth() -
setPenWidth
public void setPenWidth(double penWidth) -
getPenMiterLimit
public double getPenMiterLimit() -
setPenMiterLimit
public void setPenMiterLimit(double penMiterLimit) -
getBackgroundColor
-
setBackgroundColor
-
getPolyfillMode
-
setPolyfillMode
-
getBrushBitmap
-
setBrushBitmap
-
getRegion
Gets the last stored region- Returns:
- the last stored region
-
setRegion
Sets a region for further usage- Parameters:
region- a region object which is usually a rectangle
-
getPalette
Returns the current palette. Callers may modify the palette.- Returns:
- the current palette or null, if it hasn't been set
-
setPalette
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
-
setTextColor
-
getFont
-
setFont
-
getTextAlignLatin
-
setTextAlignLatin
-
getTextVAlignLatin
-
setTextVAlignLatin
-
getTextAlignAsian
-
setTextAlignAsian
-
getTextVAlignAsian
-
setTextVAlignAsian
-