Package com.biglybt.ui.swt.skin
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
,org.eclipse.swt.internal.SWTEventListener
Parameters:
- .startpos
- Position in pixels of where to start the sash by default
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectBasic
SWTSkinObjectBasic.GradientInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Composite
private int
private org.eclipse.swt.widgets.Composite
private int
private org.eclipse.swt.widgets.Composite
private static final boolean
Fast 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 boolean
private org.eclipse.swt.widgets.Composite
private org.eclipse.swt.widgets.Sash
private String
protected String
protected String
private SWTSkinObject
private SWTSkinObject
Fields inherited from class com.biglybt.ui.swt.skin.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 TypeMethodDescriptionvoid
dispose()
protected void
protected void
boolean
void
setAboveVisible
(boolean visible) private void
setBelowSize
(int px) Methods inherited from class com.biglybt.ui.swt.skin.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
-
dispose
public void dispose()- Specified by:
dispose
in interfaceSWTSkinObject
- Overrides:
dispose
in 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)
-