|
BioLegato 0.7.0 GDE Canvas plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.biolegato.gdesupport.canvas.textarea.BLComponent
org.biolegato.gdesupport.canvas.textarea.BLTextArea
org.biolegato.gdesupport.canvas.textarea.GDETextArea
public class GDETextArea
Custom text area for allowing box selection
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class org.biolegato.gdesupport.canvas.textarea.BLTextArea |
|---|
blTextAreaSelf, column, currentMap, cursorListeners, defaultColourMap, defaultGreyColourMap, greyedOutMap, insertMode, invalidzone, modeListeners, normalMap, popup, row, selectionMouse, selectionMove |
| Fields inherited from class org.biolegato.gdesupport.canvas.textarea.BLComponent |
|---|
columnWidth, rowHeight |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GDETextArea()
Constructs a new instance of GDETextArea. |
|
| Method Summary | |
|---|---|
void |
changeCase()
Changes the case of the currently selected sequence (if the sequence is of inconsistent case, the case of the entire sequence is changed to the opposite case of the first character in the sequence. |
void |
cut()
Cuts content from the current Editable object. |
boolean |
delete(int x,
int y,
int w,
int h)
Removes text from a document. |
boolean |
getProtectAlignment(org.biolegato.core.data.sequence.Sequence seq,
java.lang.String text)
Checks a string against a sequence's alignment gap protection settings. |
boolean |
getProtectAmbiguous(org.biolegato.core.data.sequence.Sequence seq,
java.lang.String text)
Checks a string against a sequence's ambiguous character protection settings. |
boolean |
getProtectUnambiguous(org.biolegato.core.data.sequence.Sequence seq,
java.lang.String text)
Checks a string against a sequence's unambiguous character protection settings. |
boolean |
insert(int x,
int y,
java.lang.String text)
Inserts a string into the textarea's underlying SeqDoc (NOTE: this should ONLY be called by sub-methods) |
boolean |
isProtectionsOn(org.biolegato.core.data.sequence.Sequence seq,
java.lang.String text)
Checks a string against all of a sequence's protection settings. |
boolean |
isSelectedLine(int y)
This function is used to test if a line is selected. |
void |
moveSelection(int newx,
int newy)
Moves the start of a selection to a new co-ordinate |
void |
paste()
Pastes content into the current Editable object. |
boolean |
pdelete(int x,
int y,
int w,
int h)
Removes text from one line of a document (doesn't do any group processing - permission processing only). |
boolean |
pdeleteSelection()
Used to delete the current selection before an insertion or as part of a deletion. |
void |
stretchSelection(int newx,
int newy)
Stretches the selection by changing the co-ordinate of the selection's end |
| Methods inherited from class org.biolegato.gdesupport.canvas.textarea.BLTextArea |
|---|
addCursorListener, addModeListener, addPopupMenuItem, changePosition, copy, deleteSelection, focusGained, focusLost, getData, getInsertMode, getMaxSX, getMaxSY, getMinSX, getMinSY, getSeqDoc, getSX1, getSX2, getSY1, getSY2, insert, isEmptySelection, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintComponent, refreshSize, removePopupMenuItem, resetSelection, selectAll, sequenceAdded, sequenceChanged, sequenceRemoved, setBackground, setColourMap, setFont, setGreyColourMap |
| Methods inherited from class org.biolegato.gdesupport.canvas.textarea.BLComponent |
|---|
column2X, columnSize, maxColumns, maxRows, row2Y, rowSize, X2Column, Y2Row |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GDETextArea()
| Method Detail |
|---|
public void changeCase()
public void cut()
cut in interface Editablecut in class BLTextAreapublic void paste()
paste in interface Editablepaste in class BLTextAreapublic boolean pdeleteSelection()
public boolean isSelectedLine(int y)
isSelectedLine in class BLTextAreay - the Y co-ordinate (or line number) to test.
public void moveSelection(int newx,
int newy)
moveSelection in class BLTextAreanewx - the new X co-ordinate the selection has been moved to.newy - the new Y co-ordinate the selection has been moved to.
public void stretchSelection(int newx,
int newy)
stretchSelection in class BLTextAreanewx - the new X co-ordinate the selection has been stretched to.newy - the new Y co-ordinate the selection has been stretched to.
public boolean isProtectionsOn(org.biolegato.core.data.sequence.Sequence seq,
java.lang.String text)
seq - the sequence to test against.text - the text to test.
public boolean getProtectAlignment(org.biolegato.core.data.sequence.Sequence seq,
java.lang.String text)
seq - the sequence to test against.text - the text to test.
public boolean getProtectAmbiguous(org.biolegato.core.data.sequence.Sequence seq,
java.lang.String text)
seq - the sequence to test against.text - the text to test.
public boolean getProtectUnambiguous(org.biolegato.core.data.sequence.Sequence seq,
java.lang.String text)
seq - the sequence to test against.text - the text to test.
public boolean insert(int x,
int y,
java.lang.String text)
insert in class BLTextAreax - the X co-ordinate (column number) to insert the character at.y - the Y co-ordinate (row number) to insert the character at.text - the text to insert.
public boolean delete(int x,
int y,
int w,
int h)
delete in class BLTextAreax - the X-offset/column number to start the deletion from.y - the Y-offset/line number to delete characters from.w - the width of the deletion (measured in characters along the X-axis).h - the height of the deletion (measured in sequences along the Y-axis).
public boolean pdelete(int x,
int y,
int w,
int h)
x - the X-offset/column number to start the deletion from.y - the Y-offset/line number to delete characters from.w - the width of the deletion (measured in characters along the X-axis).
|
BioLegato 0.7.0 GDE Canvas plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||