co.uk.sentinelweb.views.draw.file.export.json.v3.gson.serialisers
Class PenSerializer

java.lang.Object
  extended by co.uk.sentinelweb.views.draw.file.export.json.v3.gson.serialisers.PenSerializer
All Implemented Interfaces:
com.google.gson.JsonSerializer<Pen>

public class PenSerializer
extends java.lang.Object
implements com.google.gson.JsonSerializer<Pen>


Constructor Summary
PenSerializer(SaveFile _saveFile)
           
 
Method Summary
 com.google.gson.Gson getGson()
           
 com.google.gson.JsonElement serialize(Pen pen, java.lang.reflect.Type arg1, com.google.gson.JsonSerializationContext cxt)
           
 void setGson(com.google.gson.Gson gson)
           
 com.google.gson.JsonObject tip(StrokeDecoration.Tip e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PenSerializer

public PenSerializer(SaveFile _saveFile)
Method Detail

serialize

public com.google.gson.JsonElement serialize(Pen pen,
                                             java.lang.reflect.Type arg1,
                                             com.google.gson.JsonSerializationContext cxt)
Specified by:
serialize in interface com.google.gson.JsonSerializer<Pen>

tip

public com.google.gson.JsonObject tip(StrokeDecoration.Tip e)

getGson

public com.google.gson.Gson getGson()
Returns:
the gson

setGson

public void setGson(com.google.gson.Gson gson)
Parameters:
gson - the gson to set