Class Model

java.lang.Object
whiteboard.graphics.Model

public class Model
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) java.util.Vector<LabelConfig> labels
    Label Configuration
    private java.beans.PropertyChangeSupport observer
    observer that fires events for GUI to respond to
    static java.lang.String UPDATE_LABEL
    Constants for property change
  • Constructor Summary

    Constructors 
    Constructor Description
    Model()  
  • Method Summary

    Modifier and Type Method Description
    void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)  
    void updateLable​(int i, LabelConfig newConfig)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • labels

      java.util.Vector<LabelConfig> labels
      Label Configuration
    • observer

      private java.beans.PropertyChangeSupport observer
      observer that fires events for GUI to respond to
    • UPDATE_LABEL

      public static final java.lang.String UPDATE_LABEL
      Constants for property change
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • updateLable

      public void updateLable​(int i, LabelConfig newConfig)
      Parameters:
      i -
      newConfig -
    • addPropertyChangeListener

      public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
      Parameters:
      listener -