com.levigo.jadice.swing.pageview
Class JadiceBackgroundIcon

java.lang.Object
  extended by com.levigo.jadice.swing.pageview.JadiceBackgroundIcon
All Implemented Interfaces:
Icon

public class JadiceBackgroundIcon
extends Object
implements Icon

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

JadiceBackgroundIcon

public JadiceBackgroundIcon()
Creates a new JadiceBackgroundIcon with default parameters


JadiceBackgroundIcon

public JadiceBackgroundIcon(int width,
                            int height)
Creates a new JadiceBackgroundIcon with the given desired size.

Parameters:
width - - desired width
height - - desired height

JadiceBackgroundIcon

public JadiceBackgroundIcon(Dimension desiredSize)
Creates a new JadiceBackgroundIcon with the given desired size.

Parameters:
desiredSize - - the desired size

JadiceBackgroundIcon

public JadiceBackgroundIcon(Color centerColor,
                            Color leftColor,
                            Color rightColor,
                            Dimension desiredSize)
Full constructor - colors and desired size of the icons can be modified.

Parameters:
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

paint

public void paint(Graphics2D g,
                  Dimension areaSize)
Paints the icon on the given Graphics2D with a maximum of 80% of the given Dimension.

Parameters:
g - - graphics
areaSize - - area size

getOrigX

public int getOrigX()
Returns the X of the bounding box of the original SVG image.

Returns:
The X of the bounding box of the original SVG image.

getOrigY

public int getOrigY()
Returns the Y of the bounding box of the original SVG image.

Returns:
The Y of the bounding box of the original SVG image.

getOrigWidth

public int getOrigWidth()
Returns the width of the bounding box of the original SVG image.

Returns:
The width of the bounding box of the original SVG image.

getOrigHeight

public int getOrigHeight()
Returns the height of the bounding box of the original SVG image.

Returns:
The height of the bounding box of the original SVG image.

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

setDesiredSize

public void setDesiredSize(Dimension desiredSize)
Sets the desired size of this icon. In the next repaint, the new value will be used to scale the icon.

Parameters:
desiredSize - - the desired size


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.