Examples of Box


Examples of org.apache.cayenne.testdo.testmap.Box

        Bag b1 = context.newObject(Bag.class);
        invalidate.add(b1);
        b1.setName("b1");

        Box bx1 = context.newObject(Box.class);
        invalidate.add(bx1);
        bx1.setName("big");
        bx1.setBag(b1);

        BoxInfo bi1 = context.newObject(BoxInfo.class);
        invalidate.add(bi1);
        bi1.setColor("red");
        bi1.setBox(bx1);

        Box bx2 = context.newObject(Box.class);
        invalidate.add(bx2);
        bx2.setName("small");
        bx2.setBag(b1);

        BoxInfo bi2 = context.newObject(BoxInfo.class);
        invalidate.add(bi2);
        bi2.setColor("green");
        bi2.setBox(bx2);
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.Box

          facesContext.getExternalContext().getRequestParameterMap().get(actionPositionName);
      if (LOG.isDebugEnabled()) {
        LOG.debug("actionPosition='" + actionPositionString + "'");
      }
      if (StringUtils.isNotEmpty(actionPositionString)) {
        Box actionPosition = new Box(actionPositionString);
        page.setActionPosition(actionPosition);
      } else {
        page.setActionPosition(null);
      }
    } catch (Exception e) {
View Full Code Here

Examples of org.eclipse.ecf.tutorial.scribbleshare.toolbox.Box

   */
  private List createTools() {
    List toolList = new ArrayList();

    toolList.add(new Pencil());
    toolList.add(new Box());
    toolList.add(new Line());
    toolList.add(new Oval());

    return toolList;
  }
View Full Code Here

Examples of org.librebiz.pureport.definition.Box

    }

    public void evaluate(ReportContext context, List<Forward> fwds) {
        List list = new ArrayList();
        for (int i = 0; i < getCell().getBoxCount(); ++i) {
            Box bx = getCell().getBox(i);
            boolean printBox = true;
            if (bx.getCondition() != null) {
                printBox = context.evaluateCondition(bx.getCondition());
            }
            if (printBox) {
                BoxInstance bi = BoxInstance.getInstance(bx);
                bi.evaluate(context, fwds);
                list.add(bi);
View Full Code Here

Examples of org.locationtech.udig.printing.model.Box

        super.deactivate();
        ((Box) getModel()).eAdapters().remove(this.listener);
    }
   
    protected void refreshVisuals() {
        Box scalebarBox = (Box) this.getModel();
        Point loc = scalebarBox.getLocation();
        Dimension size = scalebarBox.getSize();
        Rectangle rectangle = new Rectangle(loc, size);
       
        ((BoxFigure) getFigure()).setBox((Box) getModel());
       
        ((GraphicalEditPart) getParent()).setLayoutConstraint(this, getFigure(), rectangle);
View Full Code Here

Examples of org.pptx4j.Box

     */
    public static Document CxnSpToSVG(CxnSp cxnSp) {
     
      // Geometrical transforms
      CTTransform2D xfrm = cxnSp.getSpPr().getXfrm();
      Box b = new Box(xfrm.getOff().getX(), xfrm.getOff().getY(),
          xfrm.getExt().getCx(), xfrm.getExt().getCy() );
     
      if (xfrm.getRot()!=0) {
        b.rotate(xfrm.getRot());
      }
      if (xfrm.isFlipH() ) {
        b.flipH();
      }
      if (xfrm.isFlipV() ) {
        b.flipV();
      }
     
      // Convert from EMU to pixels
      b.toPixels();

      // Wrap in a div positioning it on the page
      Document document = XmlUtils.getNewDocumentBuilder().newDocument();
    Element xhtmlDiv = document.createElement("div");
    // Firefox needs the following; Chrome doesn't
    xhtmlDiv.setAttribute("style",
        "position: absolute; width:100%; height:100%; left:0px; top:0px;");   
    Node n = document.appendChild(xhtmlDiv);
     
      // Convert the object itself to SVG
    Svg svg = oFactory.createSvg();
      Line line = oFactory.createLine();
      svg.getSVGDescriptionClassOrSVGAnimationClassOrSVGStructureClass().add(line);
     
      line.setX1(b.getOffset().getXAsString() );
      line.setY1(b.getOffset().getYAsString() );
     
      Point otherEnd = b.getOtherCorner();
     
      line.setX2( otherEnd.getXAsString() );
      line.setY2( otherEnd.getYAsString() );

      line.setStyle("stroke:rgb(99,99,99)");
View Full Code Here

Examples of org.rascalmpl.library.vis.figure.combine.containers.Box

    IValue validate;
   
    switch(pmap.get(ename)){
     
    case BOX:
      return new Box( makeChild(env,c,properties,childPropsNext), properties );
     
    case BUTTON:
      return new Button(env, ((IString) c.get(0)).getValue(),c.get(1), properties);
   
    case CHECKBOX:
View Full Code Here

Examples of org.springframework.data.geo.Box

    @Override
    public Object doProcess(Predicate predicate, Field field) {
      String nearFragment;
      Object[] args = (Object[]) predicate.getValue();
      if (args[0] instanceof Box) {
        Box box = (Box) args[0];
        nearFragment = field.getName() + ":[";
        nearFragment += createRangeFragment(box.getFirst(), box.getSecond());
        nearFragment += "]";
      } else {
        nearFragment = createSpatialFunctionFragment(field.getName(), (org.springframework.data.geo.Point) args[0],
            (Distance) args[1], "bbox");
      }
View Full Code Here

Examples of org.springframework.data.mongodb.core.geo.Box

    assertLocations(locations, "A", "C", "D");
  }

  @Test public void shouldFindWithinBox() {
    // when
    List<Location> locations = repo.findByPositionWithin(new Box(new Point(
        0.25, 0.25), new Point(1, 1)));

    // then
    assertLocations(locations, "B", "C");
  }
View Full Code Here

Examples of org.xhtmlrenderer.render.Box

            _previouslyHovered = null;
        }

        if (currentlyHovered != null) {
            needRepaint = true;
            Box target = box.getRestyleTarget();
            target.restyle(c);

            if (targetedRepaint) {
                PaintingInfo paintInfo = target.getPaintingInfo();

                if (paintInfo == null) {
                    targetedRepaint = false;
                } else {
                    if (repaintRegion == null) {
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.