ilog.views.chart.graphic
Class IlvImageDecoration

ilog.views.chart.IlvChartDecoration
      extended by ilog.views.chart.graphic.IlvImageDecoration

public class IlvImageDecoration
extends IlvChartDecoration

A class to display images as chart decorations. The IlvImageDecoration class defines three modes of drawing:

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";
    visible : "false";
}


See Also:
IlvChartDecoration

Property Summary
 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.
 boolean visible
          
Toggles the visibility of this decoration.
 

Property Detail

class

public java.lang.String class

Creates a new IlvImageDecoration object in the specified mode displaying the image loaded from the specified URL.

CSS example:     class : "ilog.views.chart.graphic.IlvImageDecoration(imageURL,mode,anchor)";


anchor

public int anchor

Sets the image anchor within the plot area. This method is meaningful only when the mode of this decoration is set to ANCHORED.

CSS example:     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.).


drawOrder

public int drawOrder

Sets the drawing order of this decoration.

CSS example:     drawOrder : "2";


imageURL

public java.net.URL imageURL

Sets the URL of the image or null if not specified.

CSS example:     imageURL : "url(spec)";


mode

public int mode

Sets the drawing mode.

CSS example:     mode : "ANCHORED";

Allowed values:
ANCHORED    The ANCHORED mode constant.
TILED    The TILED mode constant.
SCALED    The SCALED mode constant.


visible

public boolean visible

Toggles the visibility of this decoration.

CSS example:     visible : "false";



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.