Class SashContainerModel

All Implemented Interfaces:
IAdaptable, IPropertySource

public class SashContainerModel extends AbstractContainerModel
The model for sash container widget.
  • Field Details

  • Constructor Details

    • SashContainerModel

      public SashContainerModel()
  • Method Details

    • configureProperties

      protected void configureProperties()
      Description copied from class: AbstractWidgetModel
      Configure the properties of the widget. Subclass should add new properties in this method.
      Specified by:
      configureProperties in class AbstractWidgetModel
    • getTypeID

      public String getTypeID()
      Specified by:
      getTypeID in class AbstractWidgetModel
      Returns:
      the unique typeID of the model.
    • isTransparent

      public boolean isTransparent()
      Returns, if this widget should have a transparent background.
      Returns:
      boolean True, if it should have a transparent background, false otherwise
    • isHorizontal

      public boolean isHorizontal()
      Returns:
      boolean True, if sash is horizontal, false otherwise
    • isPanel1AutoScaleChildren

      public boolean isPanel1AutoScaleChildren()
      Returns:
      boolean True, if panel 1 will auto scale children when sash moved, false otherwise.
    • isPanel2AutoScaleChildren

      public boolean isPanel2AutoScaleChildren()
      Returns:
      boolean True, if panel 2 will auto scale children when sash moved, false otherwise.
    • getSashStyle

      public SashContainerFigure.SashStyle getSashStyle()
    • getSashWidth

      public int getSashWidth()
    • getSashPosition

      public double getSashPosition()
    • flipVertically

      public void flipVertically()
      Description copied from class: AbstractWidgetModel
      Flip the widget figure vertically.
      Overrides:
      flipVertically in class AbstractWidgetModel
    • flipHorizontally

      public void flipHorizontally()
      Description copied from class: AbstractWidgetModel
      Flip the widget figure horizontally.
      Overrides:
      flipHorizontally in class AbstractWidgetModel
    • rotate90

      public void rotate90(boolean clockwise)
      Description copied from class: AbstractWidgetModel
      Rotate the widget figure 90 degree.
      Overrides:
      rotate90 in class AbstractWidgetModel
      Parameters:
      clockwise - true if rotate clockwise. false if counterclockwise.
    • scaleChildren

      public void scaleChildren()
      Overrides:
      scaleChildren in class AbstractContainerModel