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

📄 timeperiodvalues.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<FONT color="green">460</FONT>         * Creates a new instance by copying a subset of the data in this <a name="line.460"></a><FONT color="green">461</FONT>         * collection.<a name="line.461"></a><FONT color="green">462</FONT>         *<a name="line.462"></a><FONT color="green">463</FONT>         * @param start  the index of the first item to copy.<a name="line.463"></a><FONT color="green">464</FONT>         * @param end  the index of the last item to copy.<a name="line.464"></a><FONT color="green">465</FONT>         *<a name="line.465"></a><FONT color="green">466</FONT>         * @return A copy of a subset of the items.<a name="line.466"></a><FONT color="green">467</FONT>         * <a name="line.467"></a><FONT color="green">468</FONT>         * @throws CloneNotSupportedException if there is a cloning problem.<a name="line.468"></a><FONT color="green">469</FONT>         */<a name="line.469"></a><FONT color="green">470</FONT>        public TimePeriodValues createCopy(int start, int end) <a name="line.470"></a><FONT color="green">471</FONT>            throws CloneNotSupportedException {<a name="line.471"></a><FONT color="green">472</FONT>    <a name="line.472"></a><FONT color="green">473</FONT>            TimePeriodValues copy = (TimePeriodValues) super.clone();<a name="line.473"></a><FONT color="green">474</FONT>    <a name="line.474"></a><FONT color="green">475</FONT>            copy.data = new ArrayList();<a name="line.475"></a><FONT color="green">476</FONT>            if (this.data.size() &gt; 0) {<a name="line.476"></a><FONT color="green">477</FONT>                for (int index = start; index &lt;= end; index++) {<a name="line.477"></a><FONT color="green">478</FONT>                    TimePeriodValue item = (TimePeriodValue) this.data.get(index);<a name="line.478"></a><FONT color="green">479</FONT>                    TimePeriodValue clone = (TimePeriodValue) item.clone();<a name="line.479"></a><FONT color="green">480</FONT>                    try {<a name="line.480"></a><FONT color="green">481</FONT>                        copy.add(clone);<a name="line.481"></a><FONT color="green">482</FONT>                    }<a name="line.482"></a><FONT color="green">483</FONT>                    catch (SeriesException e) {<a name="line.483"></a><FONT color="green">484</FONT>                        System.err.println("Failed to add cloned item.");<a name="line.484"></a><FONT color="green">485</FONT>                    }<a name="line.485"></a><FONT color="green">486</FONT>                }<a name="line.486"></a><FONT color="green">487</FONT>            }<a name="line.487"></a><FONT color="green">488</FONT>            return copy;<a name="line.488"></a><FONT color="green">489</FONT>    <a name="line.489"></a><FONT color="green">490</FONT>        }<a name="line.490"></a><FONT color="green">491</FONT>        <a name="line.491"></a><FONT color="green">492</FONT>        /**<a name="line.492"></a><FONT color="green">493</FONT>         * Returns the index of the time period with the minimum start milliseconds.<a name="line.493"></a><FONT color="green">494</FONT>         * <a name="line.494"></a><FONT color="green">495</FONT>         * @return The index.<a name="line.495"></a><FONT color="green">496</FONT>         */<a name="line.496"></a><FONT color="green">497</FONT>        public int getMinStartIndex() {<a name="line.497"></a><FONT color="green">498</FONT>            return this.minStartIndex;<a name="line.498"></a><FONT color="green">499</FONT>        }<a name="line.499"></a><FONT color="green">500</FONT>        <a name="line.500"></a><FONT color="green">501</FONT>        /**<a name="line.501"></a><FONT color="green">502</FONT>         * Returns the index of the time period with the maximum start milliseconds.<a name="line.502"></a><FONT color="green">503</FONT>         * <a name="line.503"></a><FONT color="green">504</FONT>         * @return The index.<a name="line.504"></a><FONT color="green">505</FONT>         */<a name="line.505"></a><FONT color="green">506</FONT>        public int getMaxStartIndex() {<a name="line.506"></a><FONT color="green">507</FONT>            return this.maxStartIndex;<a name="line.507"></a><FONT color="green">508</FONT>        }<a name="line.508"></a><FONT color="green">509</FONT>    <a name="line.509"></a><FONT color="green">510</FONT>        /**<a name="line.510"></a><FONT color="green">511</FONT>         * Returns the index of the time period with the minimum middle <a name="line.511"></a><FONT color="green">512</FONT>         * milliseconds.<a name="line.512"></a><FONT color="green">513</FONT>         * <a name="line.513"></a><FONT color="green">514</FONT>         * @return The index.<a name="line.514"></a><FONT color="green">515</FONT>         */<a name="line.515"></a><FONT color="green">516</FONT>        public int getMinMiddleIndex() {<a name="line.516"></a><FONT color="green">517</FONT>            return this.minMiddleIndex;<a name="line.517"></a><FONT color="green">518</FONT>        }<a name="line.518"></a><FONT color="green">519</FONT>        <a name="line.519"></a><FONT color="green">520</FONT>        /**<a name="line.520"></a><FONT color="green">521</FONT>         * Returns the index of the time period with the maximum middle <a name="line.521"></a><FONT color="green">522</FONT>         * milliseconds.<a name="line.522"></a><FONT color="green">523</FONT>         * <a name="line.523"></a><FONT color="green">524</FONT>         * @return The index.<a name="line.524"></a><FONT color="green">525</FONT>         */<a name="line.525"></a><FONT color="green">526</FONT>        public int getMaxMiddleIndex() {<a name="line.526"></a><FONT color="green">527</FONT>            return this.maxMiddleIndex;<a name="line.527"></a><FONT color="green">528</FONT>        }<a name="line.528"></a><FONT color="green">529</FONT>    <a name="line.529"></a><FONT color="green">530</FONT>        /**<a name="line.530"></a><FONT color="green">531</FONT>         * Returns the index of the time period with the minimum end milliseconds.<a name="line.531"></a><FONT color="green">532</FONT>         * <a name="line.532"></a><FONT color="green">533</FONT>         * @return The index.<a name="line.533"></a><FONT color="green">534</FONT>         */<a name="line.534"></a><FONT color="green">535</FONT>        public int getMinEndIndex() {<a name="line.535"></a><FONT color="green">536</FONT>            return this.minEndIndex;<a name="line.536"></a><FONT color="green">537</FONT>        }<a name="line.537"></a><FONT color="green">538</FONT>        <a name="line.538"></a><FONT color="green">539</FONT>        /**<a name="line.539"></a><FONT color="green">540</FONT>         * Returns the index of the time period with the maximum end milliseconds.<a name="line.540"></a><FONT color="green">541</FONT>         * <a name="line.541"></a><FONT color="green">542</FONT>         * @return The index.<a name="line.542"></a><FONT color="green">543</FONT>         */<a name="line.543"></a><FONT color="green">544</FONT>        public int getMaxEndIndex() {<a name="line.544"></a><FONT color="green">545</FONT>            return this.maxEndIndex;<a name="line.545"></a><FONT color="green">546</FONT>        }<a name="line.546"></a><FONT color="green">547</FONT>    <a name="line.547"></a><FONT color="green">548</FONT>    }<a name="line.548"></a></PRE></BODY></HTML>

⌨️ 快捷键说明

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