sk.uniba.euromath.editor.textEditor
Interface ITextPieceKeeper

All Superinterfaces:
org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, IAdaptable, IXMLEditPart
All Known Implementing Classes:
TextEditPart

public interface ITextPieceKeeper
extends IXMLEditPart

Keeps piece of rendered text of textual node. This text is localized by locator into segment of one line (segments can be for example at end of paragraph). Properties of this text are held by ITextPieceInfo. Rendered and XSLT transformed text of node can only differ by white spaces, its usual that some XML white spaces are losed(for example in XHTML many white spaces are treated as one).

Author:
Tomáš Studva, Martin Kollár

Field Summary
 
Fields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
 
Method Summary
 ITextPieceKeeper getKeeperInDirection(Direction direction, int xCoordinate)
          Returns keeper located in direction from this keeper at xCoordinate.
 ITextPieceKeeper getNextKeeperInDirection(Direction direction)
          Returns keeper located next in direction to this's.
 ITextPieceSelectionStatus getSelectionStatus()
          Returns status about which text is selected.
 String getText()
          Returns rendered keeper's text.
 ITextPieceContainer getTextContainer()
          Returns ITextPieceContainer where keeper is held.
 ITextLocator getTextLocator()
          Returns ITextLocator for this keeper.
 ITextPieceInfo getTextPieceInfo()
          Returns ITextPieceInfo about keeper's text piece.
 void setTextContainer(ITextPieceContainer container)
          Sets container
 void showSelection()
          Shows(renders) actual selection stored in ITextSelectionStatus.
 
Methods inherited from interface sk.uniba.euromath.editor.xmlEditor.IXMLEditPart
getID
 
Methods inherited from interface org.eclipse.gef.GraphicalEditPart
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
 
Methods inherited from interface org.eclipse.gef.EditPart
activate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getText

String getText()
Returns rendered keeper's text. Same as ITextPieceInfo.getRenderedText()

Returns:
rendered text piece of this keeper.

getTextContainer

ITextPieceContainer getTextContainer()
Returns ITextPieceContainer where keeper is held.

Returns:
container containing this keeper

setTextContainer

void setTextContainer(ITextPieceContainer container)
Sets container


getTextLocator

ITextLocator getTextLocator()
Returns ITextLocator for this keeper.

Returns:
text locator to lacate keeped text piece

getTextPieceInfo

ITextPieceInfo getTextPieceInfo()
Returns ITextPieceInfo about keeper's text piece.

Returns:
info for keeped text

getSelectionStatus

ITextPieceSelectionStatus getSelectionStatus()
Returns status about which text is selected.

Returns:
selection status

showSelection

void showSelection()
Shows(renders) actual selection stored in ITextSelectionStatus.


getNextKeeperInDirection

ITextPieceKeeper getNextKeeperInDirection(Direction direction)
Returns keeper located next in direction to this's.

Parameters:
direction - one of Direction#LEFT, Direction#RIGHT

getKeeperInDirection

ITextPieceKeeper getKeeperInDirection(Direction direction,
                                      int xCoordinate)
Returns keeper located in direction from this keeper at xCoordinate.

Parameters:
direction - Direction#TOP, Direction#BOTTOM
xCoordinate - x coordinate of vertical to find closest keeper in direction


Copyright © 2003-2006 null. All Rights Reserved.