net.sourceforge.javaocr.ocrPlugins.aspectRatio
Class CharacterRatio

java.lang.Object
  extended by net.sourceforge.javaocr.ocrPlugins.aspectRatio.CharacterRatio
All Implemented Interfaces:
Comparable<CharacterRatio>

public class CharacterRatio
extends Object
implements Comparable<CharacterRatio>

Provides a way to store information about a character and its ratio.

Author:
William Whitney

Field Summary
private  char character
           
private static Logger LOG
           
private  double ratio
           
 
Constructor Summary
CharacterRatio(char character, double ratio)
           
 
Method Summary
 int compareTo(CharacterRatio other)
           
 char getCharacter()
           
 double getRatio()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

character

private char character

ratio

private double ratio

LOG

private static final Logger LOG
Constructor Detail

CharacterRatio

public CharacterRatio(char character,
                      double ratio)
Method Detail

getCharacter

public char getCharacter()

getRatio

public double getRatio()

compareTo

public int compareTo(CharacterRatio other)
Specified by:
compareTo in interface Comparable<CharacterRatio>


Copyright © -2012. All Rights Reserved.