com.aelitis.azureus.ui.swt.skin
Class SWTSkinObjectImage2

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.skin.SWTSkinObjectBasic
      extended by com.aelitis.azureus.ui.swt.skin.SWTSkinObjectImage2
All Implemented Interfaces:
SWTSkinObject, EventListener, org.eclipse.swt.events.PaintListener, org.eclipse.swt.internal.SWTEventListener, ObfusticateImage, PluginUISWTSkinObject

public class SWTSkinObjectImage2
extends SWTSkinObjectBasic

Author:
TuxPaper

Field Summary
protected static Long DRAW_ANIMATE
           
protected static Long DRAW_CENTER
           
protected static Long DRAW_HCENTER
           
protected static Long DRAW_LEFT
           
protected static Long DRAW_NORMAL
           
protected static Long DRAW_SCALE
           
protected static Long DRAW_SCALEDOWN_OR_CENTER
           
protected static Long DRAW_STRETCH
           
protected static Long DRAW_TILE
           
 
Fields inherited from class com.aelitis.azureus.ui.swt.skin.SWTSkinObjectBasic
bgColor, BORDER_GRADIENT, BORDER_ROUNDED, BORDER_ROUNDED_FILL, control, customTooltipID, debug, listeners, listeners_mon, painter, parent, properties, sConfigID, sID, skin, suffixes, type
 
Constructor Summary
SWTSkinObjectImage2(SWTSkin skin, SWTSkinProperties skinProperties, String sID, String sConfigID, SWTSkinObject parent)
           
 
Method Summary
 void setBackground(String sConfigID, String sSuffix)
           
protected  void setCanvasImage(String sImageID, AECallback callback)
           
 void setImage(org.eclipse.swt.graphics.Image image)
           
 void setImageByID(String imageID, AECallback callback)
           
 void setImageUrl(String url)
           
protected  void setupAnimationTrigger(int animationDelay)
           
 void setVisible(boolean visible)
           
 String switchSuffix(String suffix, int level, boolean walkUp, boolean walkDown)
           
protected  void swt_reallySetImage()
           
 
Methods inherited from class com.aelitis.azureus.ui.swt.skin.SWTSkinObjectBasic
addListener, dispose, equals, getConfigID, getControl, getData, getDefaultVisibility, getListeners, getParent, getProperties, getSkin, getSkinObjectID, getSkinView, getSuffix, getTooltipID, getType, getViewID, hashCode, isAlwaysHookPaintListener, isDebug, isDisposed, isVisible, layoutComplete, obfusticatedImage, paintControl, paintControl, relayout, removeListener, setAlwaysHookPaintListener, setControl, setData, setDebug, setDefaultVisibility, setIsVisible, setObfusticatedImageGenerator, setProperties, setSkinView, setTooltipID, setViewID, switchSuffix, switchSuffix, toString, triggerListeners, triggerListeners
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAW_SCALE

protected static final Long DRAW_SCALE

DRAW_SCALEDOWN_OR_CENTER

protected static final Long DRAW_SCALEDOWN_OR_CENTER

DRAW_STRETCH

protected static final Long DRAW_STRETCH

DRAW_NORMAL

protected static final Long DRAW_NORMAL

DRAW_LEFT

protected static final Long DRAW_LEFT

DRAW_TILE

protected static final Long DRAW_TILE

DRAW_CENTER

protected static final Long DRAW_CENTER

DRAW_HCENTER

protected static final Long DRAW_HCENTER

DRAW_ANIMATE

protected static final Long DRAW_ANIMATE
Constructor Detail

SWTSkinObjectImage2

public SWTSkinObjectImage2(SWTSkin skin,
                           SWTSkinProperties skinProperties,
                           String sID,
                           String sConfigID,
                           SWTSkinObject parent)
Parameters:
skin -
Method Detail

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface SWTSkinObject
Overrides:
setVisible in class SWTSkinObjectBasic

setCanvasImage

protected void setCanvasImage(String sImageID,
                              AECallback callback)

setupAnimationTrigger

protected void setupAnimationTrigger(int animationDelay)

setBackground

public void setBackground(String sConfigID,
                          String sSuffix)
Specified by:
setBackground in interface SWTSkinObject
Overrides:
setBackground in class SWTSkinObjectBasic

switchSuffix

public String switchSuffix(String suffix,
                           int level,
                           boolean walkUp,
                           boolean walkDown)
Specified by:
switchSuffix in interface SWTSkinObject
Overrides:
switchSuffix in class SWTSkinObjectBasic

swt_reallySetImage

protected void swt_reallySetImage()

setImage

public void setImage(org.eclipse.swt.graphics.Image image)

setImageByID

public void setImageByID(String imageID,
                         AECallback callback)

setImageUrl

public void setImageUrl(String url)