Package tikzmodel

Examples of tikzmodel.TikzRectangle


             
           
            case RECTANGLE:
              origin = parseCoordinate();     
              tokens.add(origin);
              TikzRectangle rect = new TikzRectangle(
                lastOrigin.getRepresented(),
                origin.getRepresented()
              );
              p("parsePathChain: added: " +rect.toString());
              figures.add(rect);
              break;
             
           
            case CIRCLE:
View Full Code Here


    super(rect);
  }

  @Override
  public void updateShape() {   
    TikzRectangle rect = (TikzRectangle) f;

    double x    = rect.getOrigin().getX().getValue();
    double y    = rect.getOrigin().getY().getValue();
    double width  = rect.getSize().getX().getValue()-x;
    double height  = rect.getSize().getY().getValue()-y;
    s = new Rectangle2D.Double(x, y, width, height);
  }
View Full Code Here

TOP

Related Classes of tikzmodel.TikzRectangle

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.