src.gov.nasa.worldwind.WWObjectImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind;
import gov.nasa.worldwind.avlist.AVListImpl;
import gov.nasa.worldwind.event.*;
import gov.nasa.worldwind.util.*;
/**
* Implements WWObject
functionality. Meant to be either subclassed or aggregated by classes implementing
* WWObject
.
*
* @author Tom Gaskins
* @version $Id: WWObjectImpl.java 1171 2013-02-11 21:45:02Z dcollins $
*/
public class WWObjectImpl extends AVListImpl implements WWObject
{
/**
* Constructs a new WWObjectImpl
.
*/
public WWObjectImpl()
{
}
public WWObjectImpl(Object source)
{
super(source);
}
/**
* The property change listener for this instance.
* Receives property change notifications that this instance has registered with other property change notifiers.
* @param propertyChangeEvent the event
* @throws IllegalArgumentException if propertyChangeEvent
is null
*/
public void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
{
if (propertyChangeEvent == null)
{
String msg = Logging.getMessage("nullValue.PropertyChangeEventIsNull");
Logging.logger().severe(msg);
throw new IllegalArgumentException(msg);
}
// Notify all *my* listeners of the change that I caught
super.firePropertyChange(propertyChangeEvent);
}
/** Empty implementation of MessageListener. */
public void onMessage(Message message)
{
// Empty implementation
}
}