Class AbstractGraphicsDrawingOrderContainer

    • Field Detail

      • objects

        protected java.util.List objects
        list of objects contained within this container
    • Constructor Detail

      • AbstractGraphicsDrawingOrderContainer

        protected AbstractGraphicsDrawingOrderContainer()
        Default constructor
      • AbstractGraphicsDrawingOrderContainer

        protected AbstractGraphicsDrawingOrderContainer​(java.lang.String name)
        Named constructor
        Parameters:
        name - the name of the container
    • Method Detail

      • writeStart

        protected void writeStart​(java.io.OutputStream os)
                           throws java.io.IOException
        Helper method to write the start of the Object.
        Overrides:
        writeStart in class AbstractStructuredObject
        Parameters:
        os - The stream to write to
        Throws:
        java.io.IOException - throws an I/O exception if one occurred
      • writeContent

        protected void writeContent​(java.io.OutputStream os)
                             throws java.io.IOException
        Helper method to write the contents of the Object.
        Overrides:
        writeContent in class AbstractStructuredObject
        Parameters:
        os - The stream to write to
        Throws:
        java.io.IOException - throws an I/O exception if one occurred
      • addObject

        public void addObject​(StructuredData object)
        Adds a given graphics object to this container
        Parameters:
        object - the structured data object
      • addAll

        public void addAll​(AbstractGraphicsDrawingOrderContainer graphicsContainer)
        Adds all the contents of a given graphics container to this container
        Parameters:
        graphicsContainer - a graphics container
      • removeLast

        public StructuredData removeLast()
        Removes the last drawing order from this container and returns it
        Returns:
        the last drawing order from this container or null if empty
      • getDataLength

        public int getDataLength()
        Returns the current data length
        Specified by:
        getDataLength in interface StructuredData
        Returns:
        the current data length of this container including all enclosed objects (and their containers)
      • setComplete

        public void setComplete​(boolean complete)
        Sets whether or not this object is complete or not
        Specified by:
        setComplete in interface Completable
        Parameters:
        complete - true if this object is complete
      • isComplete

        public boolean isComplete()
        Returns true if this object is complete
        Specified by:
        isComplete in interface Completable
        Returns:
        true if this object is complete
      • isStarted

        public boolean isStarted()
        Returns true if this object has started
        Specified by:
        isStarted in interface Startable
        Returns:
        true if this object has started
      • setStarted

        public void setStarted​(boolean started)
        Sets whether or not this object has started or not
        Specified by:
        setStarted in interface Startable
        Parameters:
        started - true if this object has started