Examples of SapphireSequenceLayout


Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayout

   
    if (this.layout instanceof SequenceLayoutDef)
    {
      if (((SequenceLayoutDef)this.layout).getOrientation().content() != SequenceLayoutOrientation.STACKED)
      {
        SapphireSequenceLayout sequenceLayout = new SapphireSequenceLayout((SequenceLayoutDef)layout);
        this.setLayoutManager(sequenceLayout);
      }
      else
      {
        SapphireStackLayout sapphireStackLayout = new SapphireStackLayout((SequenceLayoutDef)this.layout);
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayout

  @Override
  public Dimension getMaximumSize()
  {
    if (this.getLayoutManager() instanceof SapphireSequenceLayout)
    {
      SapphireSequenceLayout sapphireSequenceLayout = (SapphireSequenceLayout)this.getLayoutManager();
      return sapphireSequenceLayout.calculateMaximumSize(this);
    }
    else if (this.getLayoutManager() instanceof SapphireStackLayout)
    {
      SapphireStackLayout sapphireStackLayout = (SapphireStackLayout)this.getLayoutManager();
      return sapphireStackLayout.calculateMaximumSize(this);
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayout

  {
    super(source, textPart, locator, label);
   
    if (parentFigure.getLayoutManager() instanceof SapphireSequenceLayout)
    {
      SapphireSequenceLayout sequenceLayout = (SapphireSequenceLayout)parentFigure.getLayoutManager();
      SapphireSequenceLayoutConstraint constraint = (SapphireSequenceLayoutConstraint)sequenceLayout.getConstraint(textFigure);
      this.initMinWidth = constraint.minWidth;
    }
   
    initCellEditorListener();
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayout

  @Override
  protected void bringDown()
  {
    if (parentFigure.getLayoutManager() instanceof SapphireSequenceLayout)
    {
      SapphireSequenceLayout sequenceLayout = (SapphireSequenceLayout)parentFigure.getLayoutManager();
      SapphireSequenceLayoutConstraint constraint = (SapphireSequenceLayoutConstraint)sequenceLayout.getConstraint(textFigure);
      constraint.minWidth = this.initMinWidth;
    }
    super.bringDown();
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayout

 
  private void fitComboCellEditor()
  {
    if (parentFigure.getLayoutManager() instanceof SapphireSequenceLayout)
    {
      SapphireSequenceLayout sequenceLayout = (SapphireSequenceLayout)parentFigure.getLayoutManager();
      SapphireSequenceLayoutConstraint constraint = (SapphireSequenceLayoutConstraint)sequenceLayout.getConstraint(textFigure);
      CellEditor.LayoutData layoutData = getCellEditor().getLayoutData();
      ZoomManager zoomMgr = (ZoomManager) this.diagramEditor.getGraphicalViewer()
          .getProperty(ZoomManager.class.toString());
      constraint.minWidth = (int)(layoutData.minimumWidth / zoomMgr.getZoom());
    }   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.