Class TextBlock

  • All Implemented Interfaces:
    BlockPainter

    public class TextBlock
    extends java.lang.Object
    implements BlockPainter
    A BlockPainter that renders letters in proportion to the size of the signal.
    Author:
    Matthew Pocock, Thomas Down
    • Constructor Summary

      Constructors 
      Constructor Description
      TextBlock()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Font getLogoFont()
      Retrieve the current font.
      void paintBlock​(LogoContext ctxt, java.awt.geom.Rectangle2D block, AtomicSymbol sym)  
      void setLogoFont​(java.awt.Font logoFont)
      Set the current logo font.
      • Methods inherited from class java.lang.Object

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

      • getLogoFont

        public java.awt.Font getLogoFont()
        Retrieve the current font.
        Returns:
        the current logo font
      • setLogoFont

        public void setLogoFont​(java.awt.Font logoFont)
        Set the current logo font.
        Parameters:
        logoFont - the new Font to render the logo letters in