dsto.dfc.swt.icons
Class FlowIcon

java.lang.Object
  extended by dsto.dfc.swt.icons.FlowIcon
All Implemented Interfaces:
Icon

public class FlowIcon
extends Object
implements Icon

Author:
mpp

Field Summary
protected  int alignment
           
static int BOTTOM
           
static int CENTER
           
protected  int gap
           
protected  int height
           
protected  ArrayList icons
           
protected  org.eclipse.swt.graphics.ImageData imageData
           
static int TOP
           
protected  int width
           
 
Constructor Summary
FlowIcon()
           
FlowIcon(Icon icon1, Icon icon2)
           
FlowIcon(int gap)
           
 
Method Summary
 void addIcon(Icon icon)
           
 org.eclipse.swt.graphics.Image createImage(org.eclipse.swt.graphics.Device device)
           
 boolean equals(FlowIcon icon)
           
 boolean equals(Object obj)
           
 int getAlignment()
           
 int getGap()
           
 int getIconHeight()
           
 int getIconWidth()
           
 org.eclipse.swt.graphics.ImageData getImageData()
           
 int hashCode()
           
 void paintIcon(org.eclipse.swt.graphics.GC gc, int x, int y)
           
 void removeAllIcons()
          Removes all the icons.
 void removeIcon(Icon icon)
           
 void setAlignment(int alignment)
          Set the vertical alignment of icons.
 void setGap(int newGap)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CENTER

public static final int CENTER
See Also:
Constant Field Values

TOP

public static final int TOP
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

icons

protected ArrayList icons

width

protected int width

height

protected int height

gap

protected int gap

alignment

protected int alignment

imageData

protected org.eclipse.swt.graphics.ImageData imageData
Constructor Detail

FlowIcon

public FlowIcon()

FlowIcon

public FlowIcon(int gap)

FlowIcon

public FlowIcon(Icon icon1,
                Icon icon2)
Method Detail

setGap

public void setGap(int newGap)

getGap

public int getGap()

getAlignment

public int getAlignment()

setAlignment

public void setAlignment(int alignment)
Set the vertical alignment of icons. One of TOP, BOTTOM or CENTER. Default is CENTER.


addIcon

public void addIcon(Icon icon)

removeIcon

public void removeIcon(Icon icon)

removeAllIcons

public void removeAllIcons()
Removes all the icons.


paintIcon

public void paintIcon(org.eclipse.swt.graphics.GC gc,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

createImage

public org.eclipse.swt.graphics.Image createImage(org.eclipse.swt.graphics.Device device)
Specified by:
createImage in interface Icon

getImageData

public org.eclipse.swt.graphics.ImageData getImageData()
Specified by:
getImageData in interface Icon

getIconWidth

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

getIconHeight

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

equals

public boolean equals(FlowIcon icon)

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2008 Commonwealth of Australia