org.strbio.util.graph
Interface Legend

All Known Implementing Classes:
ColorScaleLegend, PointLegend

public interface Legend

A legend for a Graphable2D (or Graphable3D) piece of data.

  Version 1.0, 5/11/99 - original version.
  

Version:
1.0, 5/11/99
Author:
JMC

Method Summary
 int getHeight()
          Get the height that the legend wants to draw in.
 int getWidth()
          Get the width that the legend wants to draw in.
 void paintLegend(java.awt.Graphics g, int x, int y)
          draw the legend, at a given top, left position.
 void setFont(java.awt.Font f, java.awt.FontMetrics fm)
          set the font labels will be printed in.
 void setLabel(java.lang.String l)
          set the label for this legend.
 

Method Detail

getWidth

int getWidth()
Get the width that the legend wants to draw in.


getHeight

int getHeight()
Get the height that the legend wants to draw in.


setLabel

void setLabel(java.lang.String l)
set the label for this legend.


setFont

void setFont(java.awt.Font f,
             java.awt.FontMetrics fm)
set the font labels will be printed in.


paintLegend

void paintLegend(java.awt.Graphics g,
                 int x,
                 int y)
draw the legend, at a given top, left position.