Class LabelRenderer<N>

java.lang.Object
de.engehausen.treemap.swing.impl.LabelRenderer<N>
Type Parameters:
N - the type of node the rectangles work on.
All Implemented Interfaces:
IRectangleRenderer<N,Graphics2D,Color>

public class LabelRenderer<N> extends Object implements IRectangleRenderer<N,Graphics2D,Color>
Renders labels for rectangles.
  • Field Details

    • font

      protected final Font font
    • showRoot

      protected final boolean showRoot
  • Constructor Details

    • LabelRenderer

      public LabelRenderer(Font aFont)
      Create the renderer using the given font.
      Parameters:
      aFont - the font, must not be null.
    • LabelRenderer

      public LabelRenderer(Font aFont, boolean showsRoot)
      Create the renderer using the given font.
      Parameters:
      aFont - the font, must not be null.
      showsRoot - set to true if the root node label should be rendered, false otherwise.
  • Method Details