Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.graphics.shading

pack-priv Class IntPoint

extends Point
Class Inheritance
Imports
java.awt.Point, java.awt.geom.Point2D, org.apache.commons.logging.Log, .LogFactory

Deprecated

the map in question was replaced with an array, so that this class is no longer needed

Point class with faster hashCode() to speed up the rendering of Gouraud shadings. Should only be used for maps or sets when all elements are of this type, because the hashCode() method violates its general contract "If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same" when IntPoint is mixed with Point, because IntPoint(x,y) would have a different hashCode than Point(x,y).
Author
Tilman Hausherr

Field Summary

Modifier and TypeField and Description
private static final Log
Inherited from java.awt.Point:
xy

Constructor Summary

AccessConstructor and Description
pack-priv
IntPoint(int x, int y)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
an object to be compared with this Point2D
obj
)

Overrides java.awt.Point.equals.

Determines whether or not two points are equal.

public int
hashCode()

Overrides java.awt.geom.Point2D.hashCode.

Returns the hashcode for this Point2D.

Inherited from java.awt.Point:
getLocationgetXgetYmovesetLocationsetLocationsetLocationtoStringtranslate

Field Detail

LOGback to summary
private static final Log LOG

Constructor Detail

IntPointback to summary
pack-priv IntPoint(int x, int y)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.awt.Point.equals.

Doc from java.awt.Point.equals.

Determines whether or not two points are equal. Two instances of Point2D are equal if the values of their x and y member fields, representing their position in the coordinate space, are the same.

Parameters
obj:Object

an object to be compared with this Point2D

Returns:boolean

true if the object to be compared is an instance of Point2D and has the same values; false otherwise.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.awt.geom.Point2D.hashCode.

Doc from java.awt.geom.Point2D.hashCode.

Returns the hashcode for this Point2D.

Returns:int

a hash code for this Point2D.

Annotations
@Override