public static interface PaintStyle.TexturePaint extends PaintStyle
PaintStyle.FlipMode, PaintStyle.GradientPaint, PaintStyle.PaintModifier, PaintStyle.SolidPaint, PaintStyle.TextureAlignment, PaintStyle.TexturePaint
Modifier and Type | Method and Description |
---|---|
default PaintStyle.TextureAlignment |
getAlignment() |
int |
getAlpha() |
java.lang.String |
getContentType() |
default java.util.List<ColorStyle> |
getDuoTone()
For pattern images, the duo tone defines the black/white pixel color replacement
|
default PaintStyle.FlipMode |
getFlipMode() |
java.io.InputStream |
getImageData() |
default Insets2D |
getInsets()
Specifies the portion of the blip or image that is used for the fill.
|
default java.awt.geom.Point2D |
getOffset() |
default java.awt.geom.Dimension2D |
getScale() |
default Insets2D |
getStretch()
The stretch specifies the edges of a fill rectangle.
|
default boolean |
isRotatedWithShape() |
java.io.InputStream getImageData()
java.lang.String getContentType()
int getAlpha()
default boolean isRotatedWithShape()
true
, if the rotation of the shape is also applied to the texture paintdefault java.awt.geom.Dimension2D getScale()
null
if no scaling is applieddefault java.awt.geom.Point2D getOffset()
null
if there's no offsetdefault PaintStyle.FlipMode getFlipMode()
default PaintStyle.TextureAlignment getAlignment()
default Insets2D getInsets()
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.
default Insets2D getStretch()
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.
default java.util.List<ColorStyle> getDuoTone()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.