Beispiel #1
0
        public void applyChange(KMLAbstractObject sourceValues)
        {
            if (!(sourceValues is KMLAbstractTimePrimitive))
            {
                String message = Logging.getMessage("KML.InvalidElementType", sourceValues.GetType().Name);
                Logging.logger().warning(message);
                throw new ArgumentException(message);
            }

            super.applyChange(sourceValues);

            this.onChange(new Message(KMLAbstractObject.MSG_TIME_CHANGED, this));
        }
        public void applyChange(KMLAbstractObject sourceValues)
        {
            if (!(sourceValues is KMLAbstractGeometry))
            {
                String message = Logging.getMessage("nullValue.SourceIsNull");
                Logging.logger().warning(message);
                throw new ArgumentException(message);
            }

            super.applyChange(sourceValues);

            this.onChange(new Message(KMLAbstractObject.MSG_GEOMETRY_CHANGED, this));
        }
Beispiel #3
0
        public void applyChange(KMLAbstractObject sourceValues)
        {
            if (!(sourceValues is KMLScreenOverlay))
            {
                String message = Logging.getMessage("nullValue.SourceIsNull");
                Logging.logger().warning(message);
                throw new ArgumentException(message);
            }

            this.renderable = null;

            super.applyChange(sourceValues);
        }
        public void applyChange(KMLAbstractObject sourceValues)
        {
            if (sourceValues == null)
            {
                String message = Logging.getMessage("nullValue.SourceIsNull");
                Logging.logger().warning(message);
                throw new ArgumentException(message);
            }

            foreach (Map.Entry <String, Object> entry in sourceValues.getFields().getEntries())
            {
                this.setField(entry.getKey(), entry.getValue());
            }
        }