XpsTilingBrush

Inheritance: java.lang.Object, com.aspose.xps.XpsObject, com.aspose.xps.XpsBrush, com.aspose.xps.XpsTransformableBrush

public abstract class XpsTilingBrush extends XpsTransformableBrush

Class incapsulating common features of tiling brushes elements (VisualBrush and ImageBrush).

Methods

MethodDescription
getViewbox()Returns the region of the source content of the brush that is to be mapped to the viewport.
setViewbox(Rectangle2D value)Sets the region of the source content of the brush that is to be mapped to the viewport.
getViewport()Returns the position and dimensions of the first brush tile.
setViewport(Rectangle2D value)Sets the position and dimensions of the first brush tile.
getTileMode()Returns value specifying how tiling is performed in the filled geometry.
setTileMode(XpsTileMode value)Sets value specifying how tiling is performed in the filled geometry.

getViewbox()

public Rectangle2D getViewbox()

Returns the region of the source content of the brush that is to be mapped to the viewport.

Returns: java.awt.geom.Rectangle2D - The region of the source content of the brush that is to be mapped to the viewport.

setViewbox(Rectangle2D value)

public void setViewbox(Rectangle2D value)

Sets the region of the source content of the brush that is to be mapped to the viewport.

Parameters:

ParameterTypeDescription
valuejava.awt.geom.Rectangle2DThe region of the source content of the brush that is to be mapped to the viewport.

getViewport()

public Rectangle2D getViewport()

Returns the position and dimensions of the first brush tile. Subsequent tiles are positioned relative to this tile, as specified by the tile mode.

Returns: java.awt.geom.Rectangle2D - The position and dimensions of the first brush tile.

setViewport(Rectangle2D value)

public void setViewport(Rectangle2D value)

Sets the position and dimensions of the first brush tile. Subsequent tiles are positioned relative to this tile, as specified by the tile mode.

Parameters:

ParameterTypeDescription
valuejava.awt.geom.Rectangle2DThe position and dimensions of the first brush tile.

getTileMode()

public XpsTileMode getTileMode()

Returns value specifying how tiling is performed in the filled geometry.

Returns: XpsTileMode - Value specifying how tiling is performed in the filled geometry.

setTileMode(XpsTileMode value)

public void setTileMode(XpsTileMode value)

Sets value specifying how tiling is performed in the filled geometry.

Parameters:

ParameterTypeDescription
valueXpsTileModeValue specifying how tiling is performed in the filled geometry.