com.yworks.yfiles.server.graphml.flexio.data
Class ImageIcon

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.ImageIcon
All Implemented Interfaces:
IIcon

public class ImageIcon
extends java.lang.Object
implements IIcon

An IIcon implementation for images specified as a class name of the client application or as an URL.


Constructor Summary
ImageIcon(double width, double height)
          Creates a new instance with the given width and height
 
Method Summary
 java.lang.String getClassName()
          Get the class name of the Flex client's class that is used for creating icon instances.
 double getHeight()
          The width of the icon.
 java.lang.String getURL()
          Get the url where the icon image is loaded from.
 double getWidth()
          The width of the icon.
 void setClassName(java.lang.String className)
          Set the class name of the Flex client's class that is used for creating icon instances.
 void setHeight(double height)
          Set the height of the icon.
 void setURL(java.lang.String url)
          Set the url where the icon image is loaded from.
 void setWidth(double width)
          Set the width of the icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageIcon

public ImageIcon(double width,
                 double height)
Creates a new instance with the given width and height

Parameters:
width - The icon's width
height - The icon's height
Method Detail

getWidth

public double getWidth()
The width of the icon.

Specified by:
getWidth in interface IIcon

setWidth

public void setWidth(double width)
Set the width of the icon.


getHeight

public double getHeight()
The width of the icon.

Specified by:
getHeight in interface IIcon

setHeight

public void setHeight(double height)
Set the height of the icon.


setClassName

public void setClassName(java.lang.String className)
Set the class name of the Flex client's class that is used for creating icon instances.


setURL

public void setURL(java.lang.String url)
Set the url where the icon image is loaded from.


getClassName

public java.lang.String getClassName()
Get the class name of the Flex client's class that is used for creating icon instances.


getURL

public java.lang.String getURL()
Get the url where the icon image is loaded from.



Copyright © 2000-2013 yWorks GmbH. All rights reserved