com.alee.graphics.strokes
Class TextStroke

java.lang.Object
  extended by com.alee.graphics.strokes.TextStroke
All Implemented Interfaces:
java.awt.Stroke

public class TextStroke
extends java.lang.Object
implements java.awt.Stroke

User: mgarin Date: 14.06.11 Time: 18:03


Constructor Summary
TextStroke(java.lang.String text, java.awt.Font font)
           
TextStroke(java.lang.String text, java.awt.Font font, boolean stretchToFit, boolean repeat)
           
 
Method Summary
 java.awt.Shape createStrokedShape(java.awt.Shape shape)
           
 float measurePathLength(java.awt.Shape shape)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextStroke

public TextStroke(java.lang.String text,
                  java.awt.Font font)

TextStroke

public TextStroke(java.lang.String text,
                  java.awt.Font font,
                  boolean stretchToFit,
                  boolean repeat)
Method Detail

createStrokedShape

public java.awt.Shape createStrokedShape(java.awt.Shape shape)
Specified by:
createStrokedShape in interface java.awt.Stroke

measurePathLength

public float measurePathLength(java.awt.Shape shape)