public static class XPStyle.Skin
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
void |
paintSkin(java.awt.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(java.awt.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(java.awt.Graphics g,
int dx,
int dy,
TMSchema.State state) |
Paint a skin at x, y.
|
void |
paintSkin(java.awt.Graphics g,
java.awt.Rectangle r,
TMSchema.State state) |
Paint a skin in an area defined by a rectangle.
|
void |
paintSkinRaw(java.awt.Graphics g,
int dx,
int dy,
int dw,
int dh,
TMSchema.State state) |
Paint a skin at a defined position and size.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void paintSkin(java.awt.Graphics g, int dx, int dy, TMSchema.State state)
g
- the graphics context to use for paintingdx
- the destination x coordinatedy
- the destination y coordinatestate
- which state to paintpublic void paintSkin(java.awt.Graphics g, java.awt.Rectangle r, TMSchema.State state)
g
- the graphics context to use for paintingr
- a Rectangle
defining the area to fill, may cause the image to be stretched or
tiledstate
- which state to paintpublic void paintSkin(java.awt.Graphics g, int dx, int dy, int dw, int dh, TMSchema.State state)
g
- the graphics context to use for paintingdx
- the destination x coordinatedy
- the destination y coordinatedw
- the width of the area to fill, may cause the image to be stretched or tileddh
- the height of the area to fill, may cause the image to be stretched or tiledstate
- which state to paintpublic void paintSkinRaw(java.awt.Graphics g, int dx, int dy, int dw, int dh, TMSchema.State state)
g
- the graphics context to use for paintingdx
- 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 tileddh
- the height of the area to fill, may cause the image to be stretched or tiledstate
- which state to paintpublic void paintSkin(java.awt.Graphics g, int dx, int dy, int dw, int dh, TMSchema.State state, boolean borderFill)
g
- the graphics context to use for paintingdx
- the destination x coordinatedy
- the destination y coordinatedw
- the width of the area to fill, may cause the image to be stretched or tileddh
- the height of the area to fill, may cause the image to be stretched or tiledstate
- which state to paintborderFill
- should test if the component uses a border fill and skip painting if it is