Class Tag2Element


  • public class Tag2Element
    extends java.lang.Object
    This class provides helper function to remember a style and apply a style to various GraphicsElements.
    Version:
    1.0
    Author:
    Andreas
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String lastStyle  
      protected static java.lang.String STYLE_TAG  
    • Constructor Summary

      Constructors 
      Constructor Description
      Tag2Element()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void apply​(GraphicsElement ge)
      apllies the remembered style to the given GraphicsElement
      static void start​(Group g)
      remembers the style tag of the given Group
      static void start​(Unit u)
      remembers the style tag of the given unit
      static void start​(UnitContainer u)
      remembers the style tag of the given UnitContainer
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lastStyle

        protected static java.lang.String lastStyle
    • Constructor Detail

      • Tag2Element

        public Tag2Element()
    • Method Detail

      • start

        public static void start​(Unit u)
        remembers the style tag of the given unit
        Parameters:
        u -
      • start

        public static void start​(UnitContainer u)
        remembers the style tag of the given UnitContainer
        Parameters:
        u -
      • start

        public static void start​(Group g)
        remembers the style tag of the given Group
        Parameters:
        g -
      • apply

        public static void apply​(GraphicsElement ge)
        apllies the remembered style to the given GraphicsElement
        Parameters:
        ge -