javafx.ui.canvas

Pattern

Extends: Paint

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.

Attributes

private canvas: Canvas?
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.
private texturePaint: java.awt.TexturePaint
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

Operations/Functions

public function():*(): public return

Operations/Functions Inherited from javafx.ui.Paint

getPaint