Class SWTSkinObjectSash
java.lang.Object
com.biglybt.ui.swt.skin.SWTSkinObjectBasic
com.biglybt.ui.swt.skin.SWTSkinObjectSash
- All Implemented Interfaces:
ObfuscateImage, PluginUISWTSkinObject, SWTSkinObject, EventListener, org.eclipse.swt.events.PaintListener
Parameters:
- .startpos
- Position in pixels of where to start the sash by default
-
Nested Class Summary
Nested classes/interfaces inherited from class SWTSkinObjectBasic
SWTSkinObjectBasic.GradientInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Compositeprivate intprivate org.eclipse.swt.widgets.Compositeprivate intprivate org.eclipse.swt.widgets.Compositeprivate static final booleanFast Drag disables resizing left and right sides on each mouse move (when mouse is down) Two problems with disabling FASTDRAG: 1) The places we use the sash currently have very slow re-rendering 2) when the user drags out of bounds (minsize, etc), and we set doit to false.private final booleanprivate org.eclipse.swt.widgets.Compositeprivate org.eclipse.swt.widgets.Sashprivate Stringprotected Stringprotected Stringprivate SWTSkinObjectprivate SWTSkinObjectFields inherited from class SWTSkinObjectBasic
alwaysHookPaintListener, bgColor, BORDER_GRADIENT, BORDER_ROUNDED, BORDER_ROUNDED_FILL, control, customTooltipID, debug, initialized, listeners, listeners_mon, painter, paintListenerHooked, parent, properties, sConfigID, sID, skin, suffixes, type -
Constructor Summary
ConstructorsConstructorDescriptionSWTSkinObjectSash(SWTSkin skin, SWTSkinProperties properties, String sID, String sConfigID, String[] typeParams, SWTSkinObject parent, boolean bVertical) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()protected voidprotected voidbooleanprivate voidvoidsetAboveVisible(boolean visible) private voidsetBelowSize(int px) Methods inherited from class SWTSkinObjectBasic
addListener, equals, getConfigID, getControl, getData, getDefaultVisibility, getListeners, getParent, getProperties, getSkin, getSkinObjectID, getSkinView, getSuffix, getTooltipID, getType, getViewID, isAlwaysHookPaintListener, isDebug, isDisposed, isVisible, layoutComplete, obfuscatedImage, paintControl, paintControl, relayout, removeListener, setAlwaysHookPaintListener, setBackground, setControl, setData, setDebug, setDefaultVisibility, setIsVisible, setObfuscatedImageGenerator, setProperties, setSkinView, setTooltipID, setViewID, setVisible, switchSuffix, switchSuffix, switchSuffix, toString, triggerListeners, triggerListeners
-
Field Details
-
FASTDRAG
private static final boolean FASTDRAGFast Drag disables resizing left and right sides on each mouse move (when mouse is down) Two problems with disabling FASTDRAG: 1) The places we use the sash currently have very slow re-rendering 2) when the user drags out of bounds (minsize, etc), and we set doit to false. When the user lifts up the mouse button, we get one selection event at the old position (because we cancelled) #2 can be fixed... #1 not so much..- See Also:
-
sControlBefore
-
sControlAfter
-
createOn
private org.eclipse.swt.widgets.Composite createOn -
isVertical
private final boolean isVertical -
sash
private org.eclipse.swt.widgets.Sash sash -
parentComposite
private org.eclipse.swt.widgets.Composite parentComposite -
above
private org.eclipse.swt.widgets.Composite above -
aboveMin
private int aboveMin -
below
private org.eclipse.swt.widgets.Composite below -
belowMin
private int belowMin -
sBorder
-
soAbove
-
soBelow
-
-
Constructor Details
-
SWTSkinObjectSash
public SWTSkinObjectSash(SWTSkin skin, SWTSkinProperties properties, String sID, String sConfigID, String[] typeParams, SWTSkinObject parent, boolean bVertical)
-
-
Method Details
-
initialize
protected void initialize()- Since:
- 3.1.0.1
-
saveSashPosition
private void saveSashPosition() -
dispose
public void dispose()- Specified by:
disposein interfaceSWTSkinObject- Overrides:
disposein classSWTSkinObjectBasic
-
handleShow
protected void handleShow()- Parameters:
e-- Since:
- 3.1.0.1
-
setBelowSize
private void setBelowSize(int px) - Parameters:
below-bVertical-parentComposite-sash-above-
-
isAboveVisible
public boolean isAboveVisible() -
setAboveVisible
public void setAboveVisible(boolean visible)
-