|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.renderers.MiDeviceRenderer
com.swfm.mica.renderers.MiCustomGradientRenderer
Constructs a renderer which generates a background gradient image effect when assigned to one or more parts using their setBackgroundRenderer() method.
| Field Summary |
| Constructor Summary | |
MiCustomGradientRenderer()
Constructs a renderer which generates a background gradient image effect when assigned to one or more parts using their setBackgroundRenderer() method. |
|
| Method Summary | |
java.awt.Image |
createImage(int width,
int height)
|
boolean |
drawLine(java.awt.Graphics g,
MiAttributes attributes,
int x1,
int y1,
int x2,
int y2)
|
boolean |
drawOval(java.awt.Graphics g,
MiAttributes attributes,
int xmin,
int ymin,
int width,
int height)
|
boolean |
drawPolygon(java.awt.Graphics g,
MiAttributes attributes,
int[] xpts,
int[] ypts,
int numPts)
|
boolean |
drawRect(java.awt.Graphics g,
MiAttributes atts,
int dxmin,
int dymin,
int dwidth,
int dheight)
|
boolean |
drawRoundRect(java.awt.Graphics g,
MiAttributes attributes,
int xmin,
int ymin,
int width,
int height,
int arcWidth,
int arcHeight)
|
boolean |
drawText(java.awt.Graphics g,
MiAttributes attributes,
java.lang.String text,
int x,
int y)
|
java.awt.Color |
getBaseColor()
Gets the base color of this renderer. |
int |
getBaseHeight()
|
int |
getBaseWidth()
|
boolean |
getBounds(MiAttributes attributes,
MiBounds drawBounds,
MiBounds renderedBounds)
|
boolean |
getGradientBaseColorEqualsPartBGColor()
Gets whether this renderer looks at the background color of each part that is being renderered or whether this uses the assigned base color. |
void |
setBaseColor(java.awt.Color c)
Sets the base color of this renderer. |
void |
setBaseSize(int width,
int height)
|
void |
setGradientBaseColorEqualsPartBGColor(boolean flag)
Sets whether this renderer looks at the background color of each part that is being renderered or whether this uses the assigned base color. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MiCustomGradientRenderer()
MiPart.setBackgroundRenderer(com.swfm.mica.renderers.MiiDeviceRenderer),
setGradientBaseColorEqualsPartBGColor| Method Detail |
public void setBaseSize(int width,
int height)
public int getBaseWidth()
public int getBaseHeight()
public void setBaseColor(java.awt.Color c)
c - the color.setGradientBaseColorEqualsPartBGColor(boolean),
getGradientBaseColorEqualsPartBGColor(),
getBaseColor()public java.awt.Color getBaseColor()
setGradientBaseColorEqualsPartBGColor(boolean),
getGradientBaseColorEqualsPartBGColor(),
setBaseColor(java.awt.Color)public void setGradientBaseColorEqualsPartBGColor(boolean flag)
flag - true if the background color of the
part being rendered determine the base color.getGradientBaseColorEqualsPartBGColor(),
setBaseColor(java.awt.Color),
getBaseColor()public boolean getGradientBaseColorEqualsPartBGColor()
setGradientBaseColorEqualsPartBGColor(boolean),
setBaseColor(java.awt.Color),
getBaseColor()
public boolean drawRect(java.awt.Graphics g,
MiAttributes atts,
int dxmin,
int dymin,
int dwidth,
int dheight)
drawRect in interface MiiDeviceRenderer
public java.awt.Image createImage(int width,
int height)
public boolean getBounds(MiAttributes attributes,
MiBounds drawBounds,
MiBounds renderedBounds)
getBounds in interface MiiDeviceRenderer
public boolean drawLine(java.awt.Graphics g,
MiAttributes attributes,
int x1,
int y1,
int x2,
int y2)
drawLine in interface MiiDeviceRenderer
public boolean drawRoundRect(java.awt.Graphics g,
MiAttributes attributes,
int xmin,
int ymin,
int width,
int height,
int arcWidth,
int arcHeight)
drawRoundRect in interface MiiDeviceRenderer
public boolean drawPolygon(java.awt.Graphics g,
MiAttributes attributes,
int[] xpts,
int[] ypts,
int numPts)
drawPolygon in interface MiiDeviceRenderer
public boolean drawOval(java.awt.Graphics g,
MiAttributes attributes,
int xmin,
int ymin,
int width,
int height)
drawOval in interface MiiDeviceRenderer
public boolean drawText(java.awt.Graphics g,
MiAttributes attributes,
java.lang.String text,
int x,
int y)
drawText in interface MiiDeviceRenderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||