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

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


  public void setSize(int x,int y){
    appletRoot.setSize(x + appletRoot.getBorderWidth() , y + appletRoot.getBorderWidth() );
  }
 
  public BoundingBox getMinViewingSize(){
    BoundingBox box = appletRoot.getFigure().minSize;
    Rectangle r = appletRoot.computeTrim(0, 0, FigureMath.round(box.getX()), FigureMath.round(box.getY()));
    return new BoundingBox(r.width, r.height);
  }
View Full Code Here


  }
 
  @Override
  public void computeMinSize(){
    super.computeMinSize();
    BoundingBox innerFigBB = widget.getFigure().minSize;
    if(!hscroll || !vscroll){
      Rectangle r = widget.computeTrim(0, 0, FigureMath.ceil(innerFigBB.getX()), FigureMath.ceil(innerFigBB.getY()));
      if(!hscroll){
        minSize.setMax(X, r.width);
      }
      if(!vscroll){
        minSize.setMax(Y,r.height);
View Full Code Here

TOP

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

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.