ilog.views.util.java2d
Class IlvTexture

java.lang.Object
  extended by java.awt.TexturePaint
      extended by ilog.views.util.java2d.IlvTexture
All Implemented Interfaces:
Paint, Transparency
Direct Known Subclasses:
IlvTexture

public class IlvTexture
extends TexturePaint

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

Since:
JViews 5.5
See Also:
IlvPattern

Field Summary
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
IlvTexture(URL imageURL)
          Creates a new IlvTexture.
IlvTexture(URL imageURL, Rectangle2D anchor)
          Creates a new IlvTexture.
 
Method Summary
 boolean equals(Object obj)
          Tests the equality of two textures.
 URL getImageURL()
          Returns the URL of the image of the texture.
 
Methods inherited from class java.awt.TexturePaint
createContext, getAnchorRect, getImage, getTransparency
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvTexture

public IlvTexture(URL imageURL)
Creates a new IlvTexture. The rectangle used to replicate the texture is sized to the image size.

Parameters:
imageURL - The URL of the image of the texture.

IlvTexture

public IlvTexture(URL imageURL,
                  Rectangle2D anchor)
Creates a new IlvTexture.

Parameters:
imageURL - The URL of the image of the texture.
anchor - The Rectangle2D in manager coordinates used to anchor and replicate the texture.
Method Detail

getImageURL

public final URL getImageURL()
Returns the URL of the image of the texture.


equals

public boolean equals(Object obj)
Tests the equality of two textures.

Overrides:
equals in class Object


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