@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(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.
(指定用于填充的 blip 或图像部分。)
|
java.awt.geom.Point2D |
getOffset() |
java.awt.geom.Dimension2D |
getScale() |
Insets2D |
getStretch()
The stretch specifies the edges of a fill rectangle.
(拉伸指定填充矩形的边缘。)
|
boolean |
isRotatedWithShape() |
public XSLFTexturePaint(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
(接口 PaintStyle.TexturePaint 中的 getImageData)
public java.lang.String getContentType()
getContentType
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 getContentType)
public int getAlpha()
getAlpha
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 getAlpha)
public boolean isRotatedWithShape()
isRotatedWithShape
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 isRotatedWithShape)
true
, if the rotation of the shape is also applied to the texture paint
(true,如果形状的旋转也应用于纹理绘制)
public java.awt.geom.Dimension2D getScale()
getScale
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 getScale)
null
if no scaling is applied
(瓷砖的尺寸,以形状尺寸的百分比表示,如果未应用缩放,则为 null)
public java.awt.geom.Point2D getOffset()
getOffset
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 getOffset)
null
if there's no offset
(瓦片的偏移量,如果没有偏移量,则为 null)
public PaintStyle.FlipMode getFlipMode()
getFlipMode
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 getFlipMode)
public PaintStyle.TextureAlignment getAlignment()
getAlignment
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 getAlignment)
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.
(指定用于填充的 blip 或图像部分。图像的每个边缘都由与边界框边缘的百分比偏移量定义。正百分比指定插入,负百分比指定开始。百分比是基于 100000 的整数,因此 100% = 100000。因此,例如,25% 的左偏移指定图像的左边缘位于边界框左边缘的右侧边界的 25%盒子的宽度。)getInsets
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 getInsets)
public Insets2D getStretch()
PaintStyle.TexturePaint
Each edge of the fill rectangle is defined by a perentage 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.
(拉伸指定填充矩形的边缘。填充矩形的每条边由图片边界框的相应边的百分比偏移量定义。正百分比指定插入,负百分比指定开始。百分比是基于 100000 的整数,因此 100% = 100000。)getStretch
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 getStretch)
public java.util.List<ColorStyle> getDuoTone()
PaintStyle.TexturePaint
getDuoTone
in interface
PaintStyle.TexturePaint
(接口 PaintStyle.TexturePaint 中的 getDuoTone)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.