ilog.views.util.java2d
Class IlvTexture

java.awt.TexturePaint
      extended by ilog.views.util.java2d.IlvTexture

public class IlvTexture
extends TexturePaint

A texture is a predefined TexturePaint used to fill a shape.

CSS example:

ilvTexture {
    class : "ilog.views.util.java2d.IlvTexture(imageURL)";
    anchor : "@#rectangle2D";
    imageURL : "url(spec)";
    transparency : "OPAQUE";
}


See Also:
IlvPattern

Property Summary
 java.awt.geom.Rectangle2D anchor
          
Sets a copy of the anchor rectangle which positions and sizes the textured image.
 java.lang.String class
          
Creates a new IlvTexture.
 java.net.URL imageURL
          
Sets the URL of the image of the texture.
 int transparency
          
Sets the type of this Transparency.
 

Property Detail

class

public java.lang.String class

Creates a new IlvTexture. The rectangle used to replicate the texture is sized to the image size.

CSS example:     class : "ilog.views.util.java2d.IlvTexture(imageURL)";


anchor

public java.awt.geom.Rectangle2D anchor

Sets a copy of the anchor rectangle which positions and sizes the textured image.

CSS example:     anchor : "@#rectangle2D";

See implementing class Rectangle2D for an example of implementing an anchor.


imageURL

public java.net.URL imageURL

Sets the URL of the image of the texture.

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


transparency

public int transparency

Sets the type of this Transparency.

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



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