Examples of BoostedNode


Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

   * Create a div node with a text.
   *
   * @return the created node.
   */
  public static BoostedNode createDiv(BoostedNode parent, String text){
    BoostedNode node = createDiv(parent);
    createText(node, text);
   
    return node;
  }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

   * Create a div node with raw text.
   *
   * @return the created node.
   */
  public static BoostedNode createDivWithRawContent(BoostedNode parent, String rawText){
    BoostedNode node = createDiv(parent);
    createRaw(node, rawText);
   
    return node;
  }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

   *            the text of the image
   * @return the created node
   */
  public static BoostedNode createImage(BoostedNode parent,
      Component graphic, String text) throws Exception {
    BoostedNode div = createDiv(parent);
    RenderedImage image = GuiBoostUtils.createScreenshot(graphic);
    byte[] imageBytes = GuiBoostUtils.writeImageToBytes(image,
        GuiBoostUtils.FORMAT_PNG);
    createImageNode(div, imageBytes, GuiBoostUtils.FORMAT_PNG, "image");
    // TODO: better name than image
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

   * @param imageName
   *            the name of the image
   * @return the created node
   */
  public static BoostedNode createImageNode(BoostedNode parent, byte[] imageData, String imageFormat, String imageName){
    BoostedNode resultNode = BoostedNodeUtils.createZoomInNodeUseParentListener(parent, null, null);
   
    resultNode.getAttributes().setType(GuiBoostUtils.TYPE_IMAGE);
    resultNode.getAttributes().setValue(imageData);
    resultNode.getAttributes().setName(imageName);
    resultNode.getAttributes().getAttributes()
        .put(GeneralConstants.FORMAT, imageFormat);
   
    return resultNode;
  }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

    return (ObjectFactory) node.getAttributes().getAttributes()
        .get(ObjectFactory.class);
  }

  public void setCurrentValueOfOfRootNodeInPoint(Object value) {
    BoostedNode inPoint = rootOfGraph.getInPoints().get(0);
    setCurrentValue(inPoint, value);
    setCurrentValueSet(inPoint, true);
  }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

    setCurrentValue(inPoint, value);
    setCurrentValueSet(inPoint, true);
  }

  public void setCurrentValueSetOfOfRootNodeInPoint(boolean flag) {
    BoostedNode inPoint = rootOfGraph.getInPoints().get(0);
    setCurrentValueSet(inPoint, flag);
  }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

      Object value = null;
      if (inPoints.size() == 0) {
        throw ThrowableBoostUtils
            .createNotImplementedException("zero in-points are not yet supported");
      } else if (inPoints.size() == 1) {
        BoostedNode inPoint = inPoints.get(0);
        valueIsSet = isCurrentValueSet(inPoint); // hasCurrentValue(inPoint);
        if (valueIsSet
            || computeTransformationsEvenIfInPointsHaveNotBeenSet) {
          value = getCurrentValue(inPoint);
          setCurrentValueSet(inPoint, false); // because the value is
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

          if (predecessorOutPoints.size() != 1) {
            throw ThrowableBoostUtils
                .createNotImplementedException("multiple or no predecessor out-points are not yet supported");
          }
          BoostedNode predecessorOutPoint = predecessorOutPoints
              .get(0);
          if (hasCurrentValue(predecessorOutPoint)) {
            Object outPointValue = getCurrentValue(predecessorOutPoint);
            if (hasCurrentValue(inPoint)) {
              Object inPointValue = getCurrentValue(inPoint);
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

            throw new IllegalStateException(
                "No filename in documentation context for key "
                    + DocumentationContext.DOCUMENTATION_TARGET_PARAMETER);
        } else if (attributes instanceof ObjectAttributes) {
          BoostedNode documentationNode = (BoostedNode) event
              .getSource();

          ObjectAttributes objectAttributes = (ObjectAttributes) attributes;
          Object command = objectAttributes.getName();
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode

  public static TransformationGraph createChain(
      ObjectFactory... transformations) throws Exception {

    TransformationGraph result = new TransformationGraph();
    boolean isRoot = true;
    BoostedNode oldNode = null;
    BoostedNode newNode = null;
    BoostedNode outPoint = null;
    BoostedNode inPoint = null;
    for (ObjectFactory trafo : transformations) {

      if (oldNode != null) {
        outPoint = oldNode.getOutPoints().get(0);
      }
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.