Save This Page
Home » jcommon-1.0.13 » org.jfree.text » [javadoc | source]
org.jfree.text
public class: TextBox [javadoc | source]
java.lang.Object
   org.jfree.text.TextBox

All Implemented Interfaces:
    Serializable

A box containing a text block.
Constructor:
 public TextBox() 
 public TextBox(String text) 
    Creates a text box.
    Parameters:
    text - the text.
 public TextBox(TextBlock block) 
    Creates a new text box.
    Parameters:
    block - the text block.
Method from org.jfree.text.TextBox Summary:
draw,   equals,   getBackgroundPaint,   getHeight,   getInteriorGap,   getOutlinePaint,   getOutlineStroke,   getShadowPaint,   getShadowXOffset,   getShadowYOffset,   getTextBlock,   hashCode,   setBackgroundPaint,   setInteriorGap,   setOutlinePaint,   setOutlineStroke,   setShadowPaint,   setShadowXOffset,   setShadowYOffset,   setTextBlock
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.text.TextBox Detail:
 public  void draw(Graphics2D g2,
    float x,
    float y,
    RectangleAnchor anchor) 
    Draws the text box.
 public boolean equals(Object obj) 
    Tests this object for equality with an arbitrary object.
 public Paint getBackgroundPaint() 
    Returns the background paint.
 public double getHeight(Graphics2D g2) 
    Returns the height of the text box.
 public RectangleInsets getInteriorGap() 
    Returns the interior gap.
 public Paint getOutlinePaint() 
    Returns the outline paint.
 public Stroke getOutlineStroke() 
    Returns the outline stroke.
 public Paint getShadowPaint() 
    Returns the shadow paint.
 public double getShadowXOffset() 
    Returns the x-offset for the shadow effect.
 public double getShadowYOffset() 
    Returns the y-offset for the shadow effect.
 public TextBlock getTextBlock() 
    Returns the text block.
 public int hashCode() 
    Returns a hash code for this object.
 public  void setBackgroundPaint(Paint paint) 
    Sets the background paint.
 public  void setInteriorGap(RectangleInsets gap) 
    Sets the interior gap.
 public  void setOutlinePaint(Paint paint) 
    Sets the outline paint.
 public  void setOutlineStroke(Stroke stroke) 
    Sets the outline stroke.
 public  void setShadowPaint(Paint paint) 
    Sets the shadow paint.
 public  void setShadowXOffset(double offset) 
    Sets the x-offset for the shadow effect.
 public  void setShadowYOffset(double offset) 
    Sets the y-offset for the shadow effect.
 public  void setTextBlock(TextBlock block) 
    Sets the text block.