Examples of fill()


Examples of de.intarsys.cwt.environment.IGraphicsContext.fill()

        AffineTransform imgTransform = graphics.getTransform();
        imgTransform.scale(1, -1);
        imgTransform.translate(-rect.getMinX(), -rect.getMaxY());
        graphics.setTransform(imgTransform);
        graphics.setBackgroundColor(Color.WHITE);
        graphics.fill(rect);
        CSContent content = pdPage.getContentStream();
        if (content != null) {
          JPodRenderer renderer = new JPodRenderer(null, graphics);
          renderer.process(content, pdPage.getResources());
        }
View Full Code Here

Examples of edu.uci.ics.jung.visualization.transform.shape.GraphicsDecorator.fill()

                                .getMinX(), y2, stanColor, cyclic);
            }
        }
        if (fillPaint != null) {
            g.setPaint(fillPaint);
            g.fill(shape);
            g.setPaint(oldPaint);
        }
        Paint drawPaint = rc.getVertexDrawPaintTransformer().transform(v);
        if (drawPaint != null) {
            g.setPaint(drawPaint);
View Full Code Here

Examples of edu.uci.ics.jung.visualization.transform.shape.TransformingGraphics.fill()

                        edgeArrowRenderingSupport.getArrowTransform(rc, new GeneralPath(edgeShape), destVertexShape);
                    if(at == null) return;
                    Shape arrow = rc.getEdgeArrowTransformer().transform(Context.<Graph<V,E>,E>getInstance(graph, e));
                    arrow = at.createTransformedShape(arrow);
                    g.setPaint(rc.getArrowFillPaintTransformer().transform(e));
                    g.fill(arrow);
                    g.setPaint(rc.getArrowDrawPaintTransformer().transform(e));
                    g.draw(arrow);
                }
                if (graph.getEdgeType(e) == EdgeType.UNDIRECTED) {
                    Shape vertexShape =
View Full Code Here

Examples of erogenousbeef.bigreactors.common.multiblock.helpers.CoolantContainer.fill()

  @Override
  public int fill(ForgeDirection from, FluidStack resource, boolean doFill) {
    if(!isConnected() || !inlet || from != getOutwardsDir()) { return 0; }
   
    CoolantContainer cc = getReactorController().getCoolantContainer();
    return cc.fill(getConnectedTank(), resource, doFill);
  }

  @Override
  public FluidStack drain(ForgeDirection from, FluidStack resource,
      boolean doDrain) {
View Full Code Here

Examples of eu.planets_project.tb.gui.backing.ExperimentBean.fill()

     * @return
     */
    public static ExperimentBean putExperimentIntoSessionExperimentBean( Experiment exp ) {
        ExperimentBean expBean = new ExperimentBean();
        if( exp != null ){
          expBean.fill(exp);
        }
        else{
          //in this case we're having a request for a new experiment
          resetExpTypeBeanForExperimentInSession();
        }
View Full Code Here

Examples of extracells.tileentity.TileEntityCertusTank.fill()

      FluidStack liquid = FluidContainerRegistry.getFluidForFilledItem(current);
      TileEntityCertusTank tank = (TileEntityCertusTank) worldObj.getBlockTileEntity(x, y, z);

      if (liquid != null)
      {
        int amountFilled = tank.fill(ForgeDirection.UNKNOWN, liquid, true);

        if (amountFilled != 0 && !entityplayer.capabilities.isCreativeMode)
        {
          if (current.stackSize > 1)
          {
View Full Code Here

Examples of forestry.api.core.IToolPipette.fill()

    int liquidAmount = tank.getFluid().amount;

    if (pipette.canPipette(itemstack) && liquidAmount > 0) {
      if (liquidAmount > 0) {
        FluidStack fillAmount = tank.drain(1000, false);
        int filled = pipette.fill(itemstack, fillAmount, true);
        tank.drain(filled, true);
      }
    } else {
      FluidStack potential = pipette.drain(itemstack, pipette.getCapacity(itemstack), false);
      if (potential != null)
View Full Code Here

Examples of forestry.core.fluids.TankManager.fill()

  public int fill(ForgeDirection from, FluidStack resource, boolean doFill) {
    TankManager tankManager = getTankManager();
    if (tankManager == null)
      return FakeTank.INSTANCE.fill(resource, doFill);

    return tankManager.fill(from, resource, doFill);
  }

  @Override
  public FluidStack drain(ForgeDirection from, FluidStack resource, boolean doDrain) {
    TankManager tankManager = getTankManager();
View Full Code Here

Examples of forestry.core.fluids.tanks.StandardTank.fill()

        tank.drain(filled, true);
      }
    } else {
      FluidStack potential = pipette.drain(itemstack, pipette.getCapacity(itemstack), false);
      if (potential != null)
        pipette.drain(itemstack, tank.fill(potential, true), true);
    }
  }

  @Override
  public void updateProgressBar(int messageId, int data) {
View Full Code Here

Examples of games.stendhal.server.entity.item.Item.fill()

          && (rpobject.getInt("persistent") == 1)) {
        /*
         * Keep [new] rpclass
         */
        final RPClass rpclass = item.getRPClass();
        item.fill(rpobject);
        item.setRPClass(rpclass);

        // If we've updated the item name we don't want persistent reverting it
        item.put("name", name);
      }
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.