|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mov.chart.source.PortfolioGraphSource
public class PortfolioGraphSource
Provides a Portfolio graph source. This class allows portfolios to be graphed.
Field Summary | |
---|---|
static int |
CASH_VALUE
Graph the portfolio cash value |
static int |
MARKET_VALUE
Graph the market value (day close) of the portfolio |
static int |
RETURN_VALUE
Graph the portfolio showing the return value |
static int |
SHARE_VALUE
Graph the portfolio share value |
static int |
STOCKS_HELD
Graph the numbre of stocks held |
Constructor Summary | |
---|---|
PortfolioGraphSource(Portfolio portfolio,
EODQuoteBundle quoteBundle,
int mode)
Create a graph source to graph the value of a portfolio. |
|
PortfolioGraphSource(Portfolio portfolio,
EODQuoteBundle quoteBundle,
java.lang.String accountName)
Create a graph source to graph the value of a single account in the portfolio. |
Method Summary | |
---|---|
double[] |
getAcceptableMajorDeltas()
Return an array of acceptable major deltas for the vertical axis. |
double[] |
getAcceptableMinorDeltas()
Return an array of acceptable minor deltas for the vertical axis. |
Graphable |
getGraphable()
Get the actual graphable data. |
java.lang.String |
getName()
Return the name of the data. |
java.lang.String |
getToolTipText(java.lang.Comparable x)
Get the tool tip text for the given X value |
java.lang.String |
getYLabel(double value)
Convert the Y value to a label to be displayed in the vertical axis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MARKET_VALUE
public static final int RETURN_VALUE
public static final int CASH_VALUE
public static final int SHARE_VALUE
public static final int STOCKS_HELD
Constructor Detail |
---|
public PortfolioGraphSource(Portfolio portfolio, EODQuoteBundle quoteBundle, int mode)
portfolio
- the portfolio to graphquoteBundle
- quote bundle containing all the necessary
quotes to calculate the portfolio value
for every daymode
- MARKET_VALUE
for the total market value of the portfolio;
RETURN_VALUE
for the return moade;
CASH_VALUE
for the cash value of the portfolio;
STOCKS_HELD
for the number of stocks held in the portfolio;
or SHARE_VALUE
for the share value of the portfolio.public PortfolioGraphSource(Portfolio portfolio, EODQuoteBundle quoteBundle, java.lang.String accountName)
portfolio
- the portfolio to graphquoteBundle
- quote bundle containing all the necessary
quotes to calculate the portfolio value
for every dayaccountName
- name of account in portfolio to graph.Method Detail |
---|
public Graphable getGraphable()
GraphSource
getGraphable
in interface GraphSource
public java.lang.String getName()
GraphSource
getName
in interface GraphSource
public java.lang.String getToolTipText(java.lang.Comparable x)
GraphSource
getToolTipText
in interface GraphSource
x
- the X value
public java.lang.String getYLabel(double value)
GraphSource
getYLabel
in interface GraphSource
value
- y value
public double[] getAcceptableMajorDeltas()
GraphSource
getAcceptableMajorDeltas
in interface GraphSource
Graph.getAcceptableMajorDeltas()
public double[] getAcceptableMinorDeltas()
GraphSource
getAcceptableMinorDeltas
in interface GraphSource
Graph.getAcceptableMajorDeltas()
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |