Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.fx   Previous This
Package
Next

 


Class FxComponentTexture

public class FxComponentTexture extends FxStateConfigurableUIImage
{
  // Constructors
  public FxComponentTexture(int states[]);
  public FxComponentTexture(int states[], FxTexture tx[]);
  public FxComponentTexture(int states[], Image img[]);

  // Methods
  public Image getImage(int state);
  public FxTexture getTexture(int state);
}

This class is a class factory that provides a set of consistent, cross-platform FxTexture objects that are used by the com.ms.ui classes for Graphical User Interface(GUI) display components. The difference between this and the similar FxComponentImage class is that you can manipulate stretch factors and other attributes of the FxTexture objects (while Image objects remain static).

For more information on the use of the texture and image class factories, refer to the FxComponentImage.

FxStateConfigurableImage
  |
  +--FxStateConfigurableUIImage
    |
    +--FxComponentTexture

Constructors

FxComponentTexture

public FxComponentTexture(int states[]);

Creates an FxComponentTexture texture factory with the specified states.

ParameterDescription
states An array of states used to create the texture. These may be the following.
ENABLED HOT PRESSED CHECKED INDETERMINATE

FxComponentTexture

public FxComponentTexture(int states[], FxTexture tx[]);

Creates an FxComponentTexture texture factory with the specified states and FxTexture objects.

ParameterDescription
states An array of states used to create the texture. These may be the following.
ENABLED HOT PRESSED CHECKED INDETERMINATE
tx An array of FxTexture objects to base the component textures on.

FxComponentTexture

public FxComponentTexture(int states[], Image img[]);

Creates an FxComponentTexturetexture factory with the specified states and Image objects.

ParameterDescription
states An array of states used to create the texture. These may be the following.
ENABLED HOT PRESSED CHECKED INDETERMINATE
img An array of Image objects to base the component textures on.

Methods

getImage

public Image getImage(int state);

Retrieves the Image object with the given state from the component texture factory.

Return Value:

Returns the Image object associated with the state.

ParameterDescription
state An state associated with the component texture. These may be one of the following.
ENABLED HOT PRESSED CHECKED INDETERMINATE

getTexture

public FxTexture getTexture(int state);

Retrieves the FxTexture object with the given state from the component texture factory.

Return Value:

Returns the FxTexture object associated with the state.

ParameterDescription
state An state associated with the component texture. These may be one of the following.
ENABLED HOT PRESSED CHECKED INDETERMINATE

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.