ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.candle
Class DateManip

java.lang.Object
  |
  +--com.elegantj.graphx.candle.DateManip

public class DateManip
extends java.lang.Object

This class is responsible for Date/Time manipulation for Candle Graph


Constructor Summary
DateManip()
          Constructor
DateManip(CandleGraph inGraph)
           
 
Method Summary
 CandleData convertToCandleData(java.util.Vector theDataVect)
          This method returns the candle data from inputted vector
 CandleData getCandleDataInSession(java.lang.Object theSessionStart, java.lang.Object theSessionEnd, int theJ)
          This method returns the Candle Data in specified time range interval
 java.util.Vector getCandleDataVect()
          This method returns the vector containg candle data
 double getMax(java.util.Vector inVect)
          This method returns the maximum value from inputted vector
 double getMIn(java.util.Vector inVect)
          This method returns the minimum value from inputted vector
 java.util.Vector getNewDataMatrix()
          This method returns the new data matrix
 java.util.GregorianCalendar getNextGC(java.util.GregorianCalendar gcDate)
          This method returns the next Date of the inputted date depending upon current TimeSeriesType as monthly,quarterly,yearly...
 java.lang.Object getSessionEnd()
          This method returns the ending value of timeseriesrange
 java.lang.Object getSessionStart()
          This method returns the start value of timeseriesrange
 java.util.Vector getTimeSeriesLabelList()
          This method returns the vector containg labels for X axis [TimeSeries]
 void init()
          This method initiate the computation
 void setCandleDataVect()
          This method sets the candle data vector [containing candle data for each timeseries(X Axis) label,legand wise]
 void setTimeSeriesLabels()
          This method generate X Axis Label [Time Series] depending upon current TimeSeries type as Weekly,Monthly...
 void setTimeSeriesRange()
          This method calculate the Time Series range [X Axis Min and Max label values ] [Min and Max time value inwhich data is to bel displayed ]
 void startComputation()
          This method starts computation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateManip

public DateManip()
Constructor


DateManip

public DateManip(CandleGraph inGraph)
Method Detail

init

public void init()
This method initiate the computation


startComputation

public void startComputation()
This method starts computation


setTimeSeriesRange

public void setTimeSeriesRange()
This method calculate the Time Series range [X Axis Min and Max label values ] [Min and Max time value inwhich data is to bel displayed ]


setTimeSeriesLabels

public void setTimeSeriesLabels()
This method generate X Axis Label [Time Series] depending upon current TimeSeries type as Weekly,Monthly... [if x Label type is Date,Time or TimeStamp ] or depending upon current m_TimeSeriesInterval as 1,2,... [if x Label type is Number ]


setCandleDataVect

public void setCandleDataVect()
This method sets the candle data vector [containing candle data for each timeseries(X Axis) label,legand wise]


getCandleDataInSession

public CandleData getCandleDataInSession(java.lang.Object theSessionStart,
                                         java.lang.Object theSessionEnd,
                                         int theJ)
This method returns the Candle Data in specified time range interval

Parameters:
theSessionStart - starting value of interval
theSessionEnd - ending value of interval

convertToCandleData

public CandleData convertToCandleData(java.util.Vector theDataVect)
This method returns the candle data from inputted vector


getMax

public double getMax(java.util.Vector inVect)
This method returns the maximum value from inputted vector


getMIn

public double getMIn(java.util.Vector inVect)
This method returns the minimum value from inputted vector


getNextGC

public java.util.GregorianCalendar getNextGC(java.util.GregorianCalendar gcDate)
This method returns the next Date of the inputted date depending upon current TimeSeriesType as monthly,quarterly,yearly...

Parameters:
gcDate - containing the date
Returns:
GregorianCalendar containing the next date

getCandleDataVect

public java.util.Vector getCandleDataVect()
This method returns the vector containg candle data

Returns:
vector candle data vector

getTimeSeriesLabelList

public java.util.Vector getTimeSeriesLabelList()
This method returns the vector containg labels for X axis [TimeSeries]

Returns:
Vector TimeSeries Label vector

getSessionStart

public java.lang.Object getSessionStart()
This method returns the start value of timeseriesrange

Returns:
Object Session Start value

getSessionEnd

public java.lang.Object getSessionEnd()
This method returns the ending value of timeseriesrange

Returns:
Object Session End value

getNewDataMatrix

public java.util.Vector getNewDataMatrix()
This method returns the new data matrix

Returns:
vector new data matrix

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.