Package org.apache.poi.xslf.usermodel
Class XSLFTexturePaint
java.lang.Object
org.apache.poi.xslf.usermodel.XSLFTexturePaint
- All Implemented Interfaces:
PaintStyle,PaintStyle.TexturePaint
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.PaintStyle
PaintStyle.FlipMode, PaintStyle.GradientPaint, PaintStyle.PaintModifier, PaintStyle.SolidPaint, PaintStyle.TextureAlignment, PaintStyle.TexturePaint -
Constructor Summary
ConstructorsConstructorDescriptionXSLFTexturePaint(XSLFShape shape, CTBlipFillProperties blipFill, PackagePart parentPart, CTSchemeColor phClr, XSLFTheme theme, XSLFSheet sheet) -
Method Summary
-
Constructor Details
-
XSLFTexturePaint
public XSLFTexturePaint(XSLFShape shape, CTBlipFillProperties blipFill, PackagePart parentPart, CTSchemeColor phClr, XSLFTheme theme, XSLFSheet sheet)
-
-
Method Details
-
getImageData
- Specified by:
getImageDatain interfacePaintStyle.TexturePaint- Returns:
- the raw image stream
-
getContentType
- Specified by:
getContentTypein interfacePaintStyle.TexturePaint- Returns:
- the content type of the image data
-
getAlpha
public int getAlpha()- Specified by:
getAlphain interfacePaintStyle.TexturePaint- Returns:
- the alpha mask in percents [0..100000]
-
isRotatedWithShape
public boolean isRotatedWithShape()- Specified by:
isRotatedWithShapein interfacePaintStyle.TexturePaint- Returns:
true, if the rotation of the shape is also applied to the texture paint
-
getScale
- Specified by:
getScalein interfacePaintStyle.TexturePaint- Returns:
- the dimensions of the tiles in percent of the shape dimensions
or
nullif no scaling is applied
-
getOffset
- Specified by:
getOffsetin interfacePaintStyle.TexturePaint- Returns:
- the offset of the tiles in points or
nullif there's no offset
-
getFlipMode
- Specified by:
getFlipModein interfacePaintStyle.TexturePaint- Returns:
- the flip/mirroring/duplication mode
-
getAlignment
- Specified by:
getAlignmentin interfacePaintStyle.TexturePaint
-
getInsets
Description copied from interface:PaintStyle.TexturePaintSpecifies the portion of the blip or image that is used for the fill.Each edge of the image is defined by a percentage offset from the edge of the bounding box. A positive percentage specifies an inset and a negative percentage specifies an outset.
The percentage are ints based on 100000, so 100% = 100000.
So, for example, a left offset of 25% specifies that the left edge of the image is located to the right of the bounding box's left edge by 25% of the bounding box's width.
- Specified by:
getInsetsin interfacePaintStyle.TexturePaint- Returns:
- the cropping insets of the source image
-
getStretch
Description copied from interface:PaintStyle.TexturePaintThe stretch specifies the edges of a fill rectangle.Each edge of the fill rectangle is defined by a percentage offset from the corresponding edge of the picture's bounding box. A positive percentage specifies an inset and a negative percentage specifies an outset.
The percentage are ints based on 100000, so 100% = 100000.
- Specified by:
getStretchin interfacePaintStyle.TexturePaint- Returns:
- the stretching in the destination image
-
getDuoTone
Description copied from interface:PaintStyle.TexturePaintFor pattern images, the duo tone defines the black/white pixel color replacement- Specified by:
getDuoTonein interfacePaintStyle.TexturePaint
-
getShape
- Specified by:
getShapein interfacePaintStyle.TexturePaint- Returns:
- the shape this texture paint is applied to
-