public class

TitleEntity

extends ChartEntity
java.lang.Object
   ↳ org.jfree.chart.entity.ChartEntity
     ↳ org.jfree.chart.entity.TitleEntity

Class Overview

A class that captures information about a Title of a chart.

Summary

Public Constructors
TitleEntity(Shape area, Title title)
Creates a new chart entity.
TitleEntity(Shape area, Title title, String toolTipText)
Creates a new chart entity.
TitleEntity(Shape area, Title title, String toolTipText, String urlText)
Creates a new entity.
Public Methods
Object clone()
Returns a clone of the entity.
boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.
Title getTitle()
Returns the title that occupies the entity area.
int hashCode()
Returns a hash code for this instance.
String toString()
Returns a string representation of the chart entity, useful for debugging.
[Expand]
Inherited Methods
From class org.jfree.chart.entity.ChartEntity
From class java.lang.Object

Public Constructors

public TitleEntity (Shape area, Title title)

Creates a new chart entity.

Parameters
area the area (null not permitted).
title the title (null not permitted).

public TitleEntity (Shape area, Title title, String toolTipText)

Creates a new chart entity.

Parameters
area the area (null not permitted).
title the title (null not permitted).
toolTipText the tool tip text (null permitted).

public TitleEntity (Shape area, Title title, String toolTipText, String urlText)

Creates a new entity.

Parameters
area the area (null not permitted).
title the title (null not permitted).
toolTipText the tool tip text (null permitted).
urlText the URL text for HTML image maps (null permitted).

Public Methods

public Object clone ()

Returns a clone of the entity.

Returns
  • A clone.
Throws
CloneNotSupportedException if there is a problem cloning the entity.

public boolean equals (Object obj)

Tests the entity for equality with an arbitrary object.

Parameters
obj the object to test against (null permitted).
Returns
  • A boolean.

public Title getTitle ()

Returns the title that occupies the entity area.

Returns
  • The title (never null).

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

public String toString ()

Returns a string representation of the chart entity, useful for debugging.

Returns
  • A string.