/** * Returns whether or not the specified object is equivalent to * this one. * * @param o2 The object to which to compare. * @return Whether <code>o2</code> is another * <code>ColorBackgroundPainterStrategy</code> representing * the same color as this one. */ @Override public boolean equals(Object o2) { return o2!=null && (o2 instanceof ColorBackgroundPainterStrategy) && this.color.equals( ((ColorBackgroundPainterStrategy)o2).getColor()); }
/** * Returns the <code>Object</code> representing the background for all * documents in this tabbed pane; either a <code>java.awt.Color</code> or a * <code>java.lang.Image</code> containing the image used as the background * for this text area. * * @return The <code>Object</code> used for the background. * @see #setBackgroundObject(Object newBackground) */ public final Object getBackgroundObject() { if (backgroundPainter==null) { return null; } return (backgroundPainter instanceof ImageBackgroundPainterStrategy) ? (Object)((ImageBackgroundPainterStrategy)backgroundPainter). getMasterImage() : (Object)((ColorBackgroundPainterStrategy)backgroundPainter). getColor(); }
/** * Returns whether or not the specified object is equivalent to * this one. * * @param o2 The object to which to compare. * @return Whether <code>o2</code> is another * <code>ColorBackgroundPainterStrategy</code> representing * the same color as this one. */ @Override public boolean equals(Object o2) { return o2!=null && (o2 instanceof ColorBackgroundPainterStrategy) && this.color.equals( ((ColorBackgroundPainterStrategy)o2).getColor()); }
/** * Returns whether or not the specified object is equivalent to * this one. * * @param o2 The object to which to compare. * @return Whether <code>o2</code> is another * <code>ColorBackgroundPainterStrategy</code> representing * the same color as this one. */ public boolean equals(Object o2) { return o2!=null && (o2 instanceof ColorBackgroundPainterStrategy) && this.color.equals( ((ColorBackgroundPainterStrategy)o2).getColor()); }
/** * Returns whether or not the specified object is equivalent to * this one. * * @param o2 The object to which to compare. * @return Whether <code>o2</code> is another * <code>ColorBackgroundPainterStrategy</code> representing * the same color as this one. */ public boolean equals(Object o2) { return o2!=null && (o2 instanceof ColorBackgroundPainterStrategy) && this.color.equals( ((ColorBackgroundPainterStrategy)o2).getColor()); }
/** * Returns the <code>Object</code> representing the background for all * documents in this tabbed pane; either a <code>java.awt.Color</code> or a * <code>java.lang.Image</code> containing the image used as the background * for this text area. * * @return The <code>Object</code> used for the background. * @see #setBackgroundObject(Object newBackground) */ public final Object getBackgroundObject() { if (backgroundPainter==null) return null; return (backgroundPainter instanceof ImageBackgroundPainterStrategy) ? (Object)((ImageBackgroundPainterStrategy)backgroundPainter). getMasterImage() : (Object)((ColorBackgroundPainterStrategy)backgroundPainter). getColor(); }
/** * Returns the <code>Object</code> representing the background for all * documents in this tabbed pane; either a <code>java.awt.Color</code> or a * <code>java.lang.Image</code> containing the image used as the background * for this text area. * * @return The <code>Object</code> used for the background. * @see #setBackgroundObject(Object newBackground) */ public final Object getBackgroundObject() { if (backgroundPainter==null) { return null; } return (backgroundPainter instanceof ImageBackgroundPainterStrategy) ? (Object)((ImageBackgroundPainterStrategy)backgroundPainter). getMasterImage() : (Object)((ColorBackgroundPainterStrategy)backgroundPainter). getColor(); }
/** * Returns the <code>Object</code> representing the background for all * documents in this tabbed pane; either a <code>java.awt.Color</code> or a * <code>java.lang.Image</code> containing the image used as the background * for this text area. * * @return The <code>Object</code> used for the background. * @see #setBackgroundObject(Object newBackground) */ public final Object getBackgroundObject() { if (backgroundPainter==null) return null; return (backgroundPainter instanceof ImageBackgroundPainterStrategy) ? (Object)((ImageBackgroundPainterStrategy)backgroundPainter). getMasterImage() : (Object)((ColorBackgroundPainterStrategy)backgroundPainter). getColor(); }