Examples of clip()


Examples of com.itextpdf.text.pdf.PdfContentByte.clip()

            if (traces == 0)
                cb.rectangle(0, 0, 0, 0);
            if (points.getWindingRule() == PathIterator.WIND_EVEN_ODD)
                cb.eoClip();
            else
                cb.clip();
            cb.newPath();
        }
    }

    private float normalizeY(float y) {
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.clip()

            if (traces == 0)
                cb.rectangle(0, 0, 0, 0);
            if (points.getWindingRule() == PathIterator.WIND_EVEN_ODD)
                cb.eoClip();
            else
                cb.clip();
            cb.newPath();
        }
    }
   
    private float normalizeY(float y) {
View Full Code Here

Examples of com.mojang.minecraft.level.tile.Block.clip()

               int var22 = this.getTile(var6, var7, var8);
               Block var21 = Block.blocks[var22];
               if(var22 > 0 && var21.getLiquidType() == LiquidType.NOT_LIQUID) {
                  MovingObjectPosition var23;
                  if(var21.isCube()) {
                     if((var23 = var21.clip(var6, var7, var8, var1, var2)) != null) {
                        return var23;
                     }
                  } else if((var23 = var21.clip(var6, var7, var8, var1, var2)) != null) {
                     return var23;
                  }
View Full Code Here

Examples of com.tll.util.PropertyPath.clip()

          final RelationInfo ri = (RelationInfo) sp;
          if(!schemaMap.containsKey(ri.getRelatedType())) {
            load(ri.getRelatedType());
          }
          classMap = schemaMap.get(ri.getRelatedType());
          final String np = p.clip(i + 1);
          sp = classMap.get(np);
          if(sp != null) return sp;
        }
      }
View Full Code Here

Examples of java.awt.Graphics2D.clip()

                g.setColor(Color.BLACK);
                g.drawRect(overall.x, overall.y, overall.width, overall.height);
                g.setColor(old);
               
                Rectangle content = page.getPagedViewClippingBounds(c, pagePaintingClearanceWidth);
                g.clip(content);
               
                int left = pagePaintingClearanceWidth +
                    page.getMarginBorderPadding(c, CalculatedStyle.LEFT);
                int top = page.getPaintingTop()
                    + page.getMarginBorderPadding(c, CalculatedStyle.TOP)
View Full Code Here

Examples of java.awt.Graphics2D.clip()

  public void draw(final Graphics2D g2, final Rectangle2D bounds)
  {
    final Graphics2D gr2 = (Graphics2D) g2.create();
    try
    {
      gr2.clip(bounds);
      barcode.draw(gr2, (int) bounds.getX(), (int) bounds.getY());
    }
    catch (OutputException e)
    {
      logger.error("Unable to draw barcode element", e);
View Full Code Here

Examples of java.awt.Graphics2D.clip()

          (ElementAlignment) layoutContext.getStyleProperty(ElementStyleKeys.VALIGNMENT);
      final int alignmentX = (int) RenderUtility.computeHorizontalAlignment(horizontalAlignment, width, clipWidth);
      final int alignmentY = (int) RenderUtility.computeVerticalAlignment(verticalAlignment, height, clipHeight);

      g2 = (Graphics2D) getGraphics().create();
      g2.clip(drawAreaBounds);
      g2.translate(x, y);
      g2.translate(alignmentX, alignmentY);
      g2.clip(new Rectangle2D.Float(0, 0, clipWidth, clipHeight));
      g2.scale(deviceScaleFactor, deviceScaleFactor);
View Full Code Here

Examples of java.awt.Graphics2D.clip()

      g2 = (Graphics2D) getGraphics().create();
      g2.clip(drawAreaBounds);
      g2.translate(x, y);
      g2.translate(alignmentX, alignmentY);
      g2.clip(new Rectangle2D.Float(0, 0, clipWidth, clipHeight));
      g2.scale(deviceScaleFactor, deviceScaleFactor);

      scaleTransform = null;
    }
    else
View Full Code Here

Examples of java.awt.Graphics2D.clip()

      scaleTransform = null;
    }
    else
    {
      g2 = (Graphics2D) getGraphics().create();
      g2.clip(drawAreaBounds);
      g2.translate(x, y);
      g2.clip(new Rectangle2D.Float(0, 0, width, height));

      final double scaleX;
      final double scaleY;
View Full Code Here

Examples of java.awt.Graphics2D.clip()

    else
    {
      g2 = (Graphics2D) getGraphics().create();
      g2.clip(drawAreaBounds);
      g2.translate(x, y);
      g2.clip(new Rectangle2D.Float(0, 0, width, height));

      final double scaleX;
      final double scaleY;

      final boolean keepAspectRatio = layoutContext.getBooleanStyleProperty(ElementStyleKeys.KEEP_ASPECT_RATIO);
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.