com.threerings.opengl.gui.icon
Class MergedIcon

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

public class MergedIcon
extends Icon

An icon which is combination of multiple icons.


Field Summary
protected  Icon[] _icons
          The merged icons.
protected  int _maxHeight
          The max height of the icons.
protected  int _maxWidth
          The max width of the icons.
 
Constructor Summary
MergedIcon(Icon... icons)
          Create a merged icon.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_maxWidth

protected int _maxWidth
The max width of the icons.


_maxHeight

protected int _maxHeight
The max height of the icons.


_icons

protected Icon[] _icons
The merged icons.

Constructor Detail

MergedIcon

public MergedIcon(Icon... icons)
Create a merged 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