Package tv.porst.swfretools.parser.structures

Examples of tv.porst.swfretools.parser.structures.Gradient


  /**
   * Creates the child nodes of the node.
   */
  private void createChildren() {
    if (getUserObject() instanceof Gradient) {
      final Gradient cgradient = (Gradient) getUserObject();
      addNode("SpreadMode", cgradient.getSpreadMode());
      addNode("InterpolationMode", cgradient.getInterpolationMode());
      addNode("NumGradients", cgradient.getNumGradients());
      addNode("GradientRecords", cgradient.getGradientRecords());
    }
    else if (getUserObject() instanceof Gradient3) {
      final Gradient3 cgradient = (Gradient3) getUserObject();
      addNode("SpreadMode", cgradient.getSpreadMode());
      addNode("InterpolationMode", cgradient.getInterpolationMode());
      addNode("NumGradients", cgradient.getNumGradients());
      addNode("GradientRecords", cgradient.getGradientRecords());
    }
    else if (getUserObject() instanceof FocalGradient) {
      final FocalGradient cgradient = (FocalGradient) getUserObject();
      addNode("SpreadMode", cgradient.getSpreadMode());
      addNode("InterpolationMode", cgradient.getInterpolationMode());
      addNode("NumGradients", cgradient.getNumGradients());
      addNode("GradientRecords", cgradient.getGradientRecords());
      addNode("FocalPoint", cgradient.getFocalPoint());
    }
    else {
      throw new IllegalStateException("Error: Unknown gradient type");
    }
  }
View Full Code Here

TOP

Related Classes of tv.porst.swfretools.parser.structures.Gradient

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.