public class IlvPattern extends TexturePaint
IlvPattern
is a subclass of
java.awt.TexturePaint
.
Available patterns are:
![]() |
![]() |
![]() |
![]() |
ilvPattern {
class : "ilog.views.util.java2d.IlvPattern(type,foreground,background)";
anchor : "@#rectangle2D";
background : "green";
foreground : "green";
transparency : "OPAQUE";
type : "GRAY_5";
}
IlvTexture
Modifier and Type | Property and Description |
---|---|
java.awt.geom.Rectangle2D |
anchor
Sets a copy of the anchor rectangle which positions and sizes the textured image. |
java.awt.Color |
background
Sets the background color of the pattern, or null
if the background is transparent. |
java.lang.String |
class
Creates a new IlvPattern of the specified type. |
java.awt.Color |
foreground
Sets the foreground color of the pattern. |
int |
transparency
Sets the type of this Transparency . |
int |
type
Sets the type of the pattern. |
public java.lang.String class
IlvPattern
of the specified type.
class : "ilog.views.util.java2d.IlvPattern(type,foreground,background)";
public java.awt.geom.Rectangle2D anchor
anchor : "@#rectangle2D";
Rectangle2D
for an example of implementing an anchor.public java.awt.Color background
null
if the background is transparent.
background : "green";
public java.awt.Color foreground
foreground : "green";
public int transparency
Transparency
.
transparency : "OPAQUE";
Allowed values: | ||
OPAQUE |
represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0. | |
BITMASK |
represents image data that is guaranteed to be either completely opaque, with an alpha value of 1.0, or completely transparent, with an alpha value of 0.0. | |
TRANSLUCENT |
represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0. |
public int type
type : "GRAY_5";
Allowed values: | ||
GRAY_5 |
5% gray pattern | |
GRAY_10 |
10% gray pattern | |
GRAY_20 |
20% gray pattern | |
GRAY_25 |
25% gray pattern | |
GRAY_30 |
30% gray pattern | |
GRAY_40 |
40% gray pattern | |
GRAY_50 |
50% gray pattern | |
GRAY_60 |
60% gray pattern | |
GRAY_70 |
70% gray pattern | |
GRAY_75 |
75% gray pattern | |
GRAY_80 |
80% gray pattern | |
GRAY_90 |
90% gray pattern | |
DOWN_LIGHT_DIAGONAL |
Light downward diagonal pattern | |
DOWN_DARK_DIAGONAL |
Dark downward diagonal pattern | |
UP_LIGHT_DIAGONAL |
Light upward diagonal pattern | |
UP_DARK_DIAGONAL |
Dark upward diagonal pattern | |
LIGHT_VERTICAL |
Light vertical pattern | |
NARROW_VERTICAL |
Narrow vertical pattern | |
LIGHT_HORIZONTAL |
Light horizontal pattern | |
NARROW_HORIZONTAL |
Narrow horizontal pattern | |
DOWN_DASHED_DIAGONAL |
Dashed downward diagonal pattern | |
UP_DASHED_DIAGONAL |
Dashed upward diagonal pattern | |
HORIZONTAL_DASH |
Dashed horizontal pattern | |
VERTICAL_DASH |
Dashed vertical pattern | |
SMALL_GRID |
Small grid pattern | |
LARGE_GRID |
Large grid pattern | |
HORIZONTAL |
Horizontal pattern | |
DARK_HORIZONTAL |
Thick horizontal pattern | |
NARROW_DARK_HORIZONTAL |
Thick narrow horizontal pattern | |
VERTICAL |
Vertical pattern | |
DARK_VERTICAL |
Thick vertical pattern | |
NARROW_DARK_VERTICAL |
Thick narrow vertical pattern | |
UP_DIAGONAL |
Upward diagonal pattern | |
UP_THICK_DIAGONAL |
Upward thick diagonal pattern | |
DOWN_DIAGONAL |
Downward diagonal pattern | |
DOWN_THICK_DIAGONAL |
Downward thick diagonal pattern | |
LARGE_DARK_GRID |
||
SMALL_DARK_GRID |
||
ALTERNATE_DOTS |
Alternate dots pattern | |
TINY_GRID |
A tiny grid. | |
DIAGONAL_GRID |
A 45 degrees rotated grid | |
THICK_DIAGONAL_GRID |
A 45 degrees rotated grid with thick lines | |
SMALL_DIAGONAL_GRID |
A small 45 degrees rotated small grid | |
DOWN_BLACK_DIAGONAL |
Black downward diagonal | |
UP_BLACK_DIAGONAL |
Black upward diagonal | |
TINY_STIPPLE |
A tiny grid with points | |
SMALL_STIPPLE |
A small grid with points | |
STIPPLE |
A grid with points | |
WAVES |
Waves pattern | |
WAFFER |
Waffer pattern | |
BRICKS_HORIZONTAL |
Horizontal bricks | |
BRICKS_VERTICAL |
Vertical bricks | |
BRICKS_DIAGONAL |
Diagonal bricks | |
DOT_QUILT |
Dot quilt pattern | |
BALLS |
Balls pattern | |
THATCHES |
Thatches pattern | |
LIGHT_LOSANGES |
Light losanges pattern | |
VSHAPE |
V-Shape pattern | |
DARK_SAND |
Dark sand pattern | |
LIGHT_SAND |
Light sand pattern | |
SCALES |
Horizontal fish-scale pattern | |
OBLIQUE_TILES |
Oblique 3d tiles | |
DIAGONAL_TILES |
Diagonal roof tiles | |
AZTEC |
Aztec style | |
ALTERNATE_DIAGONAL |
Alternated diagonals | |
CIRCLE_DOT |
Circle and dotes pattern | |
SMALL_CHESSBOARD |
Small chess board | |
ARCHES |
Arches pattern | |
COBBLE_DIAGONAL |
Diagonal brick cobble |
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.