org.tbee.swing.svg
Class SVGIcon

java.lang.Object
  extended by com.kitfox.svg.app.beans.SVGIcon
      extended by org.tbee.swing.svg.SVGIcon
All Implemented Interfaces:
Cloneable, Icon

public class SVGIcon
extends com.kitfox.svg.app.beans.SVGIcon
implements Icon, Cloneable

Use a SVG as an Icon (based on SVGSalamander) SVGIcon is very slow, use SVGUtils to generate images.

Version:
$Revision: 1.8 $

Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Fields inherited from class com.kitfox.svg.app.beans.SVGIcon
INTERP_BICUBIC, INTERP_BILINEAR, INTERP_NEAREST_NEIGHBOR
 
Constructor Summary
SVGIcon()
           
SVGIcon(InputStream is)
           
SVGIcon(String uri)
           
 
Method Summary
 Object clone()
          get a copy
 SVGIcon cloneIdentical()
           
 void paintIcon(Component c, Graphics g, int x, int y)
          Force the icon to be painted centered and full component size
 
Methods inherited from class com.kitfox.svg.app.beans.SVGIcon
addPropertyChangeListener, getAntiAlias, getIconHeight, getIconWidth, getInterpolation, getPreferredSize, getSvgUniverse, getSvgURI, getUseAntiAlias, isClipToViewbox, isScaleToFit, removePropertyChangeListener, setAntiAlias, setClipToViewbox, setInterpolation, setPreferredSize, setScaleToFit, setSvgResourcePath, setSvgUniverse, setSvgURI, setUseAntiAlias
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Icon
getIconHeight, getIconWidth
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

SVGIcon

public SVGIcon()

SVGIcon

public SVGIcon(String uri)
        throws URISyntaxException
Throws:
URISyntaxException

SVGIcon

public SVGIcon(InputStream is)
Method Detail

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Force the icon to be painted centered and full component size

Specified by:
paintIcon in interface Icon
Overrides:
paintIcon in class com.kitfox.svg.app.beans.SVGIcon

clone

public Object clone()
get a copy

Overrides:
clone in class Object

cloneIdentical

public SVGIcon cloneIdentical()


Copyright © 2012 KnowledgePlaza. All Rights Reserved.