Package org.apache.batik.gvt.filter

Examples of org.apache.batik.gvt.filter.ComponentTransferFunction


        // Copy array to avoid multi-thread conflicts on
        // array access.
        //
        TransferFunction txfFunc[] = new TransferFunction[4];
        System.arraycopy(this.txfFunc, 0, txfFunc, 0, 4);
        ComponentTransferFunction functions[] = new ComponentTransferFunction[4];
        System.arraycopy(this.functions, 0, functions, 0, 4);

        for(int i=0; i<4; i++){
            if(txfFunc[i] == null){
                txfFunc[i] = getTransferFunction(functions[i]);
View Full Code Here


        //
        NodeList children = filterElement.getChildNodes();
        int nChildren = children.getLength();
        int curChild = nChildren - 1;

        ComponentTransferFunction alphaFunction = null;
        ComponentTransferFunction redFunction = null;
        ComponentTransferFunction greenFunction = null;
        ComponentTransferFunction blueFunction = null;

        if(curChild >= 0){
            alphaFunction
                = createComponentTransferFunction(filterElement,
                                                  children.item(curChild),
View Full Code Here

    private static
        ComponentTransferFunction createComponentTransferFunction(
                                                          Element filterElement,
                                                          Node node,
                                                          String tag) {
        ComponentTransferFunction txfFunc = null;

        if(node.getNodeType() == Node.ELEMENT_NODE){
            Element elt = (Element)node;
            if(elt.getNodeName().equals(tag)){
                //
View Full Code Here

TOP

Related Classes of org.apache.batik.gvt.filter.ComponentTransferFunction

Copyright © 2018 www.massapicom. 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.