yext.svg.view
Class SVGIcon

java.lang.Object
  extended by yext.svg.view.SVGIcon
All Implemented Interfaces:
Icon

public class SVGIcon
extends Object
implements Icon

An icon implementation that can display SVG graphics


Constructor Summary
SVGIcon()
          Creates a new SVGIcon that is not yet bound to any SVG model or URL.
SVGIcon(SVGModel model)
          Creates a new SVGIcon that displays the given SVG model
SVGIcon(URL svgURL)
          Creates a new SVGIcon that displays the SVG graphics loaded from the given URL.
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 SVGModel getModel()
          Returns the underlying SVG model of this class.
 void paintIcon(Component c, Graphics gfx, int x, int y)
           
 void setModel(SVGModel model)
          Sets the underlying SVG model of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGIcon

public SVGIcon(URL svgURL)
Creates a new SVGIcon that displays the SVG graphics loaded from the given URL.


SVGIcon

public SVGIcon(SVGModel model)
Creates a new SVGIcon that displays the given SVG model


SVGIcon

public SVGIcon()
Creates a new SVGIcon that is not yet bound to any SVG model or URL.

Method Detail

getIconHeight

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

getIconWidth

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

paintIcon

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

getModel

public SVGModel getModel()
Returns the underlying SVG model of this class.


setModel

public void setModel(SVGModel model)
Sets the underlying SVG model of this class.


© Copyright 2000-2007,
yWorks GmbH.
All rights reserved.