Overview

A Pattern is used to fill or stroke an object using a pre-defined graphic object which can be replicated ("tiled") at fixed intervals in x and y to cover the areas to be painted.

Attributes x, y, width, height define a reference rectangle somewhere on the infinite canvas. The reference rectangle has its top/left at (x,y) and its bottom/right at (x+width,y+height). The tiling theoretically extends a series of such rectangles to infinity in X and Y (positive and negative), with rectangles starting at (x + m*width, y + n*height) for each possible integer value for m and n.

Attribute Summary

nametypedescription
Public
contentNode[]

The graphic objects that will be used to create the tile that this pattern will paint.

heightNumber

The height of the tile.

widthNumber

The width the tile.

xNumber

The x coordinate of the start point of the tile.

yNumber

The y coordinate of the start point of the tile.

Protected

Inherited Attributes

Function Summary

public bound getPaint() : Paint
public makeTexture() : Void

Inherited Functions

javafx.ui.Paint

public abstract bound getPaint() : Paint

Attributes

public content: Node[]

The graphic objects that will be used to create the tile that this pattern will paint.

public height: Number

The height of the tile. Defaults to the preferred size of this pattern's content.

public width: Number

The width the tile. Defaults to the preferred size of this pattern's content.

public x: Number

The x coordinate of the start point of the tile. Defaults to zero.

public y: Number

The y coordinate of the start point of the tile. Defaults to zero

Functions