ilog.views.graphic
Class IlvText.Editor

java.lang.Object
  extended by ilog.views.IlvObjectInteractor
      extended by ilog.views.IlvReshapeSelection
          extended by ilog.views.objectinteractor.IlvTextEditor
              extended by ilog.views.graphic.IlvText.Editor
All Implemented Interfaces:
ClipboardOwner, Serializable
Enclosing class:
IlvText

public static class IlvText.Editor
extends IlvTextEditor

This is the text editor of IlvText.

Since:
JViews 8.0
See Also:
Serialized Form

Constructor Summary
IlvText.Editor()
          Creates a new instance of the text editor.
 
Method Summary
protected  void copySelection(IlvTextInterface text, int startIndex, int endIndex)
          Copies the region from the input text object to the clipboard.
protected  void deleteSelection(IlvTextInterface text, int startIndex, int endIndex)
          Delete the region from the input text object.
protected  void replaceSelection(IlvTextInterface text, int startIndex, int endIndex, AttributedString s)
          Replace the region from the input text object.
protected  void replaceSelection(IlvTextInterface text, int startIndex, int endIndex, String s)
          Replace the region from the input text object.
 
Methods inherited from class ilog.views.objectinteractor.IlvTextEditor
lostOwnership, processEvent
 
Methods inherited from class ilog.views.IlvReshapeSelection
drawGhost, drawGhost, getBoundingBox, getCursor, handleButtonDown, handleButtonDragged, handleButtonUp, handleExpose, isOpaqueMode, onEnter, onExit, reshapeObject, setOpaqueMode
 
Methods inherited from class ilog.views.IlvObjectInteractor
Get, Put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvText.Editor

public IlvText.Editor()
Creates a new instance of the text editor.

Method Detail

deleteSelection

protected void deleteSelection(IlvTextInterface text,
                               int startIndex,
                               int endIndex)
Delete the region from the input text object. The area label.substring(startIndex, endIndex) is removed from the label of the text object.

Overrides:
deleteSelection in class IlvTextEditor
Parameters:
text - The text object
startIndex - The index of the first character to be removed.
endIndex - The index of the first character that is not anymore removed.
Since:
JViews 8.0

replaceSelection

protected void replaceSelection(IlvTextInterface text,
                                int startIndex,
                                int endIndex,
                                String s)
Replace the region from the input text object. The area label.substring(startIndex, endIndex) is replaced from the label of the text object.

Overrides:
replaceSelection in class IlvTextEditor
Parameters:
text - The text object
startIndex - The index of the first character to be replaced.
endIndex - The index of the first character that is not anymore replaced.
s - The replacement string.
Since:
JViews 8.0

replaceSelection

protected void replaceSelection(IlvTextInterface text,
                                int startIndex,
                                int endIndex,
                                AttributedString s)
Replace the region from the input text object. The area label.substring(startIndex, endIndex) is replaced from the label of the text object.

Overrides:
replaceSelection in class IlvTextEditor
Parameters:
text - The text object
startIndex - The index of the first character to be replaced.
endIndex - The index of the first character that is not anymore replaced.
s - The replacement string as attributed text.
Since:
JViews 8.1

copySelection

protected void copySelection(IlvTextInterface text,
                             int startIndex,
                             int endIndex)
Copies the region from the input text object to the clipboard. The area label.substring(startIndex, endIndex) is copied from the label of the text object to the clipboard.

Overrides:
copySelection in class IlvTextEditor
Parameters:
text - The text object
startIndex - The index of the first character to be removed.
endIndex - The index of the first character that is not anymore removed.
Since:
JViews 8.1


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.