Examples of draw()


Examples of org.jfree.ui.Drawable.draw()

      final double y = (int) StrictGeomUtility.toExternalValue(content.getY());
      final double width = (int) StrictGeomUtility.toExternalValue(content.getWidth());
      final double height = (int) StrictGeomUtility.toExternalValue(content.getHeight());
      final Drawable d = (Drawable) o;
      final Graphics2D g2Clone = (Graphics2D) g2.create();
      d.draw(g2Clone, new Rectangle2D.Double(x,y,width, height));
      g2Clone.dispose();
    }
  }

  private void drawText(final Graphics2D g2,
View Full Code Here

Examples of org.jgroups.demo.tankwar.model.Explode.draw()

    }
   
    int size = comm.getExplodes().size();
    for(int i = 0 ; i < size ; i ++ ) {
      Explode e = comm.getExplodes().get(i);
      e.draw(g);
     
      if(!e.isLive()) {
        comm.getExplodes().remove(i);
      }
    }
View Full Code Here

Examples of org.jmanage.util.display.Table.draw()

        /* draw the table */
        Table table = getTable();
        table.setHeader(itemNames);
        table.addRow(itemValues);
        return table.draw();
    }

    protected abstract Table getTable();
}
View Full Code Here

Examples of org.jmanage.util.display.html.Select.draw()

        final String dashboardId = context.getDashboardConfig().getDashboardId();
        select.onChange("handleEvent(''" + dashboardId + "'', ''" + getId() + "'', ''onChange'', this.options[this.selectedIndex].value);");
        for(String id:data.keySet()){
            select.addOption(id, data.get(id));
        }
        output.append(select.draw());
    }
   
    private Map<String, String> getData(WebContext webContext){
        Map<String, String> data = new HashMap<String, String>();
        ServerConnection serverConnection = webContext.getServerConnection();
View Full Code Here

Examples of org.jmanage.webui.dashboard.framework.DashboardComponent.draw()

                request, true); // set the refresh request       
        assert dashboardConfig != null : "Error retrieving dashboard details. id=" + dashboardId;
        DashboardComponent component = dashboardConfig.getComponents().get(componentId);
        assert component != null : "Error retrieving component. id=" + componentId;
        try{
            return component.draw(dashboardContext);
        }catch(Throwable e){
            logger.log(Level.SEVERE, "Error displaying component", e);
            return "Error:" + e.getMessage();
        }
    }
View Full Code Here

Examples of org.joshy.gfx.stage.swing.SwingGFX.draw()

        graphics2D.setComposite(AlphaComposite.SrcOver);

        initPaint(gx);
        fillShape(gx);
        graphics2D.setComposite(AlphaComposite.SrcAtop);
        gx.draw(bufx, -5, -5);
        gx.dispose();

    }

    public Bounds getEffectBounds() {
View Full Code Here

Examples of org.joshy.sketch.model.SelfDrawable.draw()

                    Bounds oldClip = gfx.getClipRect();
                    gfx.setClipRect(new Bounds(0,0,size,size));
                    gfx.scale(scale,scale);
                    gfx.translate(-bounds.getX(),-bounds.getY());
                    SelfDrawable sd = (SelfDrawable) item;
                    sd.draw(gfx);
                    gfx.translate(bounds.getX(),bounds.getY());
                    gfx.scale(1/scale,1/scale);
                    gfx.setClipRect(oldClip);
                }
                gfx.setPaint(FlatColor.BLACK);
View Full Code Here

Examples of org.librebiz.pureport.run.Page.draw()

                    page.resolveForwards(formatter.getContext());
                    PageLayout layout = formatter.getPageLayout();
                    Rectangle2D rc = format == null
                            ? layout.getDrawableArea(Unit.PT)
                            : layout.getDrawableArea(format);
                    page.draw((Graphics2D)g, rc.getX(), rc.getY(),
                            rc.getHeight());
                    return Printable.PAGE_EXISTS;
                }
            }, formatter.getPageFormat());
            if (job.printDialog()) {
View Full Code Here

Examples of org.locationtech.udig.mapgraphic.MapGraphic.draw()

            try {
                if( !l.getLayer().isVisible() )
                    continue;
                MapGraphic mg = l.getGeoResource().resolve(MapGraphic.class, null);
                MapGraphicContext mgContext = new MapGraphicContextImpl(l, copy);
                mg.draw(mgContext);
            } catch (IOException e) {
                exceptions.add(e);
            }finally{
                copy.dispose();
            }
View Full Code Here

Examples of org.locationtech.udig.printing.model.BoxPrinter.draw()

                box.setLocation(new Point((int) newX, (int) newY));

                Graphics2D boxGraphics = (Graphics2D) graphics.create((int) newX, (int) newY,
                        (int) newW, (int) newH);
                BoxPrinter boxPrinter = box.getBoxPrinter();
                boxPrinter.draw(boxGraphics, monitor);
            }

            graphics.dispose();
            // ImageIO.write(bI, "png", new File("c:\\Users\\moovida\\Desktop\\test.png"));
            // graphics.drawImage(bI, null, 0, 0);
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.