2015-06-18 10:25:33 -06:00
|
|
|
##
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Adapter for java.awt.Point
|
2016-03-16 16:32:17 -05:00
|
|
|
#
|
|
|
|
#
|
2015-06-18 10:25:33 -06:00
|
|
|
# SOFTWARE HISTORY
|
2016-03-16 16:32:17 -05:00
|
|
|
#
|
2015-06-18 10:25:33 -06:00
|
|
|
# Date Ticket# Engineer Description
|
|
|
|
# ------------ ---------- ----------- --------------------------
|
|
|
|
# 08/31/10 njensen Initial Creation.
|
2016-03-16 16:32:17 -05:00
|
|
|
#
|
|
|
|
#
|
2015-06-18 10:25:33 -06:00
|
|
|
#
|
|
|
|
|
|
|
|
from dynamicserialize.dstypes.java.awt import Point
|
|
|
|
|
|
|
|
ClassAdapter = 'java.awt.Point'
|
|
|
|
|
|
|
|
def serialize(context, point):
|
|
|
|
context.writeI32(point.getX())
|
|
|
|
context.writeI32(point.getY())
|
|
|
|
|
|
|
|
def deserialize(context):
|
|
|
|
x = context.readI32()
|
|
|
|
y = context.readI32()
|
|
|
|
point = Point()
|
|
|
|
point.setX(x)
|
|
|
|
point.setY(y)
|
|
|
|
return point
|
|
|
|
|