ElegantJCharts Java API Specification v2.0

com.elegantj.common
Class ALScalendarFormat

java.lang.Object
  |
  +--com.elegantj.common.ALScalendarFormat
All Implemented Interfaces:
java.io.Serializable

public class ALScalendarFormat
extends java.lang.Object
implements java.io.Serializable

Represents analysis calendar format Yy western calendar year (front zero 2 columns) y western calendar year (2 columns) yyyy western calendar year (front zero 4 columns) mm month (front zero 2 columns) * m month (2 columns) dd day (front zero 2 columns) * d day (2 columns) HH 24 hour system time (front zero 2 columns) H 24 hour system time (2 columns) hh 12 hour system time (front zero 2 columns) h 12 hour system time (2 columns) MM amount (front zero 2 columns) M amount (2 columns) SS second (front zero 2 columns) S second (2 columns) ggg Chinese character 2 letter harmony calendar year number (Showa and Heisei etc.) gg Chinese character 1 letter harmony calendar year number (Showa, equality) g English letter 1 letter harmony calendar year number (S, H and the like) ee harmony calendar year (the front zero 2 columns) e harmony calendar year (2 columns) the aa 12 hour system time Kohumi letter (2 columns) a 12 hour system time Kohumi letter (1 column) pp 12 hour system time capital letter (2 columns) p 12 hour system time capital letter (1 column) A 12 hour system time Japanese letter (2 columns) ww English day of the week (all word) w English day of the week (shortly word) WW Japanese day of the week ("day of the week" to be attached) W Japanese day of the week ("day of the week")

See Also:
Serialized Form

Field Summary
protected  char[] form
          It is control pattern.
protected  int formNum
          It is decoration number of control pattern.
static int FULLSIZE_MATH
           
protected  java.lang.String originalFormat
          It is the format descriptor which it appoints.
protected  boolean useWareki
          The harmony calendar will be done, it is the appointment whether or not it is of.
 
Constructor Summary
ALScalendarFormat(java.lang.String str)
          Creates object
 
Method Summary
 java.lang.Object clone()
          Clone of the object
 boolean formAnalize(java.lang.String str, int num, int cnt, char type, char oldChar)
          Pattern is formed from the format descriptor.
 java.lang.String format(java.util.Calendar date)
          Formats date object
 java.lang.String format(java.util.Date date)
          Creates object
 boolean isHeisei(int iYear, int iMonth, int iDate)
          You verify the harmony calendar.
 boolean setForm(int cnt, char type, char chr)
          Patern is formed
 java.lang.String toPattern()
          return pattern
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

form

protected char[] form
It is control pattern.


formNum

protected int formNum
It is decoration number of control pattern. Please do not use usually.


originalFormat

protected java.lang.String originalFormat
It is the format descriptor which it appoints.


useWareki

protected boolean useWareki
The harmony calendar will be done, it is the appointment whether or not it is of. Indication of year changes with this flag.


FULLSIZE_MATH

public static final int FULLSIZE_MATH
See Also:
Constant Field Values
Constructor Detail

ALScalendarFormat

public ALScalendarFormat(java.lang.String str)
Creates object

Parameters:
str -
Method Detail

format

public java.lang.String format(java.util.Date date)
Creates object

Parameters:
date -

format

public java.lang.String format(java.util.Calendar date)
Formats date object

Parameters:
date - date object
Returns:
String

formAnalize

public boolean formAnalize(java.lang.String str,
                           int num,
                           int cnt,
                           char type,
                           char oldChar)
Pattern is formed from the format descriptor.

Parameters:
str - date
num -
cnt -
type -
oldChar -

setForm

public boolean setForm(int cnt,
                       char type,
                       char chr)
Patern is formed

Parameters:
cnt -
type -
chr -

isHeisei

public boolean isHeisei(int iYear,
                        int iMonth,
                        int iDate)
You verify the harmony calendar. Please do not override usually.

Parameters:
iYear - western calendar year
iMonth - month
iDate - day
Returns:
boolean

toPattern

public java.lang.String toPattern()
return pattern

Returns:
String

clone

public java.lang.Object clone()
Clone of the object

Overrides:
clone in class java.lang.Object
Returns:
Object
Throws:
java.lang.RuntimeException - When failing in the clone, it occurs.

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.