|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.octo.captcha.component.image.textpaster.MutableAttributedString
public class MutableAttributedString
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 |
---|
protected MutableAttributedString(java.awt.Graphics2D g2, java.text.AttributedString aString, int kerning)
g2
- graphicsaString
- attributed StringMethod Detail |
---|
public void overlap(double overlapPixs)
overlapPixs
- protected void shiftBoundariesToNonLinearLayout(double backgroundWidth, double backgroundHeight)
public java.lang.String toString()
toString
in class java.lang.Object
public int length()
public double getX(int index)
public double getY(int index)
public double getHeight(int index)
public double getTotalWidth()
public double getWidth(int index)
public double getAscent(int index)
public double getMaxWidth()
public double getMaxAscent()
public double getMaxDescent()
public double getMaxHeight()
public double getMaxX()
public double getMaxY()
public java.awt.geom.Rectangle2D getBounds(int index)
public java.awt.font.LineMetrics getMetric(int index)
public java.text.AttributedCharacterIterator getIterator(int i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |