/** * Returns the categories in the dataset. The returned list is * unmodifiable. * * @return The categories in the dataset. */ public List getKeys() { return Collections.unmodifiableList(this.data.getKeys()); }
/** * Returns the categories in the dataset. The returned list is * unmodifiable. * * @return The categories in the dataset. */ @Override public List getKeys() { return Collections.unmodifiableList(this.data.getKeys()); }
/** * The end of an element. * * @param namespaceURI the namespace. * @param localName the element name. * @param qName the element name. */ @Override public void endElement(String namespaceURI, String localName, String qName) { if (this.root instanceof CategoryDatasetHandler) { CategoryDatasetHandler handler = (CategoryDatasetHandler) this.root; Iterator iterator = this.values.getKeys().iterator(); while (iterator.hasNext()) { Comparable key = (Comparable) iterator.next(); Number value = this.values.getValue(key); handler.addItem(this.seriesKey, key, value); } this.root.popSubHandler(); } }
/** * The end of an element. * * @param namespaceURI the namespace. * @param localName the element name. * @param qName the element name. */ public void endElement(String namespaceURI, String localName, String qName) { if (this.root instanceof CategoryDatasetHandler) { CategoryDatasetHandler handler = (CategoryDatasetHandler) this.root; Iterator iterator = this.values.getKeys().iterator(); while (iterator.hasNext()) { Comparable key = (Comparable) iterator.next(); Number value = this.values.getValue(key); handler.addItem(this.seriesKey, key, value); } this.root.popSubHandler(); } }