|
BioLegato 0.7.3 GDE 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
javax.swing.Box
org.biolegato.gdesupport.canvas.GDECanvas
public class GDECanvas
The GDE-style sequence-based canvas class
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.Box |
|---|
javax.swing.Box.AccessibleBox, javax.swing.Box.Filler |
| 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 | |
|---|---|
javax.swing.AbstractAction |
changeCaseAction
The action "Change Case" |
javax.swing.AbstractAction |
copyAction
The action "Copy" |
javax.swing.AbstractAction |
cutAction
The action "Cut" |
GDECanvas |
gdeCanvasSelf
Self-reference for inner classes. |
javax.swing.AbstractAction |
joinAction
Action for joining split canvases |
javax.swing.AbstractAction |
pasteAction
The action "Paste" |
javax.swing.AbstractAction |
redoAction
The action "Redo" |
javax.swing.AbstractAction |
undoAction
The action "Undo" |
| Fields inherited from class javax.swing.Box |
|---|
accessibleContext |
| Fields inherited from class javax.swing.JComponent |
|---|
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 | |
|---|---|
GDECanvas()
Creates a new instance of BLGDECanvas |
|
| Method Summary | |
|---|---|
void |
addUndo(Undoable undo)
Adds an undoable object to the undo stack. |
void |
copy()
Copies content from the current Editable object to the clipboads. |
void |
cursorChange(BLTextArea source,
int column,
int row)
Receives cursor updates for use in the status bar. |
void |
cut()
Cuts content from the current Editable object to the clipboads. |
static Cell[] |
getClipboard()
Obtains the current contents of the clipboard (null if empty). |
Cell[] |
getData()
Returns the current/selected data in the canvas. |
GDEModel |
getDataModel()
Passes the current datamodel to any GDE canvas related components |
java.lang.String |
getTabName()
Returns the name to display in the canvas tab for |
void |
insertionMode(boolean mode)
Receives insertion mode change updates for use in the status bar. |
void |
paste()
Pastes the current clipboard into the current Editable object. |
void |
propertiesUpdate(java.lang.String key,
java.lang.String value)
Used to intercept font size changes (since the font size is stored in the properties) |
void |
readFile(java.lang.String format,
java.io.File currentFile)
Reads a file into the canvas |
boolean |
redo()
Redoes data modification. |
void |
selectionMade(GDETextArea source)
Manages mutual exclusion between the textarea and the list |
static void |
setClipboard(Cell[] copy)
Changes the current contents of the clipboard. |
boolean |
undo()
Undoes data modification. |
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
Clears the data collector when an item is selected from the sequence list |
void |
writeFile(java.lang.String format,
java.io.File currentFile)
Writes a file out from the canvas |
| Methods inherited from class javax.swing.Box |
|---|
createGlue, createHorizontalBox, createHorizontalGlue, createHorizontalStrut, createRigidArea, createVerticalBox, createVerticalGlue, createVerticalStrut, getAccessibleContext, setLayout |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, paintComponent, 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, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, 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, 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 |
| Field Detail |
|---|
public final javax.swing.AbstractAction joinAction
public final javax.swing.AbstractAction cutAction
public final javax.swing.AbstractAction copyAction
public final javax.swing.AbstractAction pasteAction
public final javax.swing.AbstractAction undoAction
public final javax.swing.AbstractAction redoAction
public final javax.swing.AbstractAction changeCaseAction
public final GDECanvas gdeCanvasSelf
| Constructor Detail |
|---|
public GDECanvas()
| Method Detail |
|---|
public java.lang.String getTabName()
getTabName in interface org.biolegato.core.plugintypes.DataCanvaspublic void copy()
public void cut()
public void paste()
public void cursorChange(BLTextArea source,
int column,
int row)
cursorChange in interface CursorListenersource - the source of the cursor change.column - the new column of the cursor.row - the new row of the cursor.public void insertionMode(boolean mode)
insertionMode in interface ModeListenermode - the new insertion mode status.
public void propertiesUpdate(java.lang.String key,
java.lang.String value)
propertiesUpdate in interface org.biolegato.core.properties.PropertiesListenerkey - the key of the property changed.value - the new value of the property.public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged in interface javax.swing.event.ListSelectionListenere - currently ignoredpublic void selectionMade(GDETextArea source)
source - the source of the eventpublic boolean undo()
public boolean redo()
public void addUndo(Undoable undo)
undo - the object to add to the stack.public static Cell[] getClipboard()
public static void setClipboard(Cell[] copy)
copy - the new content for the clipboard.public GDEModel getDataModel()
public Cell[] getData()
public void readFile(java.lang.String format,
java.io.File currentFile)
readFile in interface org.biolegato.core.plugintypes.DataCanvasformat - the file format to use for parsing the file.currentFile - the file to read in.
public void writeFile(java.lang.String format,
java.io.File currentFile)
writeFile in interface org.biolegato.core.plugintypes.DataCanvasformat - the file format to use for writing the file.currentFile - the file to write out.
|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||