Package railo.runtime.exp

Examples of railo.runtime.exp.FunctionException


    return res;
  }
  public static String toString(Object value, String argName) throws FunctionException {
    String res = Caster.toString(value,null);
    if(res==null) {
      throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", msg(value,"String",argName));
    }
    return res;
  }
View Full Code Here


  }

  public static Colormap toColormap(Object value, String argName) throws FunctionException {
    if(value instanceof Colormap)
      return (Colormap) value;
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", msg(value,"Colormap",argName)+" use function ImageFilterColorMap to create a colormap");
  }
View Full Code Here

   
    String[] arr = ListUtil.listToStringArray(str, ',');
    if(arr.length==2) {
      return new Point(Caster.toIntValue(arr[0]),Caster.toIntValue(arr[1]));
    }
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "use the following format [x,y]");
   
  }
View Full Code Here

        Material material = new LightFilter.Material();
        material.setDiffuseColor(toColorRGB(arr[0], argName+"[1]"));
        material.setOpacity(Caster.toFloatValue(arr[1]));
        return material;
      }
      throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "use the following format [color,opacity]");
     
    }
   
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "use the following format [\"color,opacity\"] or [{color='#cc0033',opacity=0.5}]");
   
  }
View Full Code Here

    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "use the following format [\"color,opacity\"] or [{color='#cc0033',opacity=0.5}]");
   
  }

  public static Function2D toFunction2D(Object value, String argName) throws FunctionException {
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "type Function2D not supported yet!");
  }
View Full Code Here

    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "type Function2D not supported yet!");
  }


  public static AffineTransform toAffineTransform(Object value, String argName) throws FunctionException {
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "type BufferedImage not supported yet!");
  }
View Full Code Here

  public static AffineTransform toAffineTransform(Object value, String argName) throws FunctionException {
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "type BufferedImage not supported yet!");
  }

  public static Composite toComposite(Object value, String argName) throws FunctionException {
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "type Composite not supported yet!");
  }
View Full Code Here

  }

  public static CurvesFilter.Curve toCurvesFilter$Curve(Object value, String argName) throws FunctionException {
    if(value instanceof CurvesFilter.Curve)
      return (CurvesFilter.Curve) value;
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", msg(value,"Curve",argName)+" use function ImageFilterCurve to create a Curve");
  }
View Full Code Here

  public static float[] toAFloat(Object value, String argName) throws PageException {
    return ArrayUtil.toFloatArray(value);
  }

  public static int[][] toAAInt(Object value, String argName) throws FunctionException {
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "type int[][] not supported yet!");
  }
View Full Code Here

  }

  public static WarpGrid toWarpGrid(Object value, String argName) throws FunctionException {
    if(value instanceof WarpGrid)
      return (WarpGrid) value;
    throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", msg(value,"WarpGrid",argName)+" use function ImageFilterWarpGrid to create a WarpGrid");
  }
View Full Code Here

TOP

Related Classes of railo.runtime.exp.FunctionException

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.