com.threerings.opengl.gui.icon
Class ImageIcon

java.lang.Object
  extended by com.threerings.opengl.gui.icon.Icon
      extended by com.threerings.opengl.gui.icon.ImageIcon

public class ImageIcon
extends Icon

Displays an image as an icon.


Constructor Summary
ImageIcon(Icon icon)
          Converts the supplied AWT icon into a BUI icon.
ImageIcon(Image image)
          Creates an icon from the supplied source image.
 
Method Summary
 int getHeight()
          Returns the height of this icon.
 int getWidth()
          Returns the width of this icon.
 void render(Renderer renderer, int x, int y, float alpha)
          Renders this icon.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageIcon

public ImageIcon(Image image)
Creates an icon from the supplied source image.


ImageIcon

public ImageIcon(Icon icon)
Converts the supplied AWT icon into a BUI icon.

Method Detail

getWidth

public int getWidth()
Description copied from class: Icon
Returns the width of this icon.

Specified by:
getWidth in class Icon

getHeight

public int getHeight()
Description copied from class: Icon
Returns the height of this icon.

Specified by:
getHeight in class Icon

render

public void render(Renderer renderer,
                   int x,
                   int y,
                   float alpha)
Description copied from class: Icon
Renders this icon.

Overrides:
render in class Icon


Copyright © 2011. All Rights Reserved.