Пример #1
0
        //**************************************************************//
        //******************** Restorable State  ***********************//
        //**************************************************************//

        protected void doGetRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
        {
            super.doGetRestorableState(rs, context);

            rs.addStateValueAsLatLon(context, "center", this.getCenter());
            rs.addStateValueAsDouble(context, "width", this.getWidth());
            rs.addStateValueAsDouble(context, "height", this.getHeight());
            rs.addStateValueAsDouble(context, "headingDegrees", this.getHeading().degrees);
        }