|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Double>
org.diyefi.openlogviewer.genericlog.GenericDataElement
public 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.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
GenericDataElement()
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 | |
---|---|
boolean |
add(Double d)
override add( |
void |
addPropertyChangeListener(String property,
PropertyChangeListener PCL)
|
int |
compareTo(Object o)
|
Color |
getColor()
getter |
Double |
getMaxValue()
getter |
Double |
getMinValue()
getter |
String |
getName()
getter |
int |
getSplitNumber()
getter |
Object |
getTransferData(DataFlavor flavor)
|
DataFlavor[] |
getTransferDataFlavors()
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
|
void |
removePropertyChangeListener(String property,
PropertyChangeListener PCL)
|
void |
reset()
this will set the min and max to the default min/max values |
void |
setColor(Color c)
setter |
void |
setMaxValue(Double highValue)
setter |
void |
setMinValue(Double lowValue)
setter |
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" |
String |
toString()
|
Methods inherited from class java.util.ArrayList |
---|
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public GenericDataElement()
Method Detail |
---|
public boolean add(Double d)
add
in interface Collection<Double>
add
in interface List<Double>
add
in class ArrayList<Double>
d
- Double - Double.parseDouble(String) value to add to the array
public void setName(String name)
name
- public String getName()
public Double getMaxValue()
public void setMaxValue(Double highValue)
highValue
- public Double getMinValue()
public void setMinValue(Double lowValue)
lowValue
- public Color getColor()
public void setColor(Color c)
c
- public int getSplitNumber()
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 AbstractCollection<Double>
public int compareTo(Object o)
compareTo
in interface Comparable
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |