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

📄 legendgraphic.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<FONT color="green">532</FONT>        public Object draw(Graphics2D g2, Rectangle2D area, Object params) {<a name="line.532"></a><FONT color="green">533</FONT>            draw(g2, area);<a name="line.533"></a><FONT color="green">534</FONT>            return null;<a name="line.534"></a><FONT color="green">535</FONT>        }<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>         * Tests this &lt;code&gt;LegendGraphic&lt;/code&gt; instance for equality with an<a name="line.538"></a><FONT color="green">539</FONT>         * arbitrary object.<a name="line.539"></a><FONT color="green">540</FONT>         * <a name="line.540"></a><FONT color="green">541</FONT>         * @param obj  the object (&lt;code&gt;null&lt;/code&gt; permitted).<a name="line.541"></a><FONT color="green">542</FONT>         * <a name="line.542"></a><FONT color="green">543</FONT>         * @return A boolean.<a name="line.543"></a><FONT color="green">544</FONT>         */<a name="line.544"></a><FONT color="green">545</FONT>        public boolean equals(Object obj) {<a name="line.545"></a><FONT color="green">546</FONT>            if (!(obj instanceof LegendGraphic)) {<a name="line.546"></a><FONT color="green">547</FONT>                return false;<a name="line.547"></a><FONT color="green">548</FONT>            }<a name="line.548"></a><FONT color="green">549</FONT>            LegendGraphic that = (LegendGraphic) obj;<a name="line.549"></a><FONT color="green">550</FONT>            if (this.shapeVisible != that.shapeVisible) {<a name="line.550"></a><FONT color="green">551</FONT>                return false;<a name="line.551"></a><FONT color="green">552</FONT>            }<a name="line.552"></a><FONT color="green">553</FONT>            if (!ShapeUtilities.equal(this.shape, that.shape)) {<a name="line.553"></a><FONT color="green">554</FONT>                return false;<a name="line.554"></a><FONT color="green">555</FONT>            }<a name="line.555"></a><FONT color="green">556</FONT>            if (this.shapeFilled != that.shapeFilled) {<a name="line.556"></a><FONT color="green">557</FONT>                return false;<a name="line.557"></a><FONT color="green">558</FONT>            }<a name="line.558"></a><FONT color="green">559</FONT>            if (!PaintUtilities.equal(this.fillPaint, that.fillPaint)) {<a name="line.559"></a><FONT color="green">560</FONT>                return false;<a name="line.560"></a><FONT color="green">561</FONT>            }<a name="line.561"></a><FONT color="green">562</FONT>            if (this.shapeOutlineVisible != that.shapeOutlineVisible) {<a name="line.562"></a><FONT color="green">563</FONT>                return false;<a name="line.563"></a><FONT color="green">564</FONT>            }<a name="line.564"></a><FONT color="green">565</FONT>            if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) {<a name="line.565"></a><FONT color="green">566</FONT>                return false;<a name="line.566"></a><FONT color="green">567</FONT>            }<a name="line.567"></a><FONT color="green">568</FONT>            if (!ObjectUtilities.equal(this.outlineStroke, that.outlineStroke)) {<a name="line.568"></a><FONT color="green">569</FONT>                return false;<a name="line.569"></a><FONT color="green">570</FONT>            }<a name="line.570"></a><FONT color="green">571</FONT>            if (this.shapeAnchor != that.shapeAnchor) {<a name="line.571"></a><FONT color="green">572</FONT>                return false;<a name="line.572"></a><FONT color="green">573</FONT>            }<a name="line.573"></a><FONT color="green">574</FONT>            if (this.shapeLocation != that.shapeLocation) {<a name="line.574"></a><FONT color="green">575</FONT>                return false;<a name="line.575"></a><FONT color="green">576</FONT>            }<a name="line.576"></a><FONT color="green">577</FONT>            if (this.lineVisible != that.lineVisible) {<a name="line.577"></a><FONT color="green">578</FONT>                return false;<a name="line.578"></a><FONT color="green">579</FONT>            }<a name="line.579"></a><FONT color="green">580</FONT>            if (!ShapeUtilities.equal(this.line, that.line)) {<a name="line.580"></a><FONT color="green">581</FONT>                return false;<a name="line.581"></a><FONT color="green">582</FONT>            }<a name="line.582"></a><FONT color="green">583</FONT>            if (!PaintUtilities.equal(this.linePaint, that.linePaint)) {<a name="line.583"></a><FONT color="green">584</FONT>                return false;<a name="line.584"></a><FONT color="green">585</FONT>            }<a name="line.585"></a><FONT color="green">586</FONT>            if (!ObjectUtilities.equal(this.lineStroke, that.lineStroke)) {<a name="line.586"></a><FONT color="green">587</FONT>                return false;<a name="line.587"></a><FONT color="green">588</FONT>            }<a name="line.588"></a><FONT color="green">589</FONT>            if (!super.equals(obj)) {<a name="line.589"></a><FONT color="green">590</FONT>                return false;<a name="line.590"></a><FONT color="green">591</FONT>            }<a name="line.591"></a><FONT color="green">592</FONT>            return true;    <a name="line.592"></a><FONT color="green">593</FONT>        }<a name="line.593"></a><FONT color="green">594</FONT>        <a name="line.594"></a><FONT color="green">595</FONT>        /**<a name="line.595"></a><FONT color="green">596</FONT>         * Returns a clone of this &lt;code&gt;LegendGraphic&lt;/code&gt; instance.<a name="line.596"></a><FONT color="green">597</FONT>         * <a name="line.597"></a><FONT color="green">598</FONT>         * @return A clone of this &lt;code&gt;LegendGraphic&lt;/code&gt; instance.<a name="line.598"></a><FONT color="green">599</FONT>         * <a name="line.599"></a><FONT color="green">600</FONT>         * @throws CloneNotSupportedException if there is a problem cloning.<a name="line.600"></a><FONT color="green">601</FONT>         */<a name="line.601"></a><FONT color="green">602</FONT>        public Object clone() throws CloneNotSupportedException {<a name="line.602"></a><FONT color="green">603</FONT>            return super.clone();<a name="line.603"></a><FONT color="green">604</FONT>        }<a name="line.604"></a><FONT color="green">605</FONT>        <a name="line.605"></a><FONT color="green">606</FONT>        /**<a name="line.606"></a><FONT color="green">607</FONT>         * Provides serialization support.<a name="line.607"></a><FONT color="green">608</FONT>         *<a name="line.608"></a><FONT color="green">609</FONT>         * @param stream  the output stream.<a name="line.609"></a><FONT color="green">610</FONT>         *<a name="line.610"></a><FONT color="green">611</FONT>         * @throws IOException  if there is an I/O error.<a name="line.611"></a><FONT color="green">612</FONT>         */<a name="line.612"></a><FONT color="green">613</FONT>        private void writeObject(ObjectOutputStream stream) throws IOException {<a name="line.613"></a><FONT color="green">614</FONT>            stream.defaultWriteObject();<a name="line.614"></a><FONT color="green">615</FONT>            SerialUtilities.writeShape(this.shape, stream);<a name="line.615"></a><FONT color="green">616</FONT>            SerialUtilities.writePaint(this.fillPaint, stream);<a name="line.616"></a><FONT color="green">617</FONT>            SerialUtilities.writePaint(this.outlinePaint, stream);<a name="line.617"></a><FONT color="green">618</FONT>            SerialUtilities.writeStroke(this.outlineStroke, stream);<a name="line.618"></a><FONT color="green">619</FONT>            SerialUtilities.writeShape(this.line, stream);<a name="line.619"></a><FONT color="green">620</FONT>            SerialUtilities.writePaint(this.linePaint, stream);<a name="line.620"></a><FONT color="green">621</FONT>            SerialUtilities.writeStroke(this.lineStroke, stream);<a name="line.621"></a><FONT color="green">622</FONT>        }<a name="line.622"></a><FONT color="green">623</FONT>    <a name="line.623"></a><FONT color="green">624</FONT>        /**<a name="line.624"></a><FONT color="green">625</FONT>         * Provides serialization support.<a name="line.625"></a><FONT color="green">626</FONT>         *<a name="line.626"></a><FONT color="green">627</FONT>         * @param stream  the input stream.<a name="line.627"></a><FONT color="green">628</FONT>         *<a name="line.628"></a><FONT color="green">629</FONT>         * @throws IOException  if there is an I/O error.<a name="line.629"></a><FONT color="green">630</FONT>         * @throws ClassNotFoundException  if there is a classpath problem.<a name="line.630"></a><FONT color="green">631</FONT>         */<a name="line.631"></a><FONT color="green">632</FONT>        private void readObject(ObjectInputStream stream) <a name="line.632"></a><FONT color="green">633</FONT>            throws IOException, ClassNotFoundException <a name="line.633"></a><FONT color="green">634</FONT>        {<a name="line.634"></a><FONT color="green">635</FONT>            stream.defaultReadObject();<a name="line.635"></a><FONT color="green">636</FONT>            this.shape = SerialUtilities.readShape(stream);<a name="line.636"></a><FONT color="green">637</FONT>            this.fillPaint = SerialUtilities.readPaint(stream);<a name="line.637"></a><FONT color="green">638</FONT>            this.outlinePaint = SerialUtilities.readPaint(stream);<a name="line.638"></a><FONT color="green">639</FONT>            this.outlineStroke = SerialUtilities.readStroke(stream);<a name="line.639"></a><FONT color="green">640</FONT>            this.line = SerialUtilities.readShape(stream);<a name="line.640"></a><FONT color="green">641</FONT>            this.linePaint = SerialUtilities.readPaint(stream);<a name="line.641"></a><FONT color="green">642</FONT>            this.lineStroke = SerialUtilities.readStroke(stream);<a name="line.642"></a><FONT color="green">643</FONT>        }<a name="line.643"></a><FONT color="green">644</FONT>    <a name="line.644"></a><FONT color="green">645</FONT>    }<a name="line.645"></a></PRE></BODY></HTML>

⌨️ 快捷键说明

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