Documentation of 'org.opengis.go.display.primitive.AggregateGraphic' Java class
AggregateGraphic
org.opengis.go.display.primitive

Interface AggregateGraphic

  • All Superinterfaces:
    Graphic


    public interface AggregateGraphic
    extends Graphic
    A common abstraction for implementations of aggregated Graphics. The abstraction makes no assumptions as to how the Graphics are stored within the aggregate. For example, the Graphics may be stored in an array such that the Graphic in the zeroeth element of the array is considered the front-most object and the Graphic in the largest element of the array is considered the bottom-most object. Or, the Graphics may be stored in a Skiplist sorted by a unique Graphic identifier to make adding and removing Graphics very efficient.

    Additionally, the abstraction makes no assumptions as to thread safety. If the implementations of Graphic are to be used in a multi-threaded environment, the implementation will have to address thread safety by synchronizing methods or by invoking all methods from a single thread.

    • Method Detail

      • setChildren

        void setChildren(Graphic[] children)
        Sets the children of this AggregateGraphic to the given set of Graphics. If there are already children assigned, then those children will be removed and their parent will be set to null.
        Parameters:
        children - the new children of the AggregateGraphic.
      • getChildren

        Graphic[] getChildren()
        Returns the children of this AggregateGraphic. If no children are assigned, the method returns an empty array.
        Returns:
        the child Graphics of the AggregateGraphic.
      • addChild

        Graphic addChild(Graphic child)
        Adds the given child to this AggregateGraphic.
        Parameters:
        child - Graphic child to add to the aggregate.
        Returns:
        the added Graphic.
      • addChildren

        Graphic[] addChildren(Graphic[] children)
        Adds the given children to this AggregateGraphic.
        Parameters:
        children - Graphic children to add to the aggregate.
        Returns:
        the added Graphics.
      • removeChild

        Graphic removeChild(Graphic child)
        Removes the given child from this AggregateGraphic.
        Parameters:
        child - the Graphic child to remove from the aggregate.
        Returns:
        the removed Graphic, or null if it is not found.
      • removeChildren

        Graphic[] removeChildren(Graphic[] children)
        Removes the given children from this AggregateGraphic.
        Parameters:
        children - the Graphic children to remove from the aggregate.
        Returns:
        the removed Graphics, or null if none are found.
      • removeChildren

        void removeChildren()
        Removes all of the children from this AggregateGraphic.
      • replaceChild

        Graphic replaceChild(Graphic oldChild,
                             Graphic newChild)
        Replaces the oldChild with the newChild.
        Parameters:
        oldChild - the child to be replaced.
        newChild - the child to be added in its place.
        Returns:
        the newChild that replaced the oldChild.
      • getChildCount

        int getChildCount()
        Returns the number of children currently assigned to this AggregateGraphic.
        Returns:
        the number of children currently assigned.
      • addAggregationListener

        void addAggregationListener(AggregationListener listener)
        Adds the given AggregationListener to this AggregateGraphic's list of listeners. The listeners will be notified if this AggregateGraphic adds or removes any elements.
        Parameters:
        listener - the AggregationListener to be added.
      • removeAggregationListener

        void removeAggregationListener(AggregationListener listener)
        Removes the given AggregationListener from this AggregateGraphic's list of listeners.
        Parameters:
        listener - the AggregationListener to be removed.
      • aggregationChanged

        void aggregationChanged(AggregationChangeEvent event)
        Calls the aggregationChanged() method of all AggregationListeners in this AggregateGraphic's list of listeners. This method is called when any elements are added, removed, or reorderd in this AggregateGraphic.
        Parameters:
        event - the AggregationChangedEvent to give to the listeners.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.