com.quadrique.jbuildingblocks.gui
Class TextPaneSegment

java.lang.Object
  extended by com.quadrique.jbuildingblocks.gui.TextPaneSegment

public class TextPaneSegment
extends Object

A text pane segment is a set of contiguous characters (can be empty) that share the same attribute set

Author:
Hervé Rivere

Constructor Summary
TextPaneSegment()
          constructor
 
Method Summary
 void addText(String zText)
          add the text to the current text
 TextPaneAttributeSet getAttributeSet()
           
 String getText()
           
 boolean isAttrSetIdentical(TextPaneAttributeSet zAttrSet)
           
 void setAttributeSet(TextPaneAttributeSet zSet)
          set the attribute set for this segment
 void setText(String zText)
          set the textfor this segment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPaneSegment

public TextPaneSegment()
constructor

Method Detail

setAttributeSet

public void setAttributeSet(TextPaneAttributeSet zSet)
set the attribute set for this segment

Parameters:
zSet - the attribute set

setText

public void setText(String zText)
set the textfor this segment

Parameters:
zText - the attribute set

addText

public void addText(String zText)
add the text to the current text

Parameters:
zText - the attribute set

isAttrSetIdentical

public boolean isAttrSetIdentical(TextPaneAttributeSet zAttrSet)
Parameters:
zAttrSet - a reference to an attribute set
Returns:
true if the attribute set are equal

getAttributeSet

public TextPaneAttributeSet getAttributeSet()
Returns:
the attribute set for this segment or null if none

getText

public String getText()
Returns:
the text for this segment or null if none


Copyright © 2001-2009 Quadrique Corporation. All Rights Reserved.