public class CharRectangle extends Rectangle
Rectangle2D.Double, Rectangle2D.Float
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
Constructor and Description |
---|
CharRectangle(BufferedImage img,
Point p,
int w,
int h,
Character c,
File collection) |
CharRectangle(BufferedImage img,
Point p,
int w,
int h,
Character c,
File collection,
double[] diff) |
CharRectangle(BufferedImage img,
Rectangle r,
Character c,
File collection) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Character |
getCharacter() |
double[] |
getDifference() |
boolean |
isValidRectangle() |
void |
setCustomDescription(String customDescription)
Set the custom description to be returned by the
toString()
method. |
void |
setDifference(double[] diff) |
String |
toString() |
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, translate, union
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
public CharRectangle(BufferedImage img, Point p, int w, int h, Character c, File collection)
public CharRectangle(BufferedImage img, Point p, int w, int h, Character c, File collection, double[] diff)
public CharRectangle(BufferedImage img, Rectangle r, Character c, File collection)
public boolean isValidRectangle()
public Character getCharacter()
public void setCustomDescription(String customDescription)
toString()
method.customDescription
- the customDescription to setpublic double[] getDifference()
public void setDifference(double[] diff)
diff
- the similarity to set