Class AnnotationContainer
- java.lang.Object
-
- eu.tsystems.mms.tic.testframework.annotator.AnnotationContainer
-
- All Implemented Interfaces:
java.io.Serializable
public class AnnotationContainer extends java.lang.Object implements java.io.SerializableClass to serialize annotations into a file. Used by Annotator and LayoutComparator.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AnnotationContainer(java.awt.Color annotationColor, java.util.List<java.awt.Rectangle> annotations)Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetAnnotationColor()java.util.List<java.awt.Rectangle>getAnnotations()java.lang.StringgetBaseImagePath()java.lang.StringgetSaveObjectPath()static AnnotationContainerreadFromJson(java.io.File jsonFile)DeserializeAnnotationContainerfrom json file.voidsetAnnotationColor(java.awt.Color annotationColor)voidsetAnnotations(java.util.List<java.awt.Rectangle> annotations)voidtoJson(java.io.File jsonFile)Write this Object to a json File.
-
-
-
Method Detail
-
getAnnotationColor
public java.awt.Color getAnnotationColor()
-
getBaseImagePath
public java.lang.String getBaseImagePath()
-
getSaveObjectPath
public java.lang.String getSaveObjectPath()
-
getAnnotations
public java.util.List<java.awt.Rectangle> getAnnotations()
-
setAnnotationColor
public void setAnnotationColor(java.awt.Color annotationColor)
-
setAnnotations
public void setAnnotations(java.util.List<java.awt.Rectangle> annotations)
-
toJson
public void toJson(java.io.File jsonFile) throws java.io.IOExceptionWrite this Object to a json File.- Parameters:
jsonFile- File to write detials into.- Throws:
java.io.IOException- Exception handling file.
-
readFromJson
public static AnnotationContainer readFromJson(java.io.File jsonFile) throws java.io.IOException
DeserializeAnnotationContainerfrom json file.- Parameters:
jsonFile- File to read.- Returns:
AnnotationContainer- Throws:
java.io.IOException- Exception handling File.
-
-