|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.diyefi.openlogviewer.genericlog.GenericDataElement
public final class GenericDataElement
GenericDataElement is Comparable Serializable and Transferable and supports property change events it was built this way in order to be copy/pasteable later in the future when constructed this is the meat and potatoes of the program, the graphs and data displayed are pulled from these objects.
Constructor Summary | |
---|---|
protected |
GenericDataElement(int initialLength)
Constructor brings the GDE up to speed, defaulting with an available 50,000 datapoints in order to reduce the number of times the Array list has to copy its contents in order to increase size. |
Method Summary | |
---|---|
void |
add(double value)
override add( |
void |
addPropertyChangeListener(String property,
PropertyChangeListener PCL)
|
void |
clearOut()
|
int |
compareTo(GenericDataElement otherGDE)
|
double |
get(int index)
|
Color |
getDisplayColor()
|
double |
getDisplayMaxValue()
|
double |
getDisplayMinValue()
|
double |
getMaxValue()
|
double |
getMinValue()
|
String |
getName()
|
int |
getSplitNumber()
|
Object |
getTransferData(DataFlavor flavor)
|
DataFlavor[] |
getTransferDataFlavors()
|
protected void |
increaseCapacity(int ourLoadFactor)
|
protected static void |
incrementPosition()
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
|
void |
removePropertyChangeListener(String property,
PropertyChangeListener PCL)
|
void |
reset()
TODO move this into GUI space and out of this class!! |
protected static void |
resetPosition()
|
void |
setDisplayColor(Color c)
|
void |
setDisplayMaxValue(double highValue)
|
void |
setDisplayMinValue(double lowValue)
|
void |
setName(String name)
set header name, called during GenericLog construction |
void |
setSplitNumber(int splitNumber)
sets the splitNumber or division of the graph in the graphing screen if its the same a property change event is fired called "Split" |
int |
size()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected GenericDataElement(int initialLength)
Method Detail |
---|
protected void increaseCapacity(int ourLoadFactor)
protected static void incrementPosition()
protected static void resetPosition()
public void add(double value)
d
- Double - Double.parseDouble(String) value to add to the arraypublic double get(int index)
public int size()
public void setSplitNumber(int splitNumber)
splitNumber
- public void reset()
public void addPropertyChangeListener(String property, PropertyChangeListener PCL)
public void removePropertyChangeListener(String property, PropertyChangeListener PCL)
public String toString()
toString
in class Object
public int compareTo(GenericDataElement otherGDE)
compareTo
in interface Comparable<GenericDataElement>
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
UnsupportedFlavorException
IOException
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
public void setName(String name)
name
- public String getName()
public double getMaxValue()
public double getMinValue()
public double getDisplayMinValue()
public double getDisplayMaxValue()
public void setDisplayMaxValue(double highValue)
public void setDisplayMinValue(double lowValue)
public Color getDisplayColor()
public void setDisplayColor(Color c)
public int getSplitNumber()
public void clearOut()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |