/** * Tests the entity for equality with an arbitrary object. * * @param obj the object to test against ({@code null} permitted). * * @return A boolean. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TitleEntity)) { return false; } TitleEntity that = (TitleEntity) obj; if (!getArea().equals(that.getArea())) { return false; } if (!ObjectUtils.equal(getToolTipText(), that.getToolTipText())) { return false; } if (!ObjectUtils.equal(getURLText(), that.getURLText())) { return false; } if (!(this.title.equals(that.title))) { return false; } return true; }
/** * Provides serialization support. * * @param stream the input stream. * * @throws IOException if there is an I/O error. * @throws ClassNotFoundException if there is a classpath problem. */ private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); setArea(SerialUtils.readShape(stream)); }
/** * Returns a hash code for this instance. * * @return A hash code. */ @Override public int hashCode() { int result = 41; result = HashUtils.hashCode(result, getToolTipText()); result = HashUtils.hashCode(result, getURLText()); return result; }
EntityBlockParams p = (EntityBlockParams) params; if (p.getGenerateEntities()) { entity = new TitleEntity(area, this, this.toolTipText, this.urlText);
/** * Provides serialization support. * * @param stream the output stream. * * @throws IOException if there is an I/O error. */ private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtilities.writeShape(getArea(), stream); }
/** * Returns a string representation of the chart entity, useful for * debugging. * * @return A string. */ public String toString() { StringBuffer buf = new StringBuffer("TitleEntity: "); buf.append("tooltip = "); buf.append(getToolTipText()); return buf.toString(); }
&& !(ce instanceof TitleEntity && ((TitleEntity)ce).getTitle() instanceof LegendTitle) && !(ce instanceof PlotEntity)) { Area area = new Area();
/** * Returns a hash code for this instance. * * @return A hash code. */ public int hashCode() { int result = 41; result = HashUtilities.hashCode(result, getToolTipText()); result = HashUtilities.hashCode(result, getURLText()); return result; }
EntityBlockParams p = (EntityBlockParams) params; if (p.getGenerateEntities()) { entity = new TitleEntity(area, this, this.toolTipText, this.urlText);
/** * Provides serialization support. * * @param stream the output stream. * * @throws IOException if there is an I/O error. */ private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtils.writeShape(getArea(), stream); }
/** * Returns a string representation of the chart entity, useful for * debugging. * * @return A string. */ @Override public String toString() { StringBuilder sb = new StringBuilder("TitleEntity: "); sb.append("tooltip = "); sb.append(getToolTipText()); return sb.toString(); }
/** * Tests the entity for equality with an arbitrary object. * * @param obj the object to test against (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof TitleEntity)) { return false; } TitleEntity that = (TitleEntity) obj; if (!getArea().equals(that.getArea())) { return false; } if (!ObjectUtilities.equal(getToolTipText(), that.getToolTipText())) { return false; } if (!ObjectUtilities.equal(getURLText(), that.getURLText())) { return false; } if (!(this.title.equals(that.title))) { return false; } return true; }
&& ((EntityBlockParams) params).getGenerateEntities()) { sec = new StandardEntityCollection(); sec.add(new TitleEntity(hotspot, this));
/** * Provides serialization support. * * @param stream the input stream. * * @throws IOException if there is an I/O error. * @throws ClassNotFoundException if there is a classpath problem. */ private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); setArea(SerialUtilities.readShape(stream)); }
&& ((EntityBlockParams) params).getGenerateEntities()) { sec = new StandardEntityCollection(); sec.add(new TitleEntity(hotspot, this));