|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.property.Property net.nexttext.property.PVectorListProperty
public class PVectorListProperty
A property for list of PVectors.
This class is half way between a list of PVectorProperties and a Property containing a list of PVectors, so is is not fully consistent with the other property classes. To make it consistent it would need these changes:
Vector3Property get()
with Vector3
get()
and Vector3 getOriginal()
.
Vector3
mathematical methods.
Constructor Summary | |
---|---|
PVectorListProperty()
Default constructor. |
Method Summary | |
---|---|
void |
add(int position,
processing.core.PVector v1)
Adds a PVectorProperty object at the specified position in the list. |
void |
add(int position,
PVectorProperty v1)
Adds a PVectorProperty object at the specified position in the list. |
void |
add(processing.core.PVector v1)
Add a PVector object to the list. |
void |
add(PVectorProperty v1)
Adds a PVectorProperty object to the list. |
void |
clear()
Clears out the content of the list |
PVectorListProperty |
clone()
Get a new property with the same values as this one. |
processing.core.PVector |
get(int position)
Returns the PVector object at the specified position in the list. |
java.util.Iterator<PVectorProperty> |
iterator()
Returns an iterator for the list of PVectorProperty objects. |
void |
propertyChanged(Property pc)
For interface PropertyChangeListener, called when one of the properties in the list changes. |
void |
reset()
Resets each PVectorProperty in the list to its original value. |
int |
size()
Returns the number of PVectorProperty objects contained in this list. |
java.lang.String |
toString()
|
Methods inherited from class net.nexttext.property.Property |
---|
addChangeListener, getName, setName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PVectorListProperty()
Method Detail |
---|
public void add(processing.core.PVector v1)
This will automatically convert the PVector to a PVectorProperty.
public void add(PVectorProperty v1)
public void add(int position, processing.core.PVector v1)
public void add(int position, PVectorProperty v1)
public processing.core.PVector get(int position)
public void reset()
reset
in class Property
public void clear()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<PVectorProperty> iterator()
Don't use this iterator to remove items from the list, since this won't trigger the necessary PropertyChangeEvents. If you need to remove points, write a remove method for this class, and call that.
public int size()
public void propertyChanged(Property pc)
propertyChanged
in interface PropertyChangeListener
public PVectorListProperty clone()
Property
The name is copied because that's what makes it a Property and not just a value.
PropertyChangeListeners are not copied to the new Property.
clone
in class Property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |