Class EdgeTransformer.LabelFont

  • All Implemented Interfaces:
    org.apache.commons.collections15.Transformer
    Enclosing class:
    EdgeTransformer

    public static class EdgeTransformer.LabelFont
    extends java.lang.Object
    implements org.apache.commons.collections15.Transformer
    A Transformer for assigning a normal or bold Font to the message group labels.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.awt.Font b
      The bold font
      protected boolean bold
      If the font is bold
      static java.awt.Font f
      The normal font.
    • Constructor Summary

      Constructors 
      Constructor Description
      LabelFont()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getBold()  
      void setBold​(boolean bold)  
      java.lang.Object transform​(java.lang.Object e)
      Returns the bold font if bold is true, else the normal font.
      • Methods inherited from class java.lang.Object

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

      • f

        public static final java.awt.Font f
        The normal font.
      • b

        public static final java.awt.Font b
        The bold font
      • bold

        protected boolean bold
        If the font is bold
    • Constructor Detail

      • LabelFont

        public LabelFont()
    • Method Detail

      • transform

        public java.lang.Object transform​(java.lang.Object e)
        Returns the bold font if bold is true, else the normal font.
        Specified by:
        transform in interface org.apache.commons.collections15.Transformer
        Parameters:
        group - The a message group
        Returns:
        The font for the label.
      • setBold

        public void setBold​(boolean bold)
        Parameters:
        bold - true if the bold font ought to be used.
      • getBold

        public boolean getBold()
        Returns:
        true if the bold font is used.