JIDE 3.5.15

com.jidesoft.plaf.windows
Class XPStyle.Skin

java.lang.Object
  extended by com.jidesoft.plaf.windows.XPStyle.Skin
Enclosing class:
XPStyle

public static class XPStyle.Skin
extends Object

A class which encapsulates attributes for a given part (component type) and which provides methods for painting backgrounds and glyphs


Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 void paintSkin(Graphics g, int dx, int dy, int dw, int dh, TMSchema.State state)
          Paint a skin at a defined position and size This method supports animation.
 void paintSkin(Graphics g, int dx, int dy, int dw, int dh, TMSchema.State state, boolean borderFill)
          Paint a skin at a defined position and size
 void paintSkin(Graphics g, int dx, int dy, TMSchema.State state)
          Paint a skin at x, y.
 void paintSkin(Graphics g, Rectangle r, TMSchema.State state)
          Paint a skin in an area defined by a rectangle.
 void paintSkinRaw(Graphics g, int dx, int dy, int dw, int dh, TMSchema.State state)
          Paint a skin at a defined position and size.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

paintSkin

public void paintSkin(Graphics g,
                      int dx,
                      int dy,
                      TMSchema.State state)
Paint a skin at x, y.

Parameters:
g - the graphics context to use for painting
dx - the destination x coordinate
dy - the destination y coordinate
state - which state to paint

paintSkin

public void paintSkin(Graphics g,
                      Rectangle r,
                      TMSchema.State state)
Paint a skin in an area defined by a rectangle.

Parameters:
g - the graphics context to use for painting
r - a Rectangle defining the area to fill, may cause the image to be stretched or tiled
state - which state to paint

paintSkin

public void paintSkin(Graphics g,
                      int dx,
                      int dy,
                      int dw,
                      int dh,
                      TMSchema.State state)
Paint a skin at a defined position and size This method supports animation.

Parameters:
g - the graphics context to use for painting
dx - the destination x coordinate
dy - the destination y coordinate
dw - the width of the area to fill, may cause the image to be stretched or tiled
dh - the height of the area to fill, may cause the image to be stretched or tiled
state - which state to paint

paintSkinRaw

public void paintSkinRaw(Graphics g,
                         int dx,
                         int dy,
                         int dw,
                         int dh,
                         TMSchema.State state)
Paint a skin at a defined position and size. This method does not trigger animation. It is needed for the animation support.

Parameters:
g - the graphics context to use for painting
dx - the destination x coordinate.
dy - the destination y coordinate.
dw - the width of the area to fill, may cause the image to be stretched or tiled
dh - the height of the area to fill, may cause the image to be stretched or tiled
state - which state to paint

paintSkin

public void paintSkin(Graphics g,
                      int dx,
                      int dy,
                      int dw,
                      int dh,
                      TMSchema.State state,
                      boolean borderFill)
Paint a skin at a defined position and size

Parameters:
g - the graphics context to use for painting
dx - the destination x coordinate
dy - the destination y coordinate
dw - the width of the area to fill, may cause the image to be stretched or tiled
dh - the height of the area to fill, may cause the image to be stretched or tiled
state - which state to paint
borderFill - should test if the component uses a border fill and skip painting if it is

JIDE 3.5.15