Examples of OMText


Examples of com.bbn.openmap.omGraphics.OMText

    static class DTEDLocation {
        OMText text;
        OMRect dot;

        public DTEDLocation(int x, int y) {
            text = new OMText(x + 10, y, (String) null, (java.awt.Font) null, OMText.JUSTIFY_LEFT);

            dot = new OMRect(x - 1, y - 1, x + 1, y + 1);
            text.setLinePaint(java.awt.Color.red);
            dot.setLinePaint(java.awt.Color.red);
        }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMText

        }

        // create OMText from internal text representation
        switch (text.rt) {
        case OMGraphic.RENDERTYPE_LATLON:
            omtext = new OMText(text.llpts[0], text.llpts[1], text.data, Font.decode(text.font), text.just);
            break;
        case OMGraphic.RENDERTYPE_XY:
            omtext = new OMText(text.xypts[0], text.xypts[1], text.data, Font.decode(text.font), text.just);
            break;
        case OMGraphic.RENDERTYPE_OFFSET:
            omtext = new OMText(text.llpts[0], text.llpts[1], text.xypts[0], text.xypts[1], text.data, Font.decode(text.font), text.just);
            break;
        default:
            System.err.println("ARRRR!");
            break;
        }
View Full Code Here

Examples of org.apache.axiom.om.OMText

    OMNode textNode = el.getFirstOMChild();
    if (textNode.getType() != OMNode.TEXT_NODE) {
      log.error("Text Node not found");
      return null;
    }
    OMText text = (OMText) textNode;
        try {
            return (DataHandler) text.getDataHandler();
        } catch (ClassCastException ce) {
            log.error("cannot get DataHandler" + ce.getMessage());
            return null;
        }
  }
View Full Code Here

Examples of org.apache.axiom.om.OMText

  public static void setBinaryPayload(SOAPEnvelope envelope, DataHandler dh) {
    OMFactory fac = envelope.getOMFactory();
    OMElement binaryElt = envelope.getOMFactory()
        .createOMElement(BINARYELT);
    OMText text = fac.createOMText(dh, true);
    binaryElt.addChild(text);
    setXMLPayload(envelope, binaryElt);
  }
View Full Code Here

Examples of org.apache.axiom.om.OMText

    OMNode textNode = el.getFirstOMChild();
    if (textNode.getType() != OMNode.TEXT_NODE) {
      log.error("Text Node not found");
      return null;
    }
    OMText text = (OMText) textNode;
    return text.getText();
  }
View Full Code Here

Examples of org.apache.axiom.om.OMText

  }

  public static void setTextPayload(SOAPEnvelope envelope, String text) {
    OMFactory fac = envelope.getOMFactory();
    OMElement textElt = envelope.getOMFactory().createOMElement(TEXTELT);
    OMText textNode = fac.createOMText(text);
    textElt.addChild(textNode);
    setXMLPayload(envelope, textElt);
  }
View Full Code Here

Examples of org.apache.axiom.om.OMText

                        (SynapseEnvironment) synEnv.getValue()));
            } else {
                // add Hessian data inside a data handler
                dataHandler = new DataHandler(new SynapseBinaryDataSource(pis, contentType));
            }
            OMText textData = factory.createOMText(dataHandler, true);
            element.addChild(textData);
           
            // indicate that message faults shall be handled as http 200
            messageContext.setProperty(NhttpConstants.FAULTS_AS_HTTP_200, NhttpConstants.TRUE);
View Full Code Here

Examples of org.apache.axiom.om.OMText

        while (it.hasNext() && synapseBinaryDataSource == null) {

            OMNode hessianElement = (OMNode) it.next();
            if (hessianElement instanceof OMText) {

                OMText tempNode = (OMText) hessianElement;
                if (tempNode.getDataHandler() != null
                        && ((DataHandler) tempNode.getDataHandler()).getDataSource() instanceof SynapseBinaryDataSource) {

                    synapseBinaryDataSource = (SynapseBinaryDataSource) ((DataHandler) tempNode
                            .getDataHandler()).getDataSource();
                }
            }
        }
View Full Code Here

Examples of org.apache.axiom.om.OMText

    OMNode textNode = el.getFirstOMChild();
    if (textNode.getType() != OMNode.TEXT_NODE) {
      log.error("Text Node not found");
      return null;
    }
    OMText text = (OMText) textNode;
        try {
            return (DataHandler) text.getDataHandler();
        } catch (ClassCastException ce) {
            log.error("cannot get DataHandler" + ce.getMessage());
            return null;
        }
  }
View Full Code Here

Examples of org.apache.axiom.om.OMText

  public static void setBinaryPayload(SOAPEnvelope envelope, DataHandler dh) {
    OMFactory fac = envelope.getOMFactory();
    OMElement binaryElt = envelope.getOMFactory()
        .createOMElement(BINARYELT);
    OMText text = fac.createOMText(dh, true);
    binaryElt.addChild(text);
    setXMLPayload(envelope, binaryElt);
  }
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.