|
|||||||||
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.TextTitle
com.ijchart.xychart.title.DateTitle
public class DateTitle
Title: IJChart
Description: a chart library for the Java(tm) platform.
A chart title that displays the date.Copyright: Copyright (c) 2013
Company:
Field Summary |
---|
Fields inherited from class com.ijchart.xychart.title.TextTitle |
---|
DEFAULT_EXPAND_TO_FIT_SPACE, DEFAULT_FONT, DEFAULT_TEXT_PAINT |
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 | |
---|---|
DateTitle(java.util.Calendar cal)
The constructor. |
|
DateTitle(java.util.Calendar cal,
int style)
The constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this object. |
boolean |
equals(java.lang.Object obj)
Tests this title for equality with another object. |
java.util.Calendar |
getCalendar()
Returns the date object. |
int |
getStyle()
Returns the constant for date format. |
int |
hashCode()
Returns a hash code. |
void |
setCalendar(java.util.Calendar cal)
Sets the date object and sends a TitleChangeEvent to all registered listeners. |
void |
setStyle(int style)
Sets the constant for date format and sends a TitleChangeEvent to all registered listeners. |
Methods inherited from class com.ijchart.xychart.title.TextTitle |
---|
draw, getExpandToFitSpace, getText, getTextFont, getTextPaint, setExpandToFitSpace, setText, setTextFont, setTextPaint |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateTitle(java.util.Calendar cal)
cal
- Calendar
The date object (null permitted).public DateTitle(java.util.Calendar cal, int style)
cal
- Calendar
The date object (null permitted).style
- int
Constant for date format,The date style should be one of:SHORT,MEDIUM, LONG or FULL.Method Detail |
---|
public java.util.Calendar getCalendar()
public void setCalendar(java.util.Calendar cal)
TitleChangeEvent
to all registered listeners.
cal
- Calendar
The date object.public int getStyle()
public void setStyle(int style)
TitleChangeEvent
to all registered listeners.
style
- int
Constant for date format.public boolean equals(java.lang.Object obj)
equals
in class TextTitle
obj
- the object (null permitted).
public int hashCode()
hashCode
in class TextTitle
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class TextTitle
java.lang.CloneNotSupportedException
- never.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |