public class IlvImageDecoration extends IlvPositionableDecoration
IlvImageDecoration
class defines three modes of drawing:
ANCHORED
, to draw the image at a predefined fixed position.
In this mode, the position is expressed as one of the
SwingConstants
compass-direction.
TILED
, to draw the image as a replicated pattern.
SCALED
, to draw the image so that it fills the plot area.
The following picture shows samples of the different modes:
CSS example:
ilvImageDecoration {
class : "ilog.views.chart.graphic.IlvImageDecoration(imageURL,mode,anchor)";
anchor : "NORTH";
drawOrder : "2";
imageURL : "url(spec)";
mode : "ANCHORED";
offset : "0,0";
visible : "false";
}
IlvChartDecoration
Modifier and Type | Property and Description |
---|---|
int |
anchor
Sets the image anchor within the plot area. |
java.lang.String |
class
Creates a new IlvImageDecoration object in the specified mode
displaying the image loaded from the specified URL. |
int |
drawOrder
Sets the drawing order of this decoration. |
java.net.URL |
imageURL
Sets the URL of the image or null if not specified. |
int |
mode
Sets the drawing mode. |
java.awt.Point |
offset
Sets the decoration's position, relative to the anchor. |
boolean |
visible
Toggles the visibility of this decoration. |
public java.lang.String class
IlvImageDecoration
object in the specified mode
displaying the image loaded from the specified URL.
class : "ilog.views.chart.graphic.IlvImageDecoration(imageURL,mode,anchor)";
public int anchor
#ANCHORED
.
anchor : "NORTH";
Allowed values: | ||
NORTH |
Compass-direction North (up). | |
NORTH_WEST |
Compass-direction north west (upper left). | |
WEST |
Compass-direction west (left). | |
SOUTH_WEST |
Compass-direction south-west (lower left). | |
SOUTH |
Compass-direction south (down). | |
SOUTH_EAST |
Compass-direction south-east (lower right). | |
EAST |
Compass-direction east (right). | |
NORTH_EAST |
Compass-direction north-east (upper right). | |
CENTER |
The central position in an area. Used for both compass-direction constants (NORTH, etc.) and box-orientation constants (TOP, etc.). |
public int drawOrder
drawOrder : "2";
public java.net.URL imageURL
null
if not specified.
imageURL : "url(spec)";
public int mode
mode : "ANCHORED";
Allowed values: | ||
ANCHORED |
The ANCHORED mode constant. |
|
TILED |
The TILED mode constant. |
|
SCALED |
The SCALED mode constant. |
public java.awt.Point offset
#ANCHORED
.
offset : "0,0";
public boolean visible
visible : "false";
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.