com.octo.captcha.component.image.textpaster
Class MutableAttributedString

java.lang.Object
  extended by com.octo.captcha.component.image.textpaster.MutableAttributedString

Deprecated.

public class MutableAttributedString
extends java.lang.Object

This class is the decomposition of a single AttributedString into its component glyphs. It wouldn't be necessary if Java2D correctly handled spacing issues with fonts changed AffineTransformation -- there is a possibility that it will not be necessary with java 1.5


Constructor Summary
protected MutableAttributedString(java.awt.Graphics2D g2, java.text.AttributedString aString, int kerning)
          Deprecated. Given an attributed string and the graphics environment it lives in, pull it apart into its components.
 
Method Summary
 double getAscent(int index)
          Deprecated.  
 java.awt.geom.Rectangle2D getBounds(int index)
          Deprecated.  
 double getHeight(int index)
          Deprecated.  
 java.text.AttributedCharacterIterator getIterator(int i)
          Deprecated.  
 double getMaxAscent()
          Deprecated.  
 double getMaxDescent()
          Deprecated.  
 double getMaxHeight()
          Deprecated.  
 double getMaxWidth()
          Deprecated.  
 double getMaxX()
          Deprecated.  
 double getMaxY()
          Deprecated.  
 java.awt.font.LineMetrics getMetric(int index)
          Deprecated.  
 double getTotalWidth()
          Deprecated.  
 double getWidth(int index)
          Deprecated.  
 double getX(int index)
          Deprecated.  
 double getY(int index)
          Deprecated.  
 int length()
          Deprecated.  
 void overlap(double overlapPixs)
          Deprecated. Gradually reduce spacing between letters until the overlap at least equals specified overlapPixs.
protected  void shiftBoundariesToNonLinearLayout(double backgroundWidth, double backgroundHeight)
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableAttributedString

protected MutableAttributedString(java.awt.Graphics2D g2,
                                  java.text.AttributedString aString,
                                  int kerning)
Deprecated. 
Given an attributed string and the graphics environment it lives in, pull it apart into its components.

Parameters:
g2 - graphics
aString - attributed String
Method Detail

overlap

public void overlap(double overlapPixs)
Deprecated. 
Gradually reduce spacing between letters until the overlap at least equals specified overlapPixs.

Parameters:
overlapPixs -

shiftBoundariesToNonLinearLayout

protected void shiftBoundariesToNonLinearLayout(double backgroundWidth,
                                                double backgroundHeight)
Deprecated. 

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

length

public int length()
Deprecated. 

getX

public double getX(int index)
Deprecated. 

getY

public double getY(int index)
Deprecated. 

getHeight

public double getHeight(int index)
Deprecated. 

getTotalWidth

public double getTotalWidth()
Deprecated. 

getWidth

public double getWidth(int index)
Deprecated. 

getAscent

public double getAscent(int index)
Deprecated. 

getMaxWidth

public double getMaxWidth()
Deprecated. 

getMaxAscent

public double getMaxAscent()
Deprecated. 

getMaxDescent

public double getMaxDescent()
Deprecated. 

getMaxHeight

public double getMaxHeight()
Deprecated. 

getMaxX

public double getMaxX()
Deprecated. 

getMaxY

public double getMaxY()
Deprecated. 

getBounds

public java.awt.geom.Rectangle2D getBounds(int index)
Deprecated. 

getMetric

public java.awt.font.LineMetrics getMetric(int index)
Deprecated. 

getIterator

public java.text.AttributedCharacterIterator getIterator(int i)
Deprecated. 


Copyright 2003-2009 JCaptcha. All Rights Reserved.