Packageedu.stanford.covertlab.graphics
Classpublic class SupSubRasterText
InheritanceSupSubRasterText Inheritance com.degrafa.GeometryGroup

Provides support for superscript, subscript, and Greek characters within Degrafa.
  1. Replaces HTML entities with decimal notation
  2. Breaks up text into contigous normal, subscript, and superscript blocks
  3. Creates RasterText object for each block
  4. Adds RasterText objects to a geomerty group

Uses embedded Arial font.

See also

edu.stanford.covertlab.util.HTML
com.degrafa.geometry.RasterText


Public Properties
 PropertyDefined by
  fontSize : Number
SupSubRasterText
  height : Number
[read-only]
SupSubRasterText
  text : String
SupSubRasterText
  width : Number
[read-only]
SupSubRasterText
Public Methods
 MethodDefined by
  
SupSubRasterText(text:String = "", fontSize:Number = 10)
SupSubRasterText
Property detail
fontSizeproperty
fontSize:Number  [read-write]Implementation
    public function get fontSize():Number
    public function set fontSize(value:Number):void
heightproperty 
height:Number  [read-only]Implementation
    public function get height():Number
textproperty 
text:String  [read-write]Implementation
    public function get text():String
    public function set text(value:String):void
widthproperty 
width:Number  [read-only]Implementation
    public function get width():Number
Constructor detail
SupSubRasterText()constructor
public function SupSubRasterText(text:String = "", fontSize:Number = 10)Parameters
text:String (default = "")
 
fontSize:Number (default = 10)