public class XdevStyle extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CENTER |
static int |
COLOR |
static int |
GRADIENT |
static int |
LEFF_RIGHT |
static int |
NONE |
static int |
RADIAL |
static int |
RECTANGULAR |
static int |
STRECHED |
static int |
SYSTEM |
static int |
TILED |
static int |
TOP_BOTTOM |
static int |
TOPLEFT_BOTTOMRIGHT |
static int |
TOPRIGHT_BOTTOMLEFT |
Modifier and Type | Method and Description |
---|---|
XdevStyle |
copy(Component cpn) |
void |
drawTexture(Graphics g,
Component c,
int _x,
int _y,
int _w,
int _h) |
protected void |
finalize() |
void |
flushTextureImage() |
int |
getBackgroundType()
Returns the background type as
int for this
XdevStyle . |
Border |
getBorder()
Returns the border of this
XdevStyle . |
int |
getGradientAlign()
Returns the gradient align for this
XdevStyle . |
Color |
getGradientColor1()
|
Color |
getGradientColor2()
|
XdevImage |
getTexture()
Returns the texture for this
XdevStyle . |
int |
getTextureOption()
Returns the texture option for this
XdevStyle . |
String |
getTexturePath()
Returns the texture path for this
XdevStyle . |
boolean |
isOpaque() |
void |
paintBackground(Graphics2D g,
Component c,
int _x,
int _y,
int _w,
int _h) |
void |
setBackgroundType(int backgroundType)
Sets the background type as
int for this XdevStyle . |
void |
setBorder(Border border)
Sets the border of this
XdevStyle . |
void |
setGradientAlign(int gradientAlign)
Sets the gradient align for this
XdevStyle . |
void |
setGradientColor1(Color gradientColor1)
|
void |
setGradientColor2(Color gradientColor2)
|
void |
setTexture(XdevImage image)
Sets the texture for this
XdevStyle . |
void |
setTextureOption(int textureOption)
Sets the texture option for this
XdevStyle . |
void |
setTexturePath(String texturePath)
Sets the texture path for this
XdevStyle . |
public static final int NONE
public static final int COLOR
public static final int GRADIENT
public static final int SYSTEM
public static final int LEFF_RIGHT
public static final int TOP_BOTTOM
public static final int TOPLEFT_BOTTOMRIGHT
public static final int TOPRIGHT_BOTTOMLEFT
public static final int RECTANGULAR
public static final int RADIAL
public static final int CENTER
public static final int STRECHED
public static final int TILED
public XdevStyle(Component component)
public boolean isOpaque()
true
if this style has something to paint, either a
background or a texture, false
otherwisepublic int getBackgroundType()
int
for this
XdevStyle
.int
for this
XdevStyle
.XdevStyle
public void setBackgroundType(int backgroundType)
int
for this XdevStyle
.public Color getGradientColor1()
public void setGradientColor1(Color gradientColor1)
public Color getGradientColor2()
public void setGradientColor2(Color gradientColor2)
public int getGradientAlign()
XdevStyle
.XdevStyle
.LEFF_RIGHT
,
TOP_BOTTOM
,
TOPLEFT_BOTTOMRIGHT
,
TOPRIGHT_BOTTOMLEFT
,
RECTANGULAR
,
RADIAL
public void setGradientAlign(int gradientAlign)
XdevStyle
.gradientAlign
- the gradient align for this XdevStyle
.LEFF_RIGHT
,
TOP_BOTTOM
,
TOPLEFT_BOTTOMRIGHT
,
TOPRIGHT_BOTTOMLEFT
,
RECTANGULAR
,
RADIAL
public String getTexturePath()
XdevStyle
.XdevStyle
public void setTexturePath(String texturePath)
XdevStyle
.texturePath
- the texture path for this XdevStyle
public XdevImage getTexture()
XdevStyle
.XdevStyle
or null
XdevImage
public void setTexture(XdevImage image)
XdevStyle
.image
- the texture for this XdevStyle
or
null
XdevImage
public int getTextureOption()
XdevStyle
.public void setTextureOption(int textureOption)
XdevStyle
.public void paintBackground(Graphics2D g, Component c, int _x, int _y, int _w, int _h)
protected void finalize() throws Throwable
public void flushTextureImage()
public Border getBorder()
XdevStyle
.XdevStyle
setBorder(Border)
public void setBorder(Border border)
XdevStyle
.border
- the border to be rendered for this XdevStyle
getBorder()
Copyright © 2003–2021 XDEV Software. All rights reserved.