Home » apache-harmony-6.0-src-r917296-snapshot » org.apache.harmony.awt.text » [javadoc | source]
org.apache.harmony.awt.text
public class: TextUtils [javadoc | source]
java.lang.Object
   org.apache.harmony.awt.text.TextUtils
Field Summary
static final  Bias backward     
static final  Bias forward     
Constructor:
 public TextUtils() 
Method from org.apache.harmony.awt.text.TextUtils Summary:
changeCaretPosition,   changeCaretPosition,   copy,   createTransferable,   cut,   drawComposedText,   drawTabbedText,   exportDone,   exportToClipboard,   getBidiVisualPosition,   getBoundsByOffsets,   getBreakLocation,   getCalendarField,   getComposedTextParams,   getEditorRect,   getFieldViewAllocation,   getHrzInsets,   getNextValue,   getNextVisualPositionFrom,   getNextWord,   getParagraphElement,   getPositionAbove,   getPositionBelow,   getPreviousValue,   getPreviousWord,   getRowEnd,   getRowStart,   getSourceActions,   getSystemClipboard,   getTabbedTextOffset,   getTabbedTextOffset,   getTabbedTextWidth,   getTextFieldKit,   getTextKit,   getVrtInsets,   getWordEnd,   getWordStart,   importData,   isBidirectional,   isLTR,   isLTR,   isPositionValid,   isRTL,   modelToIconOrComponentView,   paintLayer,   paste,   processIMEvent,   readLock,   readUnlock,   scrollRectToVisible,   selectCalendarField,   setCharacterAttributes,   setCurrentPositionAsMagic,   setNativeCaretPosition,   setParagraphAttributes
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.harmony.awt.text.TextUtils Detail:
 public static final  void changeCaretPosition(TextKit textKit,
    int newPos,
    boolean isMovingCaret) 
    Sets new value to dot or mark of the given component caret depending on isMovingCaret value
 public static final  void changeCaretPosition(TextKit textKit,
    int newPos,
    boolean isMovingCaret,
    Bias newBias) 
    Sets new value to dot or mark of the given component caret depending on isMovingCaret value
 public static final  void copy(TextKit textKit) 
 public static final Transferable createTransferable(TextKit textKit) 
 public static final  void cut(TextKit textKit) 
 public static final int drawComposedText(TextKit textKit,
    AttributedString text,
    Graphics g,
    int x,
    int y) 
 public static final int drawTabbedText(Segment s,
    int x,
    int y,
    Graphics g,
    TabExpander t,
    int pos) 
 public static final  void exportDone(TextKit textKit,
    Transferable transferable,
    int action) 
 public static final  void exportToClipboard(TextKit textKit,
    Clipboard clipboard,
    int action) 
 static final int getBidiVisualPosition(int start,
    int end,
    Element neighbouringElement,
    int pos,
    Bias b0,
    Bias[] biasRet,
    int length,
    boolean toWest,
    boolean isLTR) 
 public static final Rectangle getBoundsByOffsets(TextKit tk,
    int p0,
    int p1) 
 public static final int getBreakLocation(Segment s,
    FontMetrics fm,
    int start,
    int end,
    TabExpander t,
    int pos) 
 public static int getCalendarField(JFormattedTextField textField) 
 public static ComposedTextParams getComposedTextParams(TextKit tk) 
 public static Rectangle getEditorRect(JComponent component) 
 public static final Shape getFieldViewAllocation(View v,
    TextFieldKit tfk,
    Shape shape,
    ComponentOrientation orientation) 
 public static int getHrzInsets(Insets insets) 
 public static Object getNextValue(Date value,
    int calendarField,
    Comparable<Date> end) 
 public static final int getNextVisualPositionFrom(TextKit textKit,
    View v,
    int pos,
    Bias bias,
    Shape shape,
    int direction,
    Bias[] biasRet) throws BadLocationException 
 public static final int getNextWord(Document doc,
    int pos) throws BadLocationException 
 public static final Element getParagraphElement(Document doc,
    int p) 
 public static final int getPositionAbove(TextKit textKit,
    int p,
    int x) throws BadLocationException 
    Finds row above, calculates modelToView for all the positions from this view and selects the closest one.
 public static final int getPositionBelow(TextKit textKit,
    int p,
    int x) throws BadLocationException 
    Finds row below, calculates modelToView for all the positions from this view and selects the closest one.
 public static Object getPreviousValue(Date value,
    int calendarField,
    Comparable<Date> start) 
 public static final int getPreviousWord(Document doc,
    int pos) throws BadLocationException 
 public static final int getRowEnd(TextKit tk,
    int pos) throws BadLocationException 
 public static final int getRowStart(TextKit tk,
    int pos) throws BadLocationException 
 public static int getSourceActions(TextKit textKit) 
 public static final Clipboard getSystemClipboard() 
 public static final int getTabbedTextOffset(Segment s,
    FontMetrics fm,
    int start,
    int end,
    TabExpander t,
    int pos) 
 public static final int getTabbedTextOffset(Segment s,
    FontMetrics fm,
    int start,
    int end,
    TabExpander t,
    int pos,
    boolean round) 
    If round equals false it needs that symbol is placed completely. If round equals true it needs that more than half of the symbol is placed.
 public static final int getTabbedTextWidth(Segment s,
    FontMetrics fm,
    int x,
    TabExpander t,
    int pos) 
 public static final TextFieldKit getTextFieldKit(Component c) 
 public static final TextKit getTextKit(Component c) 
 public static int getVrtInsets(Insets insets) 
 public static final int getWordEnd(TextKit tk,
    int pos) throws BadLocationException 
 public static final int getWordStart(TextKit tk,
    int pos) throws BadLocationException 
 public static final boolean importData(TextKit textKit,
    Transferable t) 
 public static final boolean isBidirectional(Document document) 
 static final boolean isLTR(Element element) 
 public static final boolean isLTR(int level) 
 public static  void isPositionValid(View view,
    int pos) throws BadLocationException 
    Throws BadLocationException if the position does not represent a valid location in the associated document element.
 static final boolean isRTL(int level) 
 public static Shape modelToIconOrComponentView(View view,
    int pos,
    Shape shape,
    Bias bias) throws BadLocationException 
    Transforms position at the document model coordinate space to the coordinate space of the corresponding icon or component view.
 public static Shape paintLayer(Graphics g,
    int p0,
    int p1,
    Shape shape,
    Color color,
    View view,
    boolean fill) 
 public static final  void paste(TextKit textKit) 
 public static  void processIMEvent(InputMethodListener listener,
    InputMethodEvent e) 
 public static final  void readLock(Document document) 
 public static final  void readUnlock(Document document) 
 public static Rectangle scrollRectToVisible(Rectangle viewRect,
    Rectangle r) 
 public static  void selectCalendarField(JFormattedTextField textField,
    int calendarField) 
 public static  void setCharacterAttributes(AttributeSet attr,
    boolean replace,
    JEditorPane editorPane,
    StyledDocument doc,
    MutableAttributeSet inputAttrs) 
 public static final  void setCurrentPositionAsMagic(TextKit textKit) 
 public static final  void setNativeCaretPosition(Rectangle rect,
    Component comp) 
 public static  void setParagraphAttributes(AttributeSet attr,
    boolean replace,
    JEditorPane editorPane,
    StyledDocument doc)