Class SWTSkinObjectBasic
java.lang.Object
com.biglybt.ui.swt.skin.SWTSkinObjectBasic
- All Implemented Interfaces:
ObfuscateImage, PluginUISWTSkinObject, SWTSkinObject, EventListener, org.eclipse.swt.events.PaintListener
- Direct Known Subclasses:
SWTSkinObjectBrowser, SWTSkinObjectButton, SWTSkinObjectCheckbox, SWTSkinObjectCombo, SWTSkinObjectContainer, SWTSkinObjectImage, SWTSkinObjectImage2, SWTSkinObjectList, SWTSkinObjectSash, SWTSkinObjectSeparator, SWTSkinObjectSlider, SWTSkinObjectText1, SWTSkinObjectText2, SWTSkinObjectTextbox, SWTSkinObjectToggle
public class SWTSkinObjectBasic
extends Object
implements SWTSkinObject, org.eclipse.swt.events.PaintListener, ObfuscateImage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanprotected org.eclipse.swt.graphics.Colorprivate org.eclipse.swt.graphics.Imageprotected static final intprotected static final intprotected static final intprivate org.eclipse.swt.graphics.Colorprivate int[]private int[]private intprotected org.eclipse.swt.widgets.Controlprotected booleanprivate Objectprotected booleanprivate booleanprivate boolean(package private) booleanprivate intprivate booleanprotected ArrayList<SWTSkinObjectListener> protected AEMonitorprivate List<SWTSkinObjectBasic.GradientInfo> private Mapprivate ObfuscateImageprotected SWTBGImagePainter(package private) booleanprotected SWTSkinObjectprotected SWTSkinPropertiesprivate org.eclipse.swt.widgets.Listenerprotected Stringprotected Stringprotected SWTSkinprivate SkinViewprotected String[]private Stringprivate Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionSWTSkinObjectBasic(SWTSkin skin, SWTSkinProperties properties, String sID, String sConfigID, String type, SWTSkinObject parent) SWTSkinObjectBasic(SWTSkin skin, SWTSkinProperties properties, org.eclipse.swt.widgets.Control control, String sID, String sConfigID, String type, SWTSkinObject parent) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(SWTSkinObjectListener listener) voiddispose()booleanprivate org.eclipse.swt.graphics.ColorRetrieve the Config ID which is ID in the skin config file.org.eclipse.swt.widgets.ControlRetrieve the associated SWT Control used by the skin objectbooleanprivate org.eclipse.swt.widgets.ListenergetSkin()Retrieve the Skin Object ID that represents this object.getTooltipID(boolean walkup) getType()Retrieve the type of widget.booleanbooleanisDebug()booleanbooleanvoidorg.eclipse.swt.graphics.ImageobfuscatedImage(org.eclipse.swt.graphics.Image image) final voidpaintControl(org.eclipse.swt.events.PaintEvent e) voidpaintControl(org.eclipse.swt.graphics.GC gc) voidrelayout()voidremoveListener(SWTSkinObjectListener listener) voidsetAlwaysHookPaintListener(boolean alwaysHookPaintListener) voidsetBackground(String sConfigID, String sSuffix) voidsetControl(org.eclipse.swt.widgets.Control _control) voidvoidsetDebug(boolean debug) voidprotected booleansetIsVisible(boolean visible, boolean walkup) voidsetObfuscatedImageGenerator(ObfuscateImage obfuscatedImageGenerator) voidsetProperties(SWTSkinProperties skinProperties) voidsetSkinView(SkinView skinView) voidsetTooltipID(String id) protected voidvoidsetVisible(boolean visible) switchSuffix(String suffix) Switch the suffix using the default of1for level andfalsefor walkUpfinal StringswitchSuffix(String suffix, int level, boolean walkUp) switchSuffix(String newSuffixEntry, int level, boolean walkUp, boolean walkDown) toString()voidtriggerListeners(int eventType) voidtriggerListeners(int eventType, Object params) private voidtriggerListenersRaw(int eventType, Object params)
-
Field Details
-
BORDER_ROUNDED
protected static final int BORDER_ROUNDED- See Also:
-
BORDER_ROUNDED_FILL
protected static final int BORDER_ROUNDED_FILL- See Also:
-
BORDER_GRADIENT
protected static final int BORDER_GRADIENT- See Also:
-
control
protected org.eclipse.swt.widgets.Control control -
type
-
sConfigID
-
painter
-
properties
-
sID
-
parent
-
skin
-
suffixes
-
listeners
-
listeners_mon
-
sViewID
-
isVisible
private int isVisible -
bgColor
protected org.eclipse.swt.graphics.Color bgColor -
colorBorder
private org.eclipse.swt.graphics.Color colorBorder -
colorBorderParams
private int[] colorBorderParams -
colorFillParams
private int[] colorFillParams -
colorFillType
private int colorFillType -
initialized
boolean initialized -
paintListenerHooked
boolean paintListenerHooked -
alwaysHookPaintListener
boolean alwaysHookPaintListener -
mapData
-
disposed
private boolean disposed -
debug
protected boolean debug -
listGradients
-
bgImage
private org.eclipse.swt.graphics.Image bgImage -
tooltipID
-
customTooltipID
protected boolean customTooltipID -
resizeGradientBGListener
private org.eclipse.swt.widgets.Listener resizeGradientBGListener -
skinView
-
datasource
-
firstVisibility
private boolean firstVisibility -
layoutComplete
private boolean layoutComplete -
obfuscatedImageGenerator
-
-
Constructor Details
-
SWTSkinObjectBasic
public SWTSkinObjectBasic(SWTSkin skin, SWTSkinProperties properties, org.eclipse.swt.widgets.Control control, String sID, String sConfigID, String type, SWTSkinObject parent) - Parameters:
properties- TODO
-
SWTSkinObjectBasic
public SWTSkinObjectBasic(SWTSkin skin, SWTSkinProperties properties, String sID, String sConfigID, String type, SWTSkinObject parent)
-
-
Method Details
-
setControl
public void setControl(org.eclipse.swt.widgets.Control _control) -
getResizeGradientBGListener
private org.eclipse.swt.widgets.Listener getResizeGradientBGListener() -
setIsVisible
protected boolean setIsVisible(boolean visible, boolean walkup) - Parameters:
visible-- Since:
- 3.0.4.3
-
getControl
public org.eclipse.swt.widgets.Control getControl()Description copied from interface:SWTSkinObjectRetrieve the associated SWT Control used by the skin object- Specified by:
getControlin interfaceSWTSkinObject- Returns:
- SWT Control
-
getType
Description copied from interface:SWTSkinObjectRetrieve the type of widget.- Specified by:
getTypein interfaceSWTSkinObject- Returns:
- TODO Move widget types to SWTSkinObject
-
getConfigID
Description copied from interface:SWTSkinObjectRetrieve the Config ID which is ID in the skin config file.- Specified by:
getConfigIDin interfaceSWTSkinObject- Returns:
- Config ID
-
getSkinObjectID
Description copied from interface:SWTSkinObjectRetrieve the Skin Object ID that represents this object. Typically the same asSWTSkinObject.getConfigID(), however, may be different if a config id is used to make independant copies- Specified by:
getSkinObjectIDin interfaceSWTSkinObject- Returns:
- An unique Skin Object ID
-
getParent
- Specified by:
getParentin interfaceSWTSkinObject
-
setBackground
- Specified by:
setBackgroundin interfaceSWTSkinObject- Parameters:
sConfigID-sSuffix-
-
toString
-
getSkin
- Specified by:
getSkinin interfaceSWTSkinObject
-
equals
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceSWTSkinObject
-
setDefaultVisibility
public void setDefaultVisibility()- Specified by:
setDefaultVisibilityin interfaceSWTSkinObject
-
getDefaultVisibility
public boolean getDefaultVisibility()- Specified by:
getDefaultVisibilityin interfaceSWTSkinObject- Returns:
-
isVisible
public boolean isVisible()- Specified by:
isVisiblein interfaceSWTSkinObject
-
switchSuffix
Switch the suffix using the default of1for level andfalsefor walkUp- Specified by:
switchSuffixin interfaceSWTSkinObject- Parameters:
suffix-- Returns:
-
switchSuffix
- Specified by:
switchSuffixin interfaceSWTSkinObject- Parameters:
suffix-level-walkUp- TODO- Returns:
- TODO
-
switchSuffix
- Specified by:
switchSuffixin interfaceSWTSkinObject
-
getSuffix
- Specified by:
getSuffixin interfaceSWTSkinObject- Returns:
-
getProperties
- Specified by:
getPropertiesin interfaceSWTSkinObject- Returns:
- the properties
-
setProperties
- Specified by:
setPropertiesin interfaceSWTSkinObject
-
addListener
- Specified by:
addListenerin interfaceSWTSkinObject
-
removeListener
- Specified by:
removeListenerin interfaceSWTSkinObject
-
getListeners
- Specified by:
getListenersin interfaceSWTSkinObject- Returns:
-
triggerListeners
public void triggerListeners(int eventType) - Specified by:
triggerListenersin interfaceSWTSkinObject- Parameters:
eventType-
-
triggerListeners
- Specified by:
triggerListenersin interfaceSWTSkinObject- Parameters:
eventType-params-
-
triggerListenersRaw
-
setViewID
-
getViewID
- Specified by:
getViewIDin interfaceSWTSkinObject
-
dispose
public void dispose()- Specified by:
disposein interfaceSWTSkinObject
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposedin interfaceSWTSkinObject- Returns:
-
setTooltipID
- Specified by:
setTooltipIDin interfaceSWTSkinObject- Parameters:
id-
-
getTooltipID
- Specified by:
getTooltipIDin interfaceSWTSkinObject- Parameters:
walkup-- Returns:
-
paintControl
public void paintControl(org.eclipse.swt.graphics.GC gc) -
paintControl
public final void paintControl(org.eclipse.swt.events.PaintEvent e) - Specified by:
paintControlin interfaceorg.eclipse.swt.events.PaintListener
-
isAlwaysHookPaintListener
public boolean isAlwaysHookPaintListener() -
setAlwaysHookPaintListener
public void setAlwaysHookPaintListener(boolean alwaysHookPaintListener) -
getData
- Specified by:
getDatain interfaceSWTSkinObject
-
setData
- Specified by:
setDatain interfaceSWTSkinObject
-
obfuscatedImage
public org.eclipse.swt.graphics.Image obfuscatedImage(org.eclipse.swt.graphics.Image image) - Specified by:
obfuscatedImagein interfaceObfuscateImage
-
setObfuscatedImageGenerator
- Specified by:
setObfuscatedImageGeneratorin interfaceSWTSkinObject
-
setDebug
public void setDebug(boolean debug) - Specified by:
setDebugin interfaceSWTSkinObject- Parameters:
debug- the debug to set
-
isDebug
public boolean isDebug()- Specified by:
isDebugin interfaceSWTSkinObject- Returns:
- the debug
-
relayout
public void relayout()- Specified by:
relayoutin interfaceSWTSkinObject
-
layoutComplete
public void layoutComplete()- Specified by:
layoutCompletein interfaceSWTSkinObject
-
getColor_SuffixWalkback
-
getSkinView
- Specified by:
getSkinViewin interfaceSWTSkinObject
-
setSkinView
- Specified by:
setSkinViewin interfaceSWTSkinObject
-