Class DrawableCombiner

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map properties
      The properties
    • Constructor Summary

      Constructors 
      Constructor Description
      DrawableCombiner()
      Creates a new DrawableCombiner of size 1.0.
      DrawableCombiner​(java.lang.Object position, java.lang.Object rotation, java.lang.Object size)
      Creates a new DrawableCombiner of size 1.0.
    • Field Detail

      • properties

        protected java.util.Map properties
        The properties
    • Constructor Detail

      • DrawableCombiner

        public DrawableCombiner()
        Creates a new DrawableCombiner of size 1.0.
      • DrawableCombiner

        public DrawableCombiner​(java.lang.Object position,
                                java.lang.Object rotation,
                                java.lang.Object size)
        Creates a new DrawableCombiner of size 1.0.
    • Method Detail

      • addPrimitive

        public void addPrimitive​(Primitive p)
        Adds a primitive to the combiner.
        Parameters:
        p - the primitive
      • addPrimitive

        public void addPrimitive​(Primitive p,
                                 int layer)
        Adds a primitive to the combiner in a specific layer.
        Parameters:
        p - the primitive
        layer - the layer
        sizeDefining - true if the added object should be the size-defining one
      • removePrimitive

        public void removePrimitive​(Primitive p)
        Removes a primitive from all layers in the combiner.
        Parameters:
        p - the primitive
      • draw

        public void draw​(java.lang.Object obj,
                         java.lang.Integer layer,
                         IViewport vp)
        Draws the objects to a viewport
        Parameters:
        obj - object being drawn
        layer - the current layer
        vp - the viewport
      • getLayers

        public java.util.Set getLayers()
        Returns all layers used by this DrawableCombiner.
        Returns:
        all layers used by the DrawableCombiner
      • flushRenderInfo

        public void flushRenderInfo()
        Flushes the render information.
      • getBoundValue

        public java.lang.Object getBoundValue​(java.lang.Object obj,
                                              java.lang.Object prop,
                                              IViewport viewport)
        Gets the bound value for a property.
        Returns:
        The bound value.
      • getProperty

        public java.lang.Object getProperty​(java.lang.String name)
        Returns a property.
        Specified by:
        getProperty in interface IPropertyObject
        Parameters:
        name - name of the property
        Returns:
        the property
      • getPropertyNames

        public java.util.Set getPropertyNames()
        Returns all of the properties.
        Specified by:
        getPropertyNames in interface IPropertyObject
        Returns:
        the properties
      • setProperty

        public void setProperty​(java.lang.String name,
                                java.lang.Object value)
        Sets a property
        Specified by:
        setProperty in interface IPropertyObject
        Parameters:
        name - name of the property
        value - value of the property
      • hasProperty

        public boolean hasProperty​(java.lang.String name)
        Description copied from interface: IPropertyObject
        Tests if the given property name exists If an property is null it exists
        Specified by:
        hasProperty in interface IPropertyObject
        Parameters:
        name - the name of the property to test
        Returns:
        true if and only if the property exists