/** * Creates the Image from a InputStream. Useful when image comes from the database. Issue 85 by Trumbera * * @param filename * @param inputStream * @return */ public static Image from_STREAM(String filename, InputStream inputStream){ return new Image(filename, inputStream); }
/*** * @param The value of the paragraph * @return the Fluent @Heading2 */ public static Heading2 with(String string) { return new Heading2(string); }
public static ParagraphPiece with(String value) { ParagraphPiece par = new ParagraphPiece(); par.value = value; return par; //return new ParagraphPiece(value); }
/** Created Breaklines according to the number of times provided. * @param value number of times * @return the Breakline object ready to go! */ public static BreakLine times(final Integer value) { return new BreakLine(value); }
/** * This is a different fluent way. * Because there is no create "with", we will have to create a static method to return an instance of the pageBreak. * * Notice that this class doesn't implement IFluentInterface. * * */ public static PageBreak create() { return new PageBreak(); }
/*** * @param The value of the paragraph * @return the Fluent @Heading1 */ public static Heading1 with(String value) { return new Heading1(value); }
/*** * @param The value of the paragraph * @return the Fluent @Heading2 */ public static Heading3 with(String string) { return new Heading3(string); }
/*** * It creates an image from your local machine. * @param path Image full path. To know if it will work, probably you should specify full path from the root of your system. * @return */ public static Image from_FULL_LOCAL_PATHL(String path) { return new Image(path, ImageLocation.FULL_LOCAL_PATH); }
/** Created Breaklines according to the number of times provided. * @param value number of times * @return the Breakline object ready to go! */ public static BreakLine times(final Integer value) { return new BreakLine(value); }
/** * This is a different fluent way. * Because there is no create "with", we will have to create a static method to return an instance of the pageBreak. * * Notice that this class doesn't implement IFluentInterface. * * */ public static PageBreak create() { return new PageBreak(); }
/*** * @param The value of the paragraph * @return the Fluent @Heading2 */ public static Heading2 with(String string) { return new Heading2(string); }
public static ParagraphPiece with(String value) { ParagraphPiece par = new ParagraphPiece(); par.value = value; return par; //return new ParagraphPiece(value); }
/*** * @param The value of the paragraph * @return the Fluent @Heading1 */ public static Heading1 with(String value) { return new Heading1(value); }
/*** * @param The value of the paragraph * @return the Fluent @Heading2 */ public static Heading3 with(String string) { return new Heading3(string); }
/*** * It creates an image from your local machine. * @param path Image full path. To know if it will work, probably you should specify full path from the root of your system. * @return */ public static Image from_FULL_LOCAL_PATHL(String path) { return new Image(path, ImageLocation.FULL_LOCAL_PATH); }
/*** * It creates an image from your the Application Classpath * @param * @return */ public static Image from_CLASSPATH(String path) { return new Image(path, ImageLocation.CLASSPATH); }
/*** * It creates an image from the Web. * @param path Image full path. To know if it will work, you should be able to see this image in your browser * @return */ public static Image from_WEB_URL(String path) { return new Image(path, ImageLocation.WEB_URL); }
/*** * It creates an image from your the Application Classpath * @param * @return */ public static Image from_CLASSPATH(String path) { return new Image(path, ImageLocation.CLASSPATH); }
/*** * It creates an image from the Web. * @param path Image full path. To know if it will work, you should be able to see this image in your browser * @return */ public static Image from_WEB_URL(String path) { return new Image(path, ImageLocation.WEB_URL); }
/** * Creates the Image from a InputStream. Useful when image comes from the database. Issue 85 by Trumbera * * @param filename * @param inputStream * @return */ public static Image from_STREAM(String filename, InputStream inputStream){ return new Image(filename, inputStream); }