Class AbstractDepictedObject

    • Field Summary

      • Fields inherited from class com.globalmentor.beans.BoundPropertyObject

        NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void depict()
      Updates the depiction of the object.
      boolean equals​(java.lang.Object object)
      Transferable<?> exportTransfer()
      Exports data from the depicted object.
      long getDepictID()  
      Depictor<? extends DepictedObject> getDepictor()  
      protected com.globalmentor.event.EventListenerManager getEventListenerManager()  
      int hashCode()  
      void processEvent​(PlatformEvent event)
      Processes an event from the platform.
      java.lang.String toString()  
      • Methods inherited from class com.globalmentor.beans.BoundPropertyObject

        addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractDepictedObject

        public AbstractDepictedObject()
        Default constructor.
        Throws:
        java.lang.IllegalStateException - if no depictor is registered for this object type.
    • Method Detail

      • getEventListenerManager

        protected com.globalmentor.event.EventListenerManager getEventListenerManager()
        Returns:
        The object managing event listeners.
      • getDepictID

        public long getDepictID()
        Specified by:
        getDepictID in interface DepictedObject
        Returns:
        The object depiction identifier.
      • depict

        public void depict()
                    throws java.io.IOException
        Description copied from interface: DepictedObject
        Updates the depiction of the object. The depiction will be marked as updated. This method delegates to the currently installed depictor.
        Specified by:
        depict in interface DepictedObject
        Throws:
        java.io.IOException - if there is an error updating the depiction.
        See Also:
        DepictedObject.getDepictor(), Depictor.depict()
      • exportTransfer

        public Transferable<?> exportTransfer()
        Description copied from interface: DepictedObject
        Exports data from the depicted object. Each export strategy, from last to first added, will be asked to export data, until one is successful.
        Specified by:
        exportTransfer in interface DepictedObject
        Returns:
        The object to be transferred, or null if no data can be transferred.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)

        This implementation returns whether the object is a depicted object with the same ID.

        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object