⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 series.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<FONT color="green">276</FONT>            this.listeners.add(SeriesChangeListener.class, listener);<a name="line.276"></a><FONT color="green">277</FONT>        }<a name="line.277"></a><FONT color="green">278</FONT>    <a name="line.278"></a><FONT color="green">279</FONT>        /**<a name="line.279"></a><FONT color="green">280</FONT>         * Deregisters an object, so that it not longer receives notification <a name="line.280"></a><FONT color="green">281</FONT>         * whenever the series changes.<a name="line.281"></a><FONT color="green">282</FONT>         *<a name="line.282"></a><FONT color="green">283</FONT>         * @param listener  the listener to deregister.<a name="line.283"></a><FONT color="green">284</FONT>         */<a name="line.284"></a><FONT color="green">285</FONT>        public void removeChangeListener(SeriesChangeListener listener) {<a name="line.285"></a><FONT color="green">286</FONT>            this.listeners.remove(SeriesChangeListener.class, listener);<a name="line.286"></a><FONT color="green">287</FONT>        }<a name="line.287"></a><FONT color="green">288</FONT>    <a name="line.288"></a><FONT color="green">289</FONT>        /**<a name="line.289"></a><FONT color="green">290</FONT>         * General method for signalling to registered listeners that the series<a name="line.290"></a><FONT color="green">291</FONT>         * has been changed.<a name="line.291"></a><FONT color="green">292</FONT>         */<a name="line.292"></a><FONT color="green">293</FONT>        public void fireSeriesChanged() {<a name="line.293"></a><FONT color="green">294</FONT>            if (this.notify) {<a name="line.294"></a><FONT color="green">295</FONT>                notifyListeners(new SeriesChangeEvent(this));<a name="line.295"></a><FONT color="green">296</FONT>            }<a name="line.296"></a><FONT color="green">297</FONT>        }<a name="line.297"></a><FONT color="green">298</FONT>    <a name="line.298"></a><FONT color="green">299</FONT>        /**<a name="line.299"></a><FONT color="green">300</FONT>         * Sends a change event to all registered listeners.<a name="line.300"></a><FONT color="green">301</FONT>         *<a name="line.301"></a><FONT color="green">302</FONT>         * @param event  contains information about the event that triggered the <a name="line.302"></a><FONT color="green">303</FONT>         *               notification.<a name="line.303"></a><FONT color="green">304</FONT>         */<a name="line.304"></a><FONT color="green">305</FONT>        protected void notifyListeners(SeriesChangeEvent event) {<a name="line.305"></a><FONT color="green">306</FONT>    <a name="line.306"></a><FONT color="green">307</FONT>            Object[] listenerList = this.listeners.getListenerList();<a name="line.307"></a><FONT color="green">308</FONT>            for (int i = listenerList.length - 2; i &gt;= 0; i -= 2) {<a name="line.308"></a><FONT color="green">309</FONT>                if (listenerList[i] == SeriesChangeListener.class) {<a name="line.309"></a><FONT color="green">310</FONT>                    ((SeriesChangeListener) listenerList[i + 1]).seriesChanged(<a name="line.310"></a><FONT color="green">311</FONT>                            event);<a name="line.311"></a><FONT color="green">312</FONT>                }<a name="line.312"></a><FONT color="green">313</FONT>            }<a name="line.313"></a><FONT color="green">314</FONT>    <a name="line.314"></a><FONT color="green">315</FONT>        }<a name="line.315"></a><FONT color="green">316</FONT>    <a name="line.316"></a><FONT color="green">317</FONT>        /**<a name="line.317"></a><FONT color="green">318</FONT>         * Adds a property change listener to the series.<a name="line.318"></a><FONT color="green">319</FONT>         *<a name="line.319"></a><FONT color="green">320</FONT>         * @param listener  the listener.<a name="line.320"></a><FONT color="green">321</FONT>         */<a name="line.321"></a><FONT color="green">322</FONT>        public void addPropertyChangeListener(PropertyChangeListener listener) {<a name="line.322"></a><FONT color="green">323</FONT>            this.propertyChangeSupport.addPropertyChangeListener(listener);<a name="line.323"></a><FONT color="green">324</FONT>        }<a name="line.324"></a><FONT color="green">325</FONT>    <a name="line.325"></a><FONT color="green">326</FONT>        /**<a name="line.326"></a><FONT color="green">327</FONT>         * Removes a property change listener from the series.<a name="line.327"></a><FONT color="green">328</FONT>         *<a name="line.328"></a><FONT color="green">329</FONT>         * @param listener The listener.<a name="line.329"></a><FONT color="green">330</FONT>         */<a name="line.330"></a><FONT color="green">331</FONT>        public void removePropertyChangeListener(PropertyChangeListener listener) {<a name="line.331"></a><FONT color="green">332</FONT>            this.propertyChangeSupport.removePropertyChangeListener(listener);<a name="line.332"></a><FONT color="green">333</FONT>        }<a name="line.333"></a><FONT color="green">334</FONT>    <a name="line.334"></a><FONT color="green">335</FONT>        /**<a name="line.335"></a><FONT color="green">336</FONT>         * Fires a property change event.<a name="line.336"></a><FONT color="green">337</FONT>         *<a name="line.337"></a><FONT color="green">338</FONT>         * @param property  the property key.<a name="line.338"></a><FONT color="green">339</FONT>         * @param oldValue  the old value.<a name="line.339"></a><FONT color="green">340</FONT>         * @param newValue  the new value.<a name="line.340"></a><FONT color="green">341</FONT>         */<a name="line.341"></a><FONT color="green">342</FONT>        protected void firePropertyChange(String property, Object oldValue, <a name="line.342"></a><FONT color="green">343</FONT>                Object newValue) {<a name="line.343"></a><FONT color="green">344</FONT>            this.propertyChangeSupport.firePropertyChange(property, oldValue, <a name="line.344"></a><FONT color="green">345</FONT>                    newValue);<a name="line.345"></a><FONT color="green">346</FONT>        }<a name="line.346"></a><FONT color="green">347</FONT>    <a name="line.347"></a><FONT color="green">348</FONT>    }<a name="line.348"></a></PRE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -