com.objex.panywhere
Class SymbolChangeEvent
java.lang.Object
java.util.EventObject
com.objex.panywhere.SymbolChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
public class SymbolChangeEvent
- extends java.util.EventObject
An event which is generated every time an Individual's Symbol is updated or changed. Interested objects must register to
receive SymbolChangeEvents using the SymbolModel's addSymbolChangeListener() method.
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
SymbolChangeEvent(java.lang.Object source,
int quadrant)
Creates a new instance of SymbolChangeEvent |
SymbolChangeEvent(java.lang.Object source,
int rgb,
int quadrant)
Creates a new instance of SymbolChangeEvent |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SymbolChangeEvent
public SymbolChangeEvent(java.lang.Object source,
int rgb,
int quadrant)
- Creates a new instance of SymbolChangeEvent
- Parameters:
source - The source of the SymbolChangeEvent. This is typically the Symbol that was updated.rgb - The RGB color value of the new colorquadrant - The quadrant to which the color was updated. The quadrants are evaluated as follows in Progeny AnywhereJ1_02
| Quadrant Number | Meaning |
| -------------- | ------- |
| 1 | 1st Quadrant |
| 2 | 2nd Quadrant |
| 3 | 3rd Quadrant (counting is from left to right then down) |
| 4 | 4th Quadrant |
| 5 | 1st Quadrant dot |
| 6 | 2nd Quadrant dot |
| 7 | 3rd Quadrant dot |
|
| 8 | 4th Quadrant dot |
| 9 | Center dot |
| 10 | Center square |
| 11 | QuestionMark |
SymbolChangeEvent
public SymbolChangeEvent(java.lang.Object source,
int quadrant)
- Creates a new instance of SymbolChangeEvent
- Parameters:
source - The source of the SymbolChangeEvent. This is typically the Symbol that was updated.quadrant - The quadrant to which the color was updated. The quadrants are evaluated as follows in Progeny AnywhereJ1_02
| Quadrant Number | Meaning |
| -------------- | ------- |
| 1 | 1st Quadrant |
| 2 | 2nd Quadrant |
| 3 | 3rd Quadrant (counting is from left to right then down) |
| 4 | 4th Quadrant |
| 5 | 1st Quadrant dot |
| 6 | 2nd Quadrant dot |
| 7 | 3rd Quadrant dot |
|
| 8 | 4th Quadrant dot |
| 9 | Center dot |
| 10 | Center square |
| 11 | QuestionMark |
getRGB
public int getRGB()
- Returns:
- The RGB value of the color that was assigned to the Symbol resulting in the generation of this
ChangeEvent
getQuadrant
public int getQuadrant()
- Returns:
- The quadrant affected by the color change i.e. the quadrant whose color was changed and
hence resulted in this ChangeEvent. The quadrants are evaluated as follows in Progeny AnywhereJ1_02
| Quadrant Number | Meaning |
| -------------- | ------- |
| 1 | 1st Quadrant |
| 2 | 2nd Quadrant |
| 3 | 3rd Quadrant (counting is from left to right then down) |
| 4 | 4th Quadrant |
| 5 | 1st Quadrant dot |
| 6 | 2nd Quadrant dot |
| 7 | 3rd Quadrant dot |
|
| 8 | 4th Quadrant dot |
| 9 | Center dot |
| 10 | Center square |
| 11 | QuestionMark |