Codota Logo
UnitType
Code IndexAdd Codota to your IDE (free)

How to use
UnitType
in
org.jfree.util

Best Java code snippets using org.jfree.util.UnitType (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • 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 {
  if (this.equals(UnitType.ABSOLUTE)) {
    return UnitType.ABSOLUTE;
  }
  else if (this.equals(UnitType.RELATIVE)) {
    return UnitType.RELATIVE;
  }
  return null;
}
 
origin: jfree/jcommon

/**
 * Returns a hash code for the object.
 * 
 * @return A hash code.
 */
public int hashCode() {
  int result;
  long temp;
  result = (this.unitType != null ? this.unitType.hashCode() : 0);
  temp = this.top != +0.0d ? Double.doubleToLongBits(this.top) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  temp = this.bottom != +0.0d ? Double.doubleToLongBits(this.bottom) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  temp = this.left != +0.0d ? Double.doubleToLongBits(this.left) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  temp = this.right != +0.0d ? Double.doubleToLongBits(this.right) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  return result;
}
origin: org.jfree/jcommon

/**
 * Returns a hash code for the object.
 * 
 * @return A hash code.
 */
public int hashCode() {
  int result;
  long temp;
  result = (this.unitType != null ? this.unitType.hashCode() : 0);
  temp = this.top != +0.0d ? Double.doubleToLongBits(this.top) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  temp = this.bottom != +0.0d ? Double.doubleToLongBits(this.bottom) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  temp = this.left != +0.0d ? Double.doubleToLongBits(this.left) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  temp = this.right != +0.0d ? Double.doubleToLongBits(this.right) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  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 {
  if (this.equals(UnitType.ABSOLUTE)) {
    return UnitType.ABSOLUTE;
  }
  else if (this.equals(UnitType.RELATIVE)) {
    return UnitType.RELATIVE;
  }
  return null;
}
 
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns a hash code for the object.
 * 
 * @return A hash code.
 */
public int hashCode() {
  int result;
  long temp;
  result = (this.unitType != null ? this.unitType.hashCode() : 0);
  temp = this.top != +0.0d ? Double.doubleToLongBits(this.top) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  temp = this.bottom != +0.0d ? Double.doubleToLongBits(this.bottom) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  temp = this.left != +0.0d ? Double.doubleToLongBits(this.left) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  temp = this.right != +0.0d ? Double.doubleToLongBits(this.right) : 0L;
  result = 29 * result + (int) (temp ^ (temp >>> 32));
  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 {
  if (this.equals(UnitType.ABSOLUTE)) {
    return UnitType.ABSOLUTE;
  }
  else if (this.equals(UnitType.RELATIVE)) {
    return UnitType.RELATIVE;
  }
  return null;
}
 
org.jfree.utilUnitType

Javadoc

Used to indicate absolute or relative units.

Most used methods

  • equals
    Returns true if this object is equal to the specified object, and false otherwise.
  • hashCode
    Returns a hash code value for the object.

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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