com.googlecode.charts4j
Interface TitledChart

All Known Implementing Classes:
AbstractAxisChart, AbstractGraphChart, AbstractMarkableChart, BarChart, LineChart, PieChart, RadarChart, ScatterPlot, VennDiagram, XYLineChart

public interface TitledChart

Interface for all charts that support titles. (MapChart and GoogleOMeter do not support do not support titles.)

Author:
Julien Chastang (julien.c.chastang at gmail dot com)

Nested Class Summary
static class TitledChart.ChartTitle
          A class to encapsulate chart titles.
 
Method Summary
 void setTitle(String title)
          Specify a chart title.
 void setTitle(String title, Color color, int fontSize)
          Specify a chart title with color and font size.
 

Method Detail

setTitle

void setTitle(String title)
Specify a chart title. Use a pipe character (|) to force a line break.

Parameters:
title - Chart title. Cannot be null.

setTitle

void setTitle(String title,
              Color color,
              int fontSize)
Specify a chart title with color and font size. Use a pipe character (|) to force a line break.

Parameters:
title - Chart title. Cannot be null.
color - Chart title color. Cannot be null.
fontSize - Chart title font size. Must be > 0.