Package org.csstudio.swt.widgets.figures
Class SashContainerFigure
java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.swt.widgets.figures.SashContainerFigure
- All Implemented Interfaces:
Introspectable,org.eclipse.draw2d.IFigure
A Sash Container figure.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch, org.eclipse.draw2d.Figure.ReverseFigureChildrenIteratorNested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets -
Field Summary
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTipFields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.draw2d.IFiguredoubleintorg.eclipse.draw2d.geometry.Rectangle[]booleanbooleanprotected voidlayout()protected voidpaintClientArea(org.eclipse.draw2d.Graphics graphics) voidsetHorizontal(boolean horizontal) Set layout direction of sash container.voidsetOpaque(boolean opaque) voidsetSashPosition(double sashPosition) voidsetSashStyle(SashContainerFigure.SashStyle sashStyle) Set sash style.voidsetSashWidth(int sashWidth) Set Sash width.Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getChildrenRevIterable, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getListenersIterable, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, optimizeClip, paint, paintBorder, paintChildren, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
Constructor Details
-
SashContainerFigure
public SashContainerFigure()
-
-
Method Details
-
getBeanInfo
- Specified by:
getBeanInfoin interfaceIntrospectable- Throws:
IntrospectionException
-
getContentPane
public org.eclipse.draw2d.IFigure getContentPane()- Returns:
- the content pane to host children.
-
getSashPosition
public double getSashPosition()- Returns:
- sash position in percentage (0-1).
-
getSashStyle
- Returns:
- sash style.
-
getSashWidth
public int getSashWidth()- Returns:
- sash width
-
getSubPanelsBounds
public org.eclipse.draw2d.geometry.Rectangle[] getSubPanelsBounds()- Returns:
- the bounds of two subpanels. The coordinate of bounds is relative to the pane. bounds[0] is the bounds of left/up panel. bounds[1] is the bounds of right/down panel.
-
isHorizontal
public boolean isHorizontal()- Returns:
- true if sash container is horizontal.
-
isSashPositionDirty
public boolean isSashPositionDirty()- Returns:
- true is sash position changed but figure has not been layout yet.
-
layout
protected void layout()- Overrides:
layoutin classorg.eclipse.draw2d.Figure
-
paintClientArea
protected void paintClientArea(org.eclipse.draw2d.Graphics graphics) - Overrides:
paintClientAreain classorg.eclipse.draw2d.Figure
-
setHorizontal
public void setHorizontal(boolean horizontal) Set layout direction of sash container.- Parameters:
horizontal-
-
setOpaque
public void setOpaque(boolean opaque) - Specified by:
setOpaquein interfaceorg.eclipse.draw2d.IFigure- Overrides:
setOpaquein classorg.eclipse.draw2d.Figure
-
setSashPosition
public void setSashPosition(double sashPosition) - Parameters:
sashPosition- sash position in percentage (0 - 1).
-
setSashStyle
Set sash style.- Parameters:
sashStyle-
-
setSashWidth
public void setSashWidth(int sashWidth) Set Sash width.- Parameters:
sashWidth- sash width
-