Class SashContainerFigure

java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.swt.widgets.figures.SashContainerFigure
All Implemented Interfaces:
Introspectable, org.eclipse.draw2d.IFigure

public class SashContainerFigure extends org.eclipse.draw2d.Figure implements Introspectable
A Sash Container figure.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    style of the sash.

    Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure

    org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch

    Nested 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, toolTip

    Fields inherited from interface org.eclipse.draw2d.IFigure

    MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.eclipse.draw2d.IFigure
     
    double
     
     
    int
     
    org.eclipse.draw2d.geometry.Rectangle[]
     
    boolean
     
    boolean
     
    protected void
     
    protected void
    paintClientArea(org.eclipse.draw2d.Graphics graphics)
     
    void
    setHorizontal(boolean horizontal)
    Set layout direction of sash container.
    void
    setOpaque(boolean opaque)
     
    void
    setSashPosition(double sashPosition)
     
    void
    Set sash style.
    void
    setSashWidth(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, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, 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, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SashContainerFigure

      public SashContainerFigure()
  • Method Details

    • getBeanInfo

      public BeanInfo getBeanInfo() throws IntrospectionException
      Specified by:
      getBeanInfo in interface Introspectable
      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

      public SashContainerFigure.SashStyle 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:
      layout in class org.eclipse.draw2d.Figure
    • paintClientArea

      protected void paintClientArea(org.eclipse.draw2d.Graphics graphics)
      Overrides:
      paintClientArea in class org.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:
      setOpaque in interface org.eclipse.draw2d.IFigure
      Overrides:
      setOpaque in class org.eclipse.draw2d.Figure
    • setSashPosition

      public void setSashPosition(double sashPosition)
      Parameters:
      sashPosition - sash position in percentage (0 - 1).
    • setSashStyle

      public void setSashStyle(SashContainerFigure.SashStyle sashStyle)
      Set sash style.
      Parameters:
      sashStyle -
    • setSashWidth

      public void setSashWidth(int sashWidth)
      Set Sash width.
      Parameters:
      sashWidth - sash width