@Internal public class XSLFTexturePaint extends java.lang.Object implements PaintStyle.TexturePaint
PaintStyle.FlipMode, PaintStyle.GradientPaint, PaintStyle.PaintModifier, PaintStyle.SolidPaint, PaintStyle.TextureAlignment, PaintStyle.TexturePaint
Constructor and Description |
---|
XSLFTexturePaint(XSLFShape shape,
org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties blipFill,
PackagePart parentPart,
org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor phClr,
XSLFTheme theme,
XSLFSheet sheet) |
Modifier and Type | Method and Description |
---|---|
PaintStyle.TextureAlignment |
getAlignment() |
int |
getAlpha() |
java.lang.String |
getContentType() |
java.util.List<ColorStyle> |
getDuoTone()
For pattern images, the duo tone defines the black/white pixel color replacement
|
PaintStyle.FlipMode |
getFlipMode() |
java.io.InputStream |
getImageData() |
Insets2D |
getInsets()
Specifies the portion of the blip or image that is used for the fill.
|
java.awt.geom.Point2D |
getOffset() |
java.awt.geom.Dimension2D |
getScale() |
Shape |
getShape() |
Insets2D |
getStretch()
The stretch specifies the edges of a fill rectangle.
|
boolean |
isRotatedWithShape() |
public XSLFTexturePaint(XSLFShape shape, org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties blipFill, PackagePart parentPart, org.openxmlformats.schemas.drawingml.x2006.main.CTSchemeColor phClr, XSLFTheme theme, XSLFSheet sheet)
public java.io.InputStream getImageData()
getImageData
in interface PaintStyle.TexturePaint
public java.lang.String getContentType()
getContentType
in interface PaintStyle.TexturePaint
public int getAlpha()
getAlpha
in interface PaintStyle.TexturePaint
public boolean isRotatedWithShape()
isRotatedWithShape
in interface PaintStyle.TexturePaint
true
, if the rotation of the shape is also applied to the texture paintpublic java.awt.geom.Dimension2D getScale()
getScale
in interface PaintStyle.TexturePaint
null
if no scaling is appliedpublic java.awt.geom.Point2D getOffset()
getOffset
in interface PaintStyle.TexturePaint
null
if there's no offsetpublic PaintStyle.FlipMode getFlipMode()
getFlipMode
in interface PaintStyle.TexturePaint
public PaintStyle.TextureAlignment getAlignment()
getAlignment
in interface PaintStyle.TexturePaint
public Insets2D getInsets()
PaintStyle.TexturePaint
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.
getInsets
in interface PaintStyle.TexturePaint
public Insets2D getStretch()
PaintStyle.TexturePaint
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.
getStretch
in interface PaintStyle.TexturePaint
public java.util.List<ColorStyle> getDuoTone()
PaintStyle.TexturePaint
getDuoTone
in interface PaintStyle.TexturePaint
public Shape getShape()
getShape
in interface PaintStyle.TexturePaint
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.