Codota Logo
GradientPaintTransformType.equals
Code IndexAdd Codota to your IDE (free)

How to use
equals
method
in
org.jfree.ui.GradientPaintTransformType

Best Java code snippets using org.jfree.ui.GradientPaintTransformType.equals (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: jfree/jcommon

/**
 * Ensures that serialization returns the unique instances.
 * 
 * @return The object.
 * 
 * @throws ObjectStreamException if there is a problem.
 */
private Object readResolve() throws ObjectStreamException {
  GradientPaintTransformType result = null;
  if (this.equals(GradientPaintTransformType.HORIZONTAL)) {
    result = GradientPaintTransformType.HORIZONTAL;
  }
  else if (this.equals(GradientPaintTransformType.VERTICAL)) {
    result = GradientPaintTransformType.VERTICAL;
  }
  else if (this.equals(GradientPaintTransformType.CENTER_HORIZONTAL)) {
    result = GradientPaintTransformType.CENTER_HORIZONTAL;
  }
  else if (this.equals(GradientPaintTransformType.CENTER_VERTICAL)) {
    result = GradientPaintTransformType.CENTER_VERTICAL;
  }
  return result;
}
 
origin: org.jfree/jcommon

/**
 * Ensures that serialization returns the unique instances.
 * 
 * @return The object.
 * 
 * @throws ObjectStreamException if there is a problem.
 */
private Object readResolve() throws ObjectStreamException {
  GradientPaintTransformType result = null;
  if (this.equals(GradientPaintTransformType.HORIZONTAL)) {
    result = GradientPaintTransformType.HORIZONTAL;
  }
  else if (this.equals(GradientPaintTransformType.VERTICAL)) {
    result = GradientPaintTransformType.VERTICAL;
  }
  else if (this.equals(GradientPaintTransformType.CENTER_HORIZONTAL)) {
    result = GradientPaintTransformType.CENTER_HORIZONTAL;
  }
  else if (this.equals(GradientPaintTransformType.CENTER_VERTICAL)) {
    result = GradientPaintTransformType.CENTER_VERTICAL;
  }
  return result;
}
 
origin: org.jfree/com.springsource.org.jfree

/**
 * Ensures that serialization returns the unique instances.
 * 
 * @return The object.
 * 
 * @throws ObjectStreamException if there is a problem.
 */
private Object readResolve() throws ObjectStreamException {
  GradientPaintTransformType result = null;
  if (this.equals(GradientPaintTransformType.HORIZONTAL)) {
    result = GradientPaintTransformType.HORIZONTAL;
  }
  else if (this.equals(GradientPaintTransformType.VERTICAL)) {
    result = GradientPaintTransformType.VERTICAL;
  }
  else if (this.equals(GradientPaintTransformType.CENTER_HORIZONTAL)) {
    result = GradientPaintTransformType.CENTER_HORIZONTAL;
  }
  else if (this.equals(GradientPaintTransformType.CENTER_VERTICAL)) {
    result = GradientPaintTransformType.CENTER_VERTICAL;
  }
  return result;
}
 
origin: org.jfree/jcommon

final Rectangle2D bounds = target.getBounds2D();
if (this.type.equals(GradientPaintTransformType.VERTICAL)) {
  result = new GradientPaint((float) bounds.getCenterX(), 
      (float) bounds.getMinY(), paint.getColor1(), 
      paint.getColor2());
else if (this.type.equals(GradientPaintTransformType.HORIZONTAL)) {
  result = new GradientPaint((float) bounds.getMinX(), 
      (float) bounds.getCenterY(), paint.getColor1(), 
      paint.getColor2());            
else if (this.type.equals(
    GradientPaintTransformType.CENTER_HORIZONTAL)) {
  result = new GradientPaint((float) bounds.getCenterX(), 
      paint.getColor1(), true);            
else if (this.type.equals(GradientPaintTransformType.CENTER_VERTICAL)) {
  result = new GradientPaint((float) bounds.getCenterX(), 
      (float) bounds.getMinY(), paint.getColor1(), 
origin: jfree/jcommon

final Rectangle2D bounds = target.getBounds2D();
if (this.type.equals(GradientPaintTransformType.VERTICAL)) {
  result = new GradientPaint((float) bounds.getCenterX(), 
      (float) bounds.getMinY(), paint.getColor1(), 
      paint.getColor2());
else if (this.type.equals(GradientPaintTransformType.HORIZONTAL)) {
  result = new GradientPaint((float) bounds.getMinX(), 
      (float) bounds.getCenterY(), paint.getColor1(), 
      paint.getColor2());            
else if (this.type.equals(
    GradientPaintTransformType.CENTER_HORIZONTAL)) {
  result = new GradientPaint((float) bounds.getCenterX(), 
      paint.getColor1(), true);            
else if (this.type.equals(GradientPaintTransformType.CENTER_VERTICAL)) {
  result = new GradientPaint((float) bounds.getCenterX(), 
      (float) bounds.getMinY(), paint.getColor1(), 
origin: org.jfree/com.springsource.org.jfree

final Rectangle2D bounds = target.getBounds2D();
if (this.type.equals(GradientPaintTransformType.VERTICAL)) {
  result = new GradientPaint((float) bounds.getCenterX(), 
      (float) bounds.getMinY(), paint.getColor1(), 
      paint.getColor2());
else if (this.type.equals(GradientPaintTransformType.HORIZONTAL)) {
  result = new GradientPaint((float) bounds.getMinX(), 
      (float) bounds.getCenterY(), paint.getColor1(), 
      paint.getColor2());            
else if (this.type.equals(
    GradientPaintTransformType.CENTER_HORIZONTAL)) {
  result = new GradientPaint((float) bounds.getCenterX(), 
      paint.getColor1(), true);            
else if (this.type.equals(GradientPaintTransformType.CENTER_VERTICAL)) {
  result = new GradientPaint((float) bounds.getCenterX(), 
      (float) bounds.getMinY(), paint.getColor1(), 
org.jfree.uiGradientPaintTransformTypeequals

Javadoc

Returns true if this object is equal to the specified object, and false otherwise.

Popular methods of GradientPaintTransformType

  • hashCode
    Returns a hash code value for the object.

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now