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

📄 timetablexydataset.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<FONT color="green">463</FONT>         * Returns the maximum x-value in the dataset.<a name="line.463"></a><FONT color="green">464</FONT>         *<a name="line.464"></a><FONT color="green">465</FONT>         * @param includeInterval  a flag that determines whether or not the<a name="line.465"></a><FONT color="green">466</FONT>         *                         x-interval is taken into account.<a name="line.466"></a><FONT color="green">467</FONT>         * <a name="line.467"></a><FONT color="green">468</FONT>         * @return The maximum value.<a name="line.468"></a><FONT color="green">469</FONT>         */<a name="line.469"></a><FONT color="green">470</FONT>        public double getDomainUpperBound(boolean includeInterval) {<a name="line.470"></a><FONT color="green">471</FONT>            double result = Double.NaN;<a name="line.471"></a><FONT color="green">472</FONT>            Range r = getDomainBounds(includeInterval);<a name="line.472"></a><FONT color="green">473</FONT>            if (r != null) {<a name="line.473"></a><FONT color="green">474</FONT>                result = r.getUpperBound();<a name="line.474"></a><FONT color="green">475</FONT>            }<a name="line.475"></a><FONT color="green">476</FONT>            return result;<a name="line.476"></a><FONT color="green">477</FONT>        }<a name="line.477"></a><FONT color="green">478</FONT>    <a name="line.478"></a><FONT color="green">479</FONT>        /**<a name="line.479"></a><FONT color="green">480</FONT>         * Returns the range of the values in this dataset's domain.<a name="line.480"></a><FONT color="green">481</FONT>         * <a name="line.481"></a><FONT color="green">482</FONT>         * @param includeInterval  a flag that controls whether or not the<a name="line.482"></a><FONT color="green">483</FONT>         *                         x-intervals are taken into account.<a name="line.483"></a><FONT color="green">484</FONT>         *<a name="line.484"></a><FONT color="green">485</FONT>         * @return The range.<a name="line.485"></a><FONT color="green">486</FONT>         */<a name="line.486"></a><FONT color="green">487</FONT>        public Range getDomainBounds(boolean includeInterval) {<a name="line.487"></a><FONT color="green">488</FONT>            List keys = this.values.getRowKeys();<a name="line.488"></a><FONT color="green">489</FONT>            if (keys.isEmpty()) {<a name="line.489"></a><FONT color="green">490</FONT>                return null;<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>            TimePeriod first = (TimePeriod) keys.get(0);<a name="line.493"></a><FONT color="green">494</FONT>            TimePeriod last = (TimePeriod) keys.get(keys.size() - 1);<a name="line.494"></a><FONT color="green">495</FONT>            <a name="line.495"></a><FONT color="green">496</FONT>            if (!includeInterval || this.domainIsPointsInTime) {<a name="line.496"></a><FONT color="green">497</FONT>                return new Range(getXValue(first), getXValue(last));<a name="line.497"></a><FONT color="green">498</FONT>            }<a name="line.498"></a><FONT color="green">499</FONT>            else {<a name="line.499"></a><FONT color="green">500</FONT>                return new Range(<a name="line.500"></a><FONT color="green">501</FONT>                    first.getStart().getTime(), last.getEnd().getTime()<a name="line.501"></a><FONT color="green">502</FONT>                );<a name="line.502"></a><FONT color="green">503</FONT>            }<a name="line.503"></a><FONT color="green">504</FONT>        }<a name="line.504"></a><FONT color="green">505</FONT>        <a name="line.505"></a><FONT color="green">506</FONT>        /**<a name="line.506"></a><FONT color="green">507</FONT>         * Tests this dataset for equality with an arbitrary object.<a name="line.507"></a><FONT color="green">508</FONT>         * <a name="line.508"></a><FONT color="green">509</FONT>         * @param obj  the object (&lt;code&gt;null&lt;/code&gt; permitted).<a name="line.509"></a><FONT color="green">510</FONT>         * <a name="line.510"></a><FONT color="green">511</FONT>         * @return A boolean.<a name="line.511"></a><FONT color="green">512</FONT>         */<a name="line.512"></a><FONT color="green">513</FONT>        public boolean equals(Object obj) {<a name="line.513"></a><FONT color="green">514</FONT>            if (obj == this) {<a name="line.514"></a><FONT color="green">515</FONT>                return true;<a name="line.515"></a><FONT color="green">516</FONT>            }<a name="line.516"></a><FONT color="green">517</FONT>            if (!(obj instanceof TimeTableXYDataset)) {<a name="line.517"></a><FONT color="green">518</FONT>                return false;<a name="line.518"></a><FONT color="green">519</FONT>            }<a name="line.519"></a><FONT color="green">520</FONT>            TimeTableXYDataset that = (TimeTableXYDataset) obj;<a name="line.520"></a><FONT color="green">521</FONT>            if (this.domainIsPointsInTime != that.domainIsPointsInTime) {<a name="line.521"></a><FONT color="green">522</FONT>                return false;<a name="line.522"></a><FONT color="green">523</FONT>            }<a name="line.523"></a><FONT color="green">524</FONT>            if (this.xPosition != that.xPosition) {<a name="line.524"></a><FONT color="green">525</FONT>                return false;<a name="line.525"></a><FONT color="green">526</FONT>            }<a name="line.526"></a><FONT color="green">527</FONT>            if (!this.workingCalendar.getTimeZone().equals(<a name="line.527"></a><FONT color="green">528</FONT>                that.workingCalendar.getTimeZone())<a name="line.528"></a><FONT color="green">529</FONT>            ) {<a name="line.529"></a><FONT color="green">530</FONT>                return false;<a name="line.530"></a><FONT color="green">531</FONT>            }<a name="line.531"></a><FONT color="green">532</FONT>            if (!this.values.equals(that.values)) {<a name="line.532"></a><FONT color="green">533</FONT>                return false;<a name="line.533"></a><FONT color="green">534</FONT>            }<a name="line.534"></a><FONT color="green">535</FONT>            return true;<a name="line.535"></a><FONT color="green">536</FONT>        }<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>         * Returns a clone of this dataset.<a name="line.539"></a><FONT color="green">540</FONT>         * <a name="line.540"></a><FONT color="green">541</FONT>         * @return A clone.<a name="line.541"></a><FONT color="green">542</FONT>         * <a name="line.542"></a><FONT color="green">543</FONT>         * @throws CloneNotSupportedException if the dataset cannot be cloned.<a name="line.543"></a><FONT color="green">544</FONT>         */<a name="line.544"></a><FONT color="green">545</FONT>        public Object clone() throws CloneNotSupportedException {<a name="line.545"></a><FONT color="green">546</FONT>            TimeTableXYDataset clone = (TimeTableXYDataset) super.clone();<a name="line.546"></a><FONT color="green">547</FONT>            clone.values = (DefaultKeyedValues2D) this.values.clone();<a name="line.547"></a><FONT color="green">548</FONT>            clone.workingCalendar = (Calendar) this.workingCalendar.clone();<a name="line.548"></a><FONT color="green">549</FONT>            return clone;<a name="line.549"></a><FONT color="green">550</FONT>        }<a name="line.550"></a><FONT color="green">551</FONT>    <a name="line.551"></a><FONT color="green">552</FONT>    }<a name="line.552"></a></PRE></BODY></HTML>

⌨️ 快捷键说明

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