|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.swing.pageview.JadiceBackgroundIcon
public class JadiceBackgroundIcon
This class has been automatically generated using Flamingo SVG transcoder.
Use the paint-Method to paint the image.
Constructor Summary | |
---|---|
JadiceBackgroundIcon()
Creates a new JadiceBackgroundIcon with default parameters |
|
JadiceBackgroundIcon(Color centerColor,
Color leftColor,
Color rightColor,
Dimension desiredSize)
Full constructor - colors and desired size of the icons can be modified. |
|
JadiceBackgroundIcon(Dimension desiredSize)
Creates a new JadiceBackgroundIcon with the given desired size. |
|
JadiceBackgroundIcon(int width,
int height)
Creates a new JadiceBackgroundIcon with the given desired size. |
Method Summary | |
---|---|
int |
getIconHeight()
|
int |
getIconWidth()
|
int |
getOrigHeight()
Returns the height of the bounding box of the original SVG image. |
int |
getOrigWidth()
Returns the width of the bounding box of the original SVG image. |
int |
getOrigX()
Returns the X of the bounding box of the original SVG image. |
int |
getOrigY()
Returns the Y of the bounding box of the original SVG image. |
void |
paint(Graphics2D g,
Dimension areaSize)
Paints the icon on the given Graphics2D with a maximum of 80% of the given Dimension. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
setDesiredSize(Dimension desiredSize)
Sets the desired size of this icon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JadiceBackgroundIcon()
public JadiceBackgroundIcon(int width, int height)
width
- - desired widthheight
- - desired heightpublic JadiceBackgroundIcon(Dimension desiredSize)
desiredSize
- - the desired sizepublic JadiceBackgroundIcon(Color centerColor, Color leftColor, Color rightColor, Dimension desiredSize)
centerColor
- - the center color (the "inside" of the letters)leftColor
- - the color on the left side of a letter (shadow edge)rightColor
- - the color on the left side of a letter (light edge)desiredSize
- - the desired size of the image, if null the default will be used (original size)Method Detail |
---|
public void paint(Graphics2D g, Dimension areaSize)
g
- - graphicsareaSize
- - area sizepublic int getOrigX()
public int getOrigY()
public int getOrigWidth()
public int getOrigHeight()
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public void setDesiredSize(Dimension desiredSize)
desiredSize
- - the desired size
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |