net.sourceforge.eclipsetrader.core.db
Class Chart

java.lang.Object
  extended byjava.util.Observable
      extended bynet.sourceforge.eclipsetrader.core.db.PersistentObject
          extended bynet.sourceforge.eclipsetrader.core.db.Chart
All Implemented Interfaces:
java.util.Observer

public class Chart
extends PersistentObject
implements java.util.Observer


Constructor Summary
Chart()
           
Chart(java.lang.Integer id)
           
 
Method Summary
 void accept(IChartVisitor visitor)
           
 void add(ChartRow row)
           
 void add(int index, ChartRow row)
           
 void clearChanged()
           
 java.util.Date getBeginDate()
           
 int getCompression()
           
 java.util.Date getEndDate()
           
 int getPeriod()
           
 ObservableList getRows()
           
 Security getSecurity()
           
 java.lang.String getTitle()
           
 boolean isAutoScale()
           
 void notifyObservers()
           
 void setAutoScale(boolean autoScale)
           
 void setBeginDate(java.util.Date beginDate)
           
 void setCompression(int compression)
           
 void setEndDate(java.util.Date endDate)
           
 void setPeriod(int period)
           
 void setRows(ObservableList rows)
           
 void setSecurity(Security security)
           
 void setTitle(java.lang.String label)
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class net.sourceforge.eclipsetrader.core.db.PersistentObject
equals, getData, getId, getRepository, setChanged, setData, setId, setRepository
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chart

public Chart()

Chart

public Chart(java.lang.Integer id)
Method Detail

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String label)

getSecurity

public Security getSecurity()

setSecurity

public void setSecurity(Security security)

getCompression

public int getCompression()

setCompression

public void setCompression(int compression)

getBeginDate

public java.util.Date getBeginDate()

setBeginDate

public void setBeginDate(java.util.Date beginDate)

getEndDate

public java.util.Date getEndDate()

setEndDate

public void setEndDate(java.util.Date endDate)

getPeriod

public int getPeriod()

setPeriod

public void setPeriod(int period)

isAutoScale

public boolean isAutoScale()

setAutoScale

public void setAutoScale(boolean autoScale)

getRows

public ObservableList getRows()

setRows

public void setRows(ObservableList rows)

add

public void add(ChartRow row)

add

public void add(int index,
                ChartRow row)

clearChanged

public void clearChanged()
Overrides:
clearChanged in class PersistentObject

notifyObservers

public void notifyObservers()

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

accept

public void accept(IChartVisitor visitor)