ilog.util
Interface IlPattern

All Superinterfaces:
Serializable
All Known Implementing Classes:
IltPattern, IltPattern.PatternWrapper, IltPattern.Solid

Deprecated. Please use IltPattern instead.

public interface IlPattern
extends Serializable

This class describes a pattern that can be used to fill a 2D area.

When an area is drawn, the pattern is drawn in the foreground color, and the remainder of the area is drawn in the background color. If the background color is null, it means that it is transparent.

Since:
JTGO 3.0
Deprecated Since:
JTGO 4.0

Method Summary
 void fillPolygon(Graphics g, AffineTransform t, IlIntPolygon polygon, Color foreground, Color background)
          Deprecated. Fills a polygon.
 void fillRect(Graphics g, AffineTransform t, int x1, int y1, int x2, int y2, Color foreground, Color background)
          Deprecated. Fills a rectangle with corners (x1,y1) and (x2,y2).
 

Method Detail

fillRect

void fillRect(Graphics g,
              AffineTransform t,
              int x1,
              int y1,
              int x2,
              int y2,
              Color foreground,
              Color background)
Deprecated. 
Fills a rectangle with corners (x1,y1) and (x2,y2). The arguments must satisfy x1 <= x2 and y1 <= y2.

Parameters:
g - The Graphics where the pattern will be drawn.
t - The transformer of the view, normally null.

Note: It is assumed that t has already been applied to x1, y1, x2, y2.

x1 - The upper left corner of the rectangle.
y1 - The upper left corner of the rectangle.
x2 - The lower left corner of the rectangle.
y2 - The lower left corner of the rectangle.
foreground - The foreground color.
background - The background color, or null.

fillPolygon

void fillPolygon(Graphics g,
                 AffineTransform t,
                 IlIntPolygon polygon,
                 Color foreground,
                 Color background)
Deprecated. 
Fills a polygon.

Parameters:
g - The Graphics where the pattern will be drawn.
t - The transformer of the view, normally null.

Note: It is assumed that t has already been applied to x1, y1, x2, y2.

polygon - The polygon to be filled.
foreground - The foreground color.
background - The background color, or null.


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