com.objex.panywhere
Class SymbolChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
 
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
 
Method Summary
 int getQuadrant()
           
 int getRGB()
           
 
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
 

Constructor Detail

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 color
quadrant - The quadrant to which the color was updated. The quadrants are evaluated as follows in Progeny AnywhereJ1_02
Quadrant Number Meaning
---------------------
11st Quadrant
22nd Quadrant
33rd Quadrant (counting is from left to right then down)
44th Quadrant
51st Quadrant dot
62nd Quadrant dot
73rd Quadrant dot
84th Quadrant dot
9Center dot
10Center square
11QuestionMark

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
---------------------
11st Quadrant
22nd Quadrant
33rd Quadrant (counting is from left to right then down)
44th Quadrant
51st Quadrant dot
62nd Quadrant dot
73rd Quadrant dot
84th Quadrant dot
9Center dot
10Center square
11QuestionMark
Method Detail

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
---------------------
11st Quadrant
22nd Quadrant
33rd Quadrant (counting is from left to right then down)
44th Quadrant
51st Quadrant dot
62nd Quadrant dot
73rd Quadrant dot
84th Quadrant dot
9Center dot
10Center square
11QuestionMark