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
,java.util.EventListener
,org.eclipse.swt.events.PaintListener
,org.eclipse.swt.internal.SWTEventListener
public class SWTSkinObjectSash extends SWTSkinObjectBasic
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
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.Composite
above
private int
aboveMin
private org.eclipse.swt.widgets.Composite
below
private int
belowMin
private org.eclipse.swt.widgets.Composite
createOn
private static boolean
FASTDRAG
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 boolean
isVertical
private org.eclipse.swt.widgets.Composite
parentComposite
private org.eclipse.swt.widgets.Sash
sash
private java.lang.String
sBorder
protected java.lang.String
sControlAfter
protected java.lang.String
sControlBefore
private SWTSkinObject
soAbove
private SWTSkinObject
soBelow
-
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
Constructors Constructor Description SWTSkinObjectSash(SWTSkin skin, SWTSkinProperties properties, java.lang.String sID, java.lang.String sConfigID, java.lang.String[] typeParams, SWTSkinObject parent, boolean bVertical)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
protected void
handleShow()
protected void
initialize()
boolean
isAboveVisible()
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 Detail
-
FASTDRAG
private static final boolean FASTDRAG
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. 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:
- Constant Field Values
-
sControlBefore
protected java.lang.String sControlBefore
-
sControlAfter
protected java.lang.String 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
private java.lang.String sBorder
-
soAbove
private SWTSkinObject soAbove
-
soBelow
private SWTSkinObject soBelow
-
-
Constructor Detail
-
SWTSkinObjectSash
public SWTSkinObjectSash(SWTSkin skin, SWTSkinProperties properties, java.lang.String sID, java.lang.String sConfigID, java.lang.String[] typeParams, SWTSkinObject parent, boolean bVertical)
-
-
Method Detail
-
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)
-
-