|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.title.AbstractTitle
com.ijchart.xychart.title.LegendTitle
public class LegendTitle
Title: IJChart
Description: a chart library for the Java(tm) platform.
A chart title that displays a legend for the data in the chart.Copyright: Copyright (c) 2013
Company:
Field Summary |
---|
Fields inherited from class com.ijchart.xychart.title.AbstractTitle |
---|
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_BORDER_VISIBLE, DEFAULT_FILL_BACKGROUND, DEFAULT_HORIZONTAL_ALIGNMENT, DEFAULT_NOTIFY, DEFAULT_PADDING, DEFAULT_TITLE_POSITION, DEFAULT_VERTICAL_ALIGNMENT |
Constructor Summary | |
---|---|
LegendTitle(java.util.Collection renders)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
Rectangle |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D chartArea,
ChartShapeCollection shapeCollection)
Draw the title on chart area(chartArea).All title shape is stored in shapeCollection. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.util.Collection |
getRenders()
Returns the collection of renders. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setRenders(java.util.Collection renders)
Sets the collection of renders,and sends a TitleChangeEvent to all registered listeners. |
void |
setToolTipText(java.lang.String tooltip)
. |
void |
setURLText(java.lang.String url)
Sets the URL text to the specified text and sends a TitleChangeEvent to all registered listeners. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LegendTitle(java.util.Collection renders)
renders
- Collection
The collection of renders,all elements in this collection
is AbstractRender
(null not permitted).Method Detail |
---|
public java.util.Collection getRenders()
public void setRenders(java.util.Collection renders)
TitleChangeEvent
to all registered listeners.
renders
- Collection
The collection of renders,all elements in this collection
is AbstractRender
(null not permitted).public void setToolTipText(java.lang.String tooltip)
setToolTipText
in class AbstractTitle
tooltip
- String
The text (null permitted).public void setURLText(java.lang.String url)
TitleChangeEvent
to all registered listeners.
setURLText
in class AbstractTitle
url
- String
The URL string (null permitted).public Rectangle draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D chartArea, ChartShapeCollection shapeCollection)
draw
in interface ITitle
g2
- Graphics2D
The graphics device (null not permitted).chartArea
- Rectangle2D
The area within which the chart should be drawn.shapeCollection
- ChartShapeCollection
Collects information about the plot (null permitted).
public int hashCode()
hashCode
in class AbstractTitle
public boolean equals(java.lang.Object obj)
equals
in class AbstractTitle
obj
-
the reference object with which to compare.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractTitle
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |