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

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

public class SWTSkinObjectImage
extends SWTSkinObjectBasic

Author:
TuxPaper

Field Summary
protected static java.lang.Long DRAW_ANIMATE
           
protected static java.lang.Long DRAW_CENTER
           
protected static java.lang.Long DRAW_HCENTER
           
protected static java.lang.Long DRAW_LEFT
           
protected static java.lang.Long DRAW_NORMAL
           
protected static java.lang.Long DRAW_SCALE
           
protected static java.lang.Long DRAW_SCALEDOWN_OR_CENTER
           
protected static java.lang.Long DRAW_STRETCH
           
protected static java.lang.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
SWTSkinObjectImage(SWTSkin skin, SWTSkinProperties skinProperties, java.lang.String sID, java.lang.String sConfigID, SWTSkinObject parent)
           
 
Method Summary
 void setBackground(java.lang.String sConfigID, java.lang.String sSuffix)
           
protected  void setCanvasImage(java.lang.String sImageID, AECallback callback)
           
 void setImage(org.eclipse.swt.graphics.Image image)
           
 void setImageByID(java.lang.String imageID, AECallback callback)
           
 void setImageUrl(java.lang.String url)
           
protected  void setupAnimationTrigger(int animationDelay)
           
 void setVisible(boolean visible)
           
 java.lang.String switchSuffix(java.lang.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 java.lang.Long DRAW_SCALE

DRAW_SCALEDOWN_OR_CENTER

protected static final java.lang.Long DRAW_SCALEDOWN_OR_CENTER

DRAW_STRETCH

protected static final java.lang.Long DRAW_STRETCH

DRAW_NORMAL

protected static final java.lang.Long DRAW_NORMAL

DRAW_LEFT

protected static final java.lang.Long DRAW_LEFT

DRAW_TILE

protected static final java.lang.Long DRAW_TILE

DRAW_CENTER

protected static final java.lang.Long DRAW_CENTER

DRAW_HCENTER

protected static final java.lang.Long DRAW_HCENTER

DRAW_ANIMATE

protected static final java.lang.Long DRAW_ANIMATE
Constructor Detail

SWTSkinObjectImage

public SWTSkinObjectImage(SWTSkin skin,
                          SWTSkinProperties skinProperties,
                          java.lang.String sID,
                          java.lang.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(java.lang.String sImageID,
                              AECallback callback)

setupAnimationTrigger

protected void setupAnimationTrigger(int animationDelay)

setBackground

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

switchSuffix

public java.lang.String switchSuffix(java.lang.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(java.lang.String imageID,
                         AECallback callback)

setImageUrl

public void setImageUrl(java.lang.String url)