public class JsonSerializationContext extends JsonContext
| Modifier and Type | Field and Description |
|---|---|
java.util.EventObject |
completed |
static int |
LatestFormat |
brushes, inplaceResources| Constructor and Description |
|---|
JsonSerializationContext(Schedule schedule,
int fileVersion)
Initializes a new instance of the JsonSerializationContext class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFileVersion() |
Schedule |
getSchedule() |
boolean |
isInplaceImages() |
CustomBrushes |
readCustomBrushes(JsonValue value) |
DateTime |
readDate(JsonValue value) |
Style |
readStyle(JsonValue value) |
java.lang.Object |
readTag(java.lang.Object item,
JsonValue tagValue,
java.lang.String propertyName)
Reads the specified tag for the specified object.
|
void |
setFileVersion(int fileVersion) |
void |
setInplaceImages(boolean inplaceImages) |
JsonValue |
writeColor(java.awt.Color color)
Writes a Color object.
|
JsonObject |
writeCustomBrushes(CustomBrushes customBrushes)
Writes the specified
CustomBrushes object. |
JsonObject |
writeStyle(Style style)
Writes the specified
Style object. |
JsonValue |
writeTag(java.lang.Object item,
java.lang.Object tagValue,
java.lang.String propertyName)
Writes the specified tag of the specified object.
|
Base64Decode, base64Encode, parse, readBrush, readBrush, readBrushColor, readBrushes, readColor, readColor, readEnum, readFile, readFont, readFont, readImage, readImages, readObject, readPen, readPen, readPointF, readPointString, readRectangleF, readSizeF, readStringFormat, serialize, toCamelCase, toPascalCase, writeBrush, writeBrushColor, writeBrushes, writeEnum, writeFile, writeFont, writeImage, writeImages, writeObject, writePen, writePointF, writePointString, writeRectangleF, writeSizeF, writeStringFormatpublic java.util.EventObject completed
public static int LatestFormat
public JsonSerializationContext(Schedule schedule, int fileVersion)
schedule - The Schedule that will be serialized or deserialized.fileVersion - Specifies the current file format number.public JsonValue writeColor(java.awt.Color color)
JsonContextwriteColor in class JsonContextcolor - a Color to be writtenJsonValuepublic JsonValue writeTag(java.lang.Object item, java.lang.Object tagValue, java.lang.String propertyName)
item - item The Item whose tag is being serialized.tagValue - The tag object to write.propertyName - The name of the element under which the value should be written.JsonValuepublic JsonObject writeCustomBrushes(CustomBrushes customBrushes)
CustomBrushes object.customBrushes - The CustomBrushes object to write.JsonObject class representing the newly created Json element.public JsonObject writeStyle(Style style)
Style object.style - The Style object to write.JsonObject class representing the newly created JsonObject.public java.lang.Object readTag(java.lang.Object item,
JsonValue tagValue,
java.lang.String propertyName)
item - itemtagValue - valuepropertyName - namepublic CustomBrushes readCustomBrushes(JsonValue value)
public Schedule getSchedule()
public int getFileVersion()
public void setFileVersion(int fileVersion)
public boolean isInplaceImages()
public void setInplaceImages(boolean inplaceImages)