Пример #1
0
        public void AddAttribute(GraphicAttribute attribute)
        {
            if (m_AttributeStack == null)
                m_AttributeStack = new GraphicAttributeStack();

            m_AttributeStack.AddAttribute(attribute);
        }
Пример #2
0
        public void RemoveAttribute(GraphicAttribute attribute)
        {
            if (m_AttributeStack != null)
            {
                m_AttributeStack.RemoveAttribute(attribute);

                // Release the stack if there is no attribute.
                if (m_AttributeStack.Count == 0)
                    m_AttributeStack = null;
            }
        }
Пример #3
0
 // This class can't be created
 protected DisplayItem()
 {
     m_AttributeStack = null;
 }