Package org.rascalmpl.library.vis.util.vector

Examples of org.rascalmpl.library.vis.util.vector.Dimension


  public void computeMinSize(){
    //super.computeMinSize();
    BoundingBox iminSize = widget.getFigure().minSize;
    org.eclipse.swt.graphics.Rectangle r = widget.computeTrim(0, 0, FigureMath.ceil(iminSize.getX()), FigureMath.ceil(iminSize.getY()));
    minSize.set(r.width +1 ,r.height +1);
    Dimension minor = major.other();
    minSize.set(minor, Math.ceil(iminSize.get(minor))  );
  }
View Full Code Here


  private void resizeWidthDependsOnHeight(){
    setScrollbars();
    setViewPortSize();
    if(viewPortSize.getX() == 0 || viewPortSize.getY() == 0 ) return;
    distributeSizeWidthDependsOnHeight();
    Dimension major =  figure.getMajorDimension();
    Dimension minor = major.other();
    if(scrollBars.get(minor) != null && figure.size.get(minor) > viewPortSize.get(minor) && !scrollBars.get(minor).isVisible()){
      scrollBars.get(minor).setVisible(true);
      scrollBarsVisible.set(minor,true);
    } else if(scrollBars.get(minor) != null  && figure.size.get(minor) <= viewPortSize.get(minor) && scrollBarsVisible.get(minor)){
      scrollBarsVisible.set(minor,false);
View Full Code Here

TOP

Related Classes of org.rascalmpl.library.vis.util.vector.Dimension

Copyright © 2018 www.massapicom. 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.