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.int
double
double
Gets the last stored regionvoid
setBackgroundColor
(HwmfColorRef backgroundColor) void
void
setBrushBitmap
(BufferedImage brushBitmap) void
setBrushColor
(HwmfColorRef brushColor) void
setBrushHatch
(HwmfHatchStyle brushHatch) void
setBrushStyle
(HwmfBrushStyle brushStyle) void
void
setLocation
(double x, double y) void
setMapMode
(HwmfMapMode mapMode) void
setPalette
(List<HwmfPalette.PaletteEntry> palette) Sets the current palette.void
setPaletteOffset
(int paletteOffset) void
setPenColor
(HwmfColorRef penColor) void
setPenMiterLimit
(double penMiterLimit) void
setPenStyle
(HwmfPenStyle penStyle) void
setPenWidth
(double penWidth) void
setPolyfillMode
(HwmfFill.WmfSetPolyfillMode.HwmfPolyfillMode polyfillMode) void
Sets a region for further usagevoid
setTextAlignAsian
(HwmfText.HwmfTextAlignment textAlignAsian) void
setTextAlignLatin
(HwmfText.HwmfTextAlignment textAlignLatin) void
setTextColor
(HwmfColorRef textColor) void
setTextVAlignAsian
(HwmfText.HwmfTextVerticalAlignment textVAlignAsian) void
setTextVAlignLatin
(HwmfText.HwmfTextVerticalAlignment textVAlignLatin) void
setViewportExt
(double width, double height) void
setViewportOrg
(double x, double y) void
setWindowExt
(double width, double height) void
setWindowOrg
(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
-