|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.format.DateFormatter
public class DateFormatter
Title: IJChart
Description: a chart library for the Java(tm) platform.
A Formatter provides support for formatting a java.util.Date Object.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static java.lang.String |
DATE_MASK_LONG
The date mask of long type. |
static java.lang.String |
DATE_MASK_SHORT
The date mask of short type. |
Constructor Summary | |
---|---|
DateFormatter(java.util.Locale locale,
java.lang.String mask)
Create a new DateFormatter by a date mask. |
|
DateFormatter(java.lang.String mask)
Create a new DateFormatter by default locale and a date mask. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object. |
java.lang.String |
format(java.lang.Object obj,
int index)
Formatted a java.util.Date object to a string. |
java.text.SimpleDateFormat |
getFormat()
Returns instance of java.util.SimpleDateFormat for format date object. |
java.util.Locale |
getLocale()
Returns the java.util.Locale instance. |
java.lang.String |
getMask()
Returns the date format mask |
int |
hashCode()
Returns a hash code. |
java.lang.String |
toString()
Returns a string representation of this Range. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DATE_MASK_LONG
public static final java.lang.String DATE_MASK_SHORT
Constructor Detail |
---|
public DateFormatter(java.lang.String mask)
mask
- String
A date mask.public DateFormatter(java.util.Locale locale, java.lang.String mask)
locale
- Locale
A java.util.Locale instance.mask
- String
A date mask.Method Detail |
---|
public java.util.Locale getLocale()
public java.lang.String getMask()
public java.text.SimpleDateFormat getFormat()
public java.lang.String format(java.lang.Object obj, int index)
format
in interface IFormatter
obj
- Object
The object to be formatted (null permitted).index
- int
The index value of a series objects.
The first is at index 0, the next is at 1, and so on.This parameter is not used.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
The object to test against (null permitted).
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |