Package com.inductiveautomation.rm.base
Class RMExtras
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMExtras
 
- 
 public class RMExtras extends java.lang.ObjectThis file is just meant to hold various utility methods that customers have asked for.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRMExtras.CategoryMovie category constant type.static classRMExtras.MovieA movie class.static classRMExtras.MovieRoleA movie role class.static classRMExtras.StudioA movie class.
 - 
Constructor SummaryConstructors Constructor Description RMExtras()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddPageBetweenPages()An example of adding a static page between all pages (and at the end) to effectively provide a page back when printing front and back.static voidaddToPage(RMDocument aDoc1, RMDocument aDoc2)Adds the contents from second document to the bottom of the first page of first document.static java.lang.StringBuffergetImageMap(RMShape aShape, java.lang.StringBuffer aSB)Returns a StringBuffer image map for a given shape.static java.util.List<RMExtras.Movie>getMovies()Returns a list of movies.static voidmain(java.lang.String[] args)Writes a movie dataset to file.static voidmain2(java.lang.String[] args)static voidpasswordReport()Set PDF password.static voidprintNames(RMShape aShape)Prints name of every shape in a template hierarchy.static voidprintNames(RMTableGroup aTableGroup, RMTable aTable)Prints name of every shape in table group hierarchy.static voidreplaceDatasetKey(RMShape aShape, java.lang.String aKey1, java.lang.String aKey2)Replaces any dataset key in template that matches first given dataset key with the second given dataset key.static voidreplaceFormat(RMShape aShape, RMFormat aFormat)Replaces a format.static voidreplaceGroupingKey(RMShape aShape, java.lang.String aKey1, java.lang.String aKey2)Replaces any grouping key in the template that matches first given key with the second given key.static voidreplaceSort(RMShape aShape, java.lang.String aSort1, java.lang.String aSort2)Replaces any sort in the template that matches first given sort with the second given sort.static voidreplaceText(RMShape aShape, java.lang.String aString1, java.lang.String aString2)Iterates over all document (or shape) text and replaces occurrences of the first string with the second.static voidsetTimeZone(RMShape aShape, java.util.TimeZone aTimeZone)Sets the time zone for a document.static voidwriteMoviesDataset()Writes a movie dataset to file.
 
- 
- 
- 
Method Detail- 
replaceTextpublic static void replaceText(RMShape aShape, java.lang.String aString1, java.lang.String aString2) Iterates over all document (or shape) text and replaces occurrences of the first string with the second.
 - 
replaceDatasetKeypublic static void replaceDatasetKey(RMShape aShape, java.lang.String aKey1, java.lang.String aKey2) Replaces any dataset key in template that matches first given dataset key with the second given dataset key.
 - 
replaceGroupingKeypublic static void replaceGroupingKey(RMShape aShape, java.lang.String aKey1, java.lang.String aKey2) Replaces any grouping key in the template that matches first given key with the second given key.
 - 
replaceSortpublic static void replaceSort(RMShape aShape, java.lang.String aSort1, java.lang.String aSort2) Replaces any sort in the template that matches first given sort with the second given sort.
 - 
replaceFormatpublic static void replaceFormat(RMShape aShape, RMFormat aFormat) Replaces a format.
 - 
getImageMappublic static java.lang.StringBuffer getImageMap(RMShape aShape, java.lang.StringBuffer aSB) Returns a StringBuffer image map for a given shape.
 - 
printNamespublic static void printNames(RMShape aShape) Prints name of every shape in a template hierarchy.
 - 
printNamespublic static void printNames(RMTableGroup aTableGroup, RMTable aTable) Prints name of every shape in table group hierarchy.
 - 
addToPagepublic static void addToPage(RMDocument aDoc1, RMDocument aDoc2) Adds the contents from second document to the bottom of the first page of first document.
 - 
addPageBetweenPagespublic static void addPageBetweenPages() An example of adding a static page between all pages (and at the end) to effectively provide a page back when printing front and back.
 - 
setTimeZonepublic static void setTimeZone(RMShape aShape, java.util.TimeZone aTimeZone) Sets the time zone for a document.
 - 
passwordReportpublic static void passwordReport() Set PDF password.
 - 
getMoviespublic static java.util.List<RMExtras.Movie> getMovies() Returns a list of movies.
 - 
writeMoviesDatasetpublic static void writeMoviesDataset() Writes a movie dataset to file.
 - 
mainpublic static void main(java.lang.String[] args) Writes a movie dataset to file.
 - 
main2public static void main2(java.lang.String[] args) 
 
- 
 
-