Examples of ConcreteAffineRable


Examples of org.apache.batik.refimpl.gvt.filter.ConcreteAffineRable

                //     SPEC.
                // <!> TO DO : HANDLE TRANSFORM
                AffineTransform at = new AffineTransform();
                at.translate(primitiveRegion.getX(), primitiveRegion.getY());

                filter = new ConcreteAffineRable(filter, at);

            } catch (Exception ex) {
                //
                // Need to fit the raster image to the filter region
                // so that we have the same behavior as raster images
                // in the <image> element.
                //
                filter = RasterRable.create(url, null);

                Rectangle2D bounds = filter.getBounds2D();
                AffineTransform scale = new AffineTransform();
                scale.translate(primitiveRegion.getX(), primitiveRegion.getY());
                scale.scale(primitiveRegion.getWidth()/bounds.getWidth(),
                            primitiveRegion.getHeight()/bounds.getHeight());
                scale.translate(-bounds.getX(), -bounds.getY());

                filter = new ConcreteAffineRable(filter, scale);
            }
        }

        filter = new ConcretePadRable(filter,
                                      primitiveRegion,
View Full Code Here

Examples of org.apache.batik.refimpl.gvt.filter.ConcreteAffineRable

        PadRable pad = new ConcretePadRable(in,
                                            offsetArea,
                                            PadMode.ZERO_PAD);

        // Create the AffineRable that maps the input filter node
        AffineRable offset = new ConcreteAffineRable(pad, offsetTransform);

        // Get result attribute if any
        String result = filterElement.getAttributeNS(null, ATTR_RESULT);
        if((result != null) && (result.trim().length() > 0)){
            filterMap.put(result, offset);
View Full Code Here

Examples of org.apache.batik.refimpl.gvt.filter.ConcreteAffineRable

        GraphicsNodeRable gnr
            = new ConcreteGraphicsNodeRable(node);

        AffineRable atr
            = new ConcreteAffineRable(gnr, adjustTxf);

        Rectangle2D padBounds = (Rectangle2D)patternBounds.clone();
        if(overflow){
            //
            // When there is overflow, make sure we take the
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.