The series has two properties ("Key" and "Description") for which you can register a PropertyChangeListener.
PropertyChangeListener
You can also register a {@link SeriesChangeListener} to receive notificationof changes to the series data.
835836837838839840841842843844845846
return; } // to be defensive, let's check that the source series does in fact // belong to this collection Series s = (Series) e.getSource(); if (getSeries(s.getKey()) == null) { throw new IllegalStateException("Receiving events from a series " + "that does not belong to this collection."); } // check if the new series name already exists for another series
728729730731732733734735736737738739
return; } // to be defensive, let's check that the source series does in fact // belong to this collection Series s = (Series) e.getSource(); if (getSeries(s.getKey()) == null) { throw new IllegalStateException("Receiving events from a series " + "that does not belong to this collection."); } // check if the new series name already exists for another series Comparable key = (Comparable) e.getNewValue();
723724725726727728729730731732733734
return; } // to be defensive, let's check that the source series does in fact // belong to this collection Series s = (Series) e.getSource(); if (getSeriesIndex(s.getKey()) == -1) { throw new IllegalStateException("Receiving events from a series " + "that does not belong to this collection."); } // check if the new series name already exists for another series Comparable key = (Comparable) e.getNewValue();
735736737738739740741742743744745746
709710711712713714715716717718719720