Package org.apache.poi.hwmf.draw
Class HwmfDrawProperties
java.lang.Object
org.apache.poi.hwmf.draw.HwmfDrawProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClip()getFont()Returns the current palette.intdoubledoubleGets the last stored regionintvoidsetBackgroundColor(HwmfColorRef backgroundColor) voidvoidsetBrushBitmap(BufferedImage brushBitmap) voidsetBrushBitmap(ImageRenderer brushBitmap) voidsetBrushColor(HwmfColorRef brushColor) voidsetBrushHatch(HwmfHatchStyle brushHatch) voidsetBrushStyle(HwmfBrushStyle brushStyle) voidsetBrushTransform(AffineTransform brushTransform) voidvoidvoidsetLocation(double x, double y) voidsetLocation(Point2D point) 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) voidsetRasterOp2(HwmfBinaryRasterOp rasterOp2) voidsetRasterOp3(HwmfTernaryRasterOp rasterOp3) voidSets a region for further usagevoidsetTextAlignAsian(HwmfText.HwmfTextAlignment textAlignAsian) voidsetTextAlignLatin(HwmfText.HwmfTextAlignment textAlignLatin) voidsetTextColor(HwmfColorRef textColor) voidsetTextVAlignAsian(HwmfText.HwmfTextVerticalAlignment textVAlignAsian) voidsetTextVAlignLatin(HwmfText.HwmfTextVerticalAlignment textVAlignLatin) voidsetTransform(AffineTransform transform) 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) -
setLocation
-
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
-
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. -
getPaletteOffset
public int getPaletteOffset() -
setPaletteOffset
public void setPaletteOffset(int paletteOffset) -
getTextColor
-
setTextColor
-
getFont
-
setFont
-
getTextAlignLatin
-
setTextAlignLatin
-
getTextVAlignLatin
-
setTextVAlignLatin
-
getTextAlignAsian
-
setTextAlignAsian
-
getTextVAlignAsian
-
setTextVAlignAsian
-
getWindingRule
public int getWindingRule()- Returns:
- the current active winding rule (
Path2D.WIND_EVEN_ODDorPath2D.WIND_NON_ZERO)
-
getRasterOp3
-
setRasterOp3
-
getTransform
-
setTransform
-
getClip
-
setClip
-
getBrushTransform
-
setBrushTransform
-
getRasterOp2
-
setRasterOp2
-