STYLE Variable: Patterns

Specifies a pattern for bars, pies, frames, and rectangles

Type:character
Length:8
Default:EMPTY | PEMPTY | MEMPTY
Restriction:Partially supported by the JAVAIMG device

Table of Contents

Syntax

STYLE='fill-pattern';

Variable Values

fill-pattern

specifies a pattern to use with the graphics element. The value for fill-pattern is function dependent as shown in the following table.

Fill Patterns

Function

Fill Pattern 1, 2

Description

BAR, FRAME

SOLID | S

Fill with a solid color.

EMPTY | E

No fill.

style <density>

style

R for right-slanted fill lines, L for left-slanted fill lines, or X for crossing fill lines.

density

Whole numbers 1 through 5 specify increasing thickness for the fill lines.

PIE

PSOLID | PS

Fill with a solid color.

PEMPTY | PE

No fill.

Pdensity <style<angle>>

density

Whole numbers 1 through 5 specify increasing thickness for the fill lines.

style

N, the default, can specify parallel fill lines; X can specify crossed fill lines.

angle

can specify the angle of the fill lines. Values range from 0 to 360. The angle is measured counterclockwise from the horizontal. The default is 0°, which draws horizontal lines.

For example, if STYLE='P5N15', a pie slice with a fill of parallel lines is produced. The fill uses the heaviest density to draw the lines, and the parallel lines are drawn at a 15-degree angle from perpendicular to the radius of the pie slice.

Note: The JAVAIMG device supports only PSOLID and PEMPTY values and default to PEMPTY if any other value is used.

An illustration of these pattern styles is provided in the definition of the VALUE= option of the PATTERN statement.

POLY

MSOLID | MS

Fill with a solid color.

MEMPTY | ME

No fill.

Mdensity <style<angle>>

density

Whole numbers 1 through 5 specify increasing thickness for the fill lines.

style

N, the default, can specify parallel fill lines; X can specify crossed fill lines.

angle

Can specify the angle of the fill lines. Values range from 0 to 360. The angle is measured counterclockwise from the vertical. The default is 0°, which draws vertical lines.

Note: The JAVAIMG device supports only MSOLID and MEMPTY and default to MEMPTY if any other value is used.

An illustration of these pattern styles is provided in the definition of the VALUE= option of the PATTERN statement.

1 The JAVAIMG device supports only SOLID and EMPTY. EMPTY is the default if any other value is used.
2 An illustration of these pattern styles is provided in the VALUE= option description for the PATTERN statement.
Last updated: June 23, 2026