public class VARNAPanel extends JPanel
JFrame
would be the following:
VARNAPanel _rna = new VARNAPanel("CCCCAUAUGGGGACC","((((....))))...");
this.getContentPane().add(_rna);
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
fr.orsay.lri.varna.models.rna.ModeleBase |
_hoveredBase |
(package private) UndoManager |
_manager |
(package private) Point2D.Double |
_target |
(package private) Point2D.Double |
_target2 |
static String |
VARNA_SESSION_EXTENSION |
static String |
XML_ELEMENT_NAME |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
VARNAPanel()
Creates an RNA 2D panel with initially displays the empty structure.
|
VARNAPanel(Reader r) |
VARNAPanel(Reader r,
int drawMode) |
VARNAPanel(Reader r,
int drawMode,
String title) |
VARNAPanel(fr.orsay.lri.varna.models.rna.RNA r)
Creates a VARNAPanel instance, and displays an RNA.
|
VARNAPanel(String seq,
String str)
Creates an RNA 2D panel, and creates and displays an RNA coupled with its
secondary structure formatted as a well-balanced parenthesis with dots
word (DBN format).
|
VARNAPanel(String seq,
String str,
int drawMode)
Creates a VARNAPanel instance, and creates and displays an RNA coupled
with its secondary structure formatted as a well-balanced parenthesis
with dots word (DBN format).
|
VARNAPanel(String seq,
String str,
int drawMode,
String title)
Creates a VARNAPanel instance, and creates and displays an RNA coupled
with its secondary structure formatted as a well-balanced parenthesis
with dots word (DBN format).
|
VARNAPanel(String seq1,
String struct1,
String seq2,
String struct2,
int drawMode,
String title) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(fr.orsay.lri.varna.models.annotations.TextAnnotation textAnnotation) |
void |
addHighlightRegion(fr.orsay.lri.varna.models.annotations.HighlightRegionAnnotation n) |
void |
addHighlightRegion(int i,
int j) |
void |
addHighlightRegion(int i,
int j,
Color fill,
Color outline,
double radius) |
void |
addRNAListener(fr.orsay.lri.varna.interfaces.InterfaceVARNARNAListener v) |
void |
addSelectionListener(fr.orsay.lri.varna.interfaces.InterfaceVARNASelectionListener v) |
void |
addToSelection(Collection<? extends Integer> indices) |
void |
addToSelection(int i) |
void |
addVARNABasesListener(fr.orsay.lri.varna.interfaces.InterfaceVARNABasesListener l) |
void |
addVARNAListener(fr.orsay.lri.varna.interfaces.InterfaceVARNAListener v) |
(package private) Point2D.Double |
buildCaptionPosition(fr.orsay.lri.varna.models.rna.ModeleBase mb,
double scaleFactor,
double heightEstimate) |
void |
centerViewOn(double x,
double y) |
void |
checkTranslation()
Checks if the current translation doesn't "kick" the whole RNA out of the
panel, and corrects the situation if necessary.
|
void |
clearSelection()
Stops highlighting bases
|
void |
drawBackbone(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D,
Point2D.Double[] newCoords,
double newRadius,
double _scaleFactor) |
void |
drawBBox(boolean on)
Toggles on/off a rectangular outline of the bounding box.
|
void |
drawBorder(boolean on)
Toggles on/off a rectangular outline of the border.
|
(package private) void |
drawChemProbAnnotation(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D,
fr.orsay.lri.varna.models.annotations.ChemProbAnnotation cpa,
Point2D.Double anchor,
double scaleFactor) |
void |
drawColorMap(boolean draw) |
void |
drawRegionHighlightsAnnotation(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D,
Point2D.Double[] realCoords,
Point2D.Double[] realCenters,
double scaleFactor) |
void |
drawRNA()
Redraws the current RNA.
|
void |
drawRNA(Reader r,
int drawMode) |
void |
drawRNA(fr.orsay.lri.varna.models.rna.RNA r)
Sets the RNA secondary structure to be drawn in this panel, using the
current drawing algorithm.
|
void |
drawRNA(fr.orsay.lri.varna.models.rna.RNA r,
int drawMode)
Sets the RNA secondary structure to be drawn in this panel, using a given
layout algorithm.
|
void |
drawRNA(String seq,
String str)
Sets the RNA secondary structure to be drawn in this panel, using the
default layout algorithm.
|
void |
drawRNA(String seq,
String str,
int drawMode)
Sets the RNA secondary structure to be drawn in this panel, using a given
layout algorithm.
|
void |
drawRNA(String firstSeq,
String firstStruct,
String secondSeq,
String secondStruct,
int drawMode)
When comparison mode is ON, sets the two RNA secondary structure to be
drawn in this panel, using a given layout algorithm.
|
void |
drawRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target)
Draws a secondary structure of RNA using the default drawing algorithm
and displays it, using an interpolated transition between the previous
one and the new one.
|
void |
drawRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target,
int drawMode,
fr.orsay.lri.varna.models.rna.Mapping m)
Draws a secondary structure of RNA using a given drawing algorithm and
displays it, using an interpolated transition between the previous one
and the new one.
|
void |
drawRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target,
fr.orsay.lri.varna.models.rna.Mapping m)
Draws a secondary structure of RNA using the default drawing algorithm
and displays it, using an interpolated transition between the previous
one and the new one.
|
void |
drawRNAInterpolated(String seq,
String str)
Draws a secondary structure of RNA using the default drawing algorithm
and displays it, using an interpolated transition between the previous
one and the new one.
|
void |
drawRNAInterpolated(String seq,
String str,
int drawMode)
Draws a secondary structure of RNA using a given algorithm and displays
it, using an interpolated transition between the previous one and the new
one.
|
void |
drawRNAInterpolated(String seq,
String str,
int drawMode,
fr.orsay.lri.varna.models.rna.Mapping m)
Draws a secondary structure of RNA using a given drawing algorithm and
displays it, using an interpolated transition between the previous one
and the new one.
|
void |
drawRNAInterpolated(String seq,
String str,
fr.orsay.lri.varna.models.rna.Mapping m)
Draws a secondary structure of RNA using the default drawing algorithm
and displays it, using an interpolated transition between the previous
one and the new one.
|
void |
emitWarning(String warning)
Displays a warning message through a modal dialog if warnings are set to
be displayed.
|
void |
eraseSequence() |
void |
errorDialog(Exception error)
Pops up an error Dialog displaying an exception in an human-readable way.
|
void |
errorDialog(Exception error,
Component c)
Pops up an error Dialog displaying an exception in an human-readable way
if errors are set to be displayed.
|
static void |
errorDialogStatic(Exception error,
Component c)
Pops up an error Dialog displaying an exception in an human-readable way.
|
void |
fireBaseClicked(fr.orsay.lri.varna.models.rna.ModeleBase mb,
MouseEvent me) |
void |
fireHoverChanged(fr.orsay.lri.varna.models.rna.ModeleBase mold,
fr.orsay.lri.varna.models.rna.ModeleBase mnew) |
void |
fireLayoutChanged() |
void |
fireLayoutChanged(Hashtable<Integer,Point2D.Double> movedPositions) |
void |
fireSelectionChanged(fr.orsay.lri.varna.models.BaseList mold,
fr.orsay.lri.varna.models.BaseList mnew) |
void |
fireSequenceChanged(int index,
String oldseq,
String newseq) |
void |
fireStructureChanged(Set<fr.orsay.lri.varna.models.rna.ModeleBP> current,
Set<fr.orsay.lri.varna.models.rna.ModeleBP> addedBasePairs,
Set<fr.orsay.lri.varna.models.rna.ModeleBP> removedBasePairs) |
void |
fireTranslationChanged() |
void |
fireUINewStructure(fr.orsay.lri.varna.models.rna.RNA r) |
void |
fireZoomLevelChanged(double d) |
fr.orsay.lri.varna.models.annotations.TextAnnotation |
get_selectedAnnotation() |
Color |
getBackboneColor()
Returns the color used to draw backbone bounds.
|
fr.orsay.lri.varna.models.rna.ModeleBase |
getBaseAt(Point2D.Double po) |
ArrayList<Integer> |
getBasesInRectangle(Rectangle rec) |
ArrayList<Integer> |
getBasesInRectangleDiff(Rectangle recIn,
Rectangle recOut) |
Color |
getBondColor()
Returns the color used to display hydrogen bonds (base pairings)
|
Dimension |
getBorderSize()
Returns the size of the border, i.e. the empty space between the end of
the drawing area
|
double |
getBPHeightIncrement()
For the LINE_MODE drawing algorithm, sets the base pair height increment,
i.e. the vertical distance between two nested arcs.
|
fr.orsay.lri.varna.models.VARNAConfig.BP_STYLE |
getBPStyle()
Returns the base-pair representation style
|
boolean |
getColorGapsBases()
Returns true if a special color is used for drawing "Gaps" bases in
comparison mode
|
fr.orsay.lri.varna.models.rna.ModeleColorMap |
getColorMap() |
String |
getColorMapCaption() |
boolean |
getColorMapVisible() |
boolean |
getColorSpecialBases()
Returns true if a special color is used as inner color for non-standard
base
|
fr.orsay.lri.varna.models.VARNAConfig |
getConfig()
Returns the current VARNA Panel configuration.
|
boolean |
getDrawBackbone() |
int |
getDrawMode()
Returns the current algorithm used for drawing the structure
|
Rectangle2D.Double |
getExtendedRNABBox() |
boolean |
getFlatExteriorLoop() |
Color |
getGapsBasesColor()
Returns the color used to draw 'Gaps' bases in comparison mode
|
int |
getInnerHeight()
Returns the "real pixels" height of the drawing surface for our RNA.
|
int |
getInnerWidth()
Returns the "real pixels" width of the drawing surface for our RNA.
|
Point2D.Double |
getLastSelectedPosition() |
int |
getLeftOffset()
Returns the "real pixels" x-coordinate of the RNA.
|
ArrayList<fr.orsay.lri.varna.models.annotations.TextAnnotation> |
getListeAnnotations() |
fr.orsay.lri.varna.models.annotations.TextAnnotation |
getNearestAnnotation(int x,
int y) |
Integer |
getNearestBase()
Returns the index of the currently selected base, defaulting to the
closest base to the last mouse-click.
|
fr.orsay.lri.varna.models.rna.ModeleBase |
getNearestBase(int x,
int y) |
fr.orsay.lri.varna.models.rna.ModeleBase |
getNearestBase(int x,
int y,
boolean always,
boolean onlyPaired) |
int |
getNearestBaseIndex(int x,
int y,
boolean always,
boolean onlyPaired) |
Color |
getNonStandardBasesColor()
Returns the color used to draw non-standard bases
|
int |
getNumPeriod()
Returns the current numbering period.
|
Point2D.Double |
getOffsetPanel()
Returns the shifting of the origin of the Panel in zoom mode
|
double |
getOrientation() |
fr.orsay.lri.varna.views.VueMenu |
getPopup()
Returns the popup menu used for user mouse iteractions
|
fr.orsay.lri.varna.views.VueMenu |
getPopupMenu()
Returns this panel's UI menu
|
Point2D.Double[] |
getRealCoords()
Returns the coordinates of the currently displayed RNA
|
fr.orsay.lri.varna.models.rna.RNA |
getRNA()
Returns the current RNA model
|
fr.orsay.lri.varna.models.BaseList |
getSelection() |
ArrayList<Integer> |
getSelectionIndices() |
boolean |
getShowNonCanonicalBP()
Return the current display status for non-canonical base-pairs
|
boolean |
getShowNonPlanarBP()
Return the current display status for non-planar base-pairs
|
boolean |
getShowWarnings()
Get current warning display status
|
String |
getTitle()
Returns the title of this panel
|
Color |
getTitleColor()
Returns the color used to draw the title
|
Font |
getTitleFont()
Returns the font currently used for rendering the title.
|
int |
getTopOffset()
Returns the "real pixels" y-coordinate of the RNA.
|
Point |
getTranslation()
Returns the translation used for zooming in and out
|
boolean |
getUseBaseColorsForBPs()
Returns true if current base color is used as inner color for drawing
base-pairs
|
fr.orsay.lri.varna.views.VueUI |
getVARNAUI()
Returns the view associated with user interactions
|
Rectangle2D.Double |
getViewClip() |
double |
getZoom()
Returns the current zoom factor
|
Rectangle |
getZoomedInTranslationBox() |
double |
getZoomIncrement()
Returns the atomic zoom factor step, or increment.
|
void |
globalRescale(double factor) |
void |
globalRotation(Double angleDegres)
Rotates the RNA coordinates by a certain angle
|
void |
highlightSelectedAnnotation() |
void |
highlightSelectedBase(fr.orsay.lri.varna.models.rna.ModeleBase m)
Starts highlighting the selected base.
|
void |
highlightSelectedStem(fr.orsay.lri.varna.models.rna.ModeleBase m)
Starts highlighting the selected base.
|
static fr.orsay.lri.varna.models.FullBackup |
importSession(InputStream fis,
String path) |
static fr.orsay.lri.varna.models.FullBackup |
importSession(String path) |
boolean |
isAutoCentered()
Returns the current state of auto centering mode.
|
boolean |
isComparisonMode()
Checks if the current mode is the "comparison" mode
|
boolean |
isErrorsOn()
Checks whether errors are to be displayed
|
boolean |
isInSelection(int i) |
boolean |
isInterpolationInProgress()
Checks whether an interpolated transition bewteen two RNAs is occurring.
|
boolean |
isModifiable()
Returns current modification status
|
boolean |
isOutOfFrame()
Checks whether the drawn RNA is too large to be displayed, allowing for
shifting mouse interactions.
|
void |
loadFile(String path) |
void |
loadFile(String path,
boolean interpolate) |
fr.orsay.lri.varna.models.FullBackup |
loadSession(String path) |
void |
lockScrolling() |
Point2D.Double |
logicToPanel(Point2D.Double logicPoint) |
void |
paintComponent(Graphics g) |
void |
paintComponent(Graphics g,
boolean transparentBackground) |
Point2D.Double |
panelToLogicPoint(Point2D.Double p) |
void |
readValues(Reader r) |
void |
redo() |
boolean |
removeAnnotation(fr.orsay.lri.varna.models.annotations.TextAnnotation textAnnotation) |
void |
removeColorMap() |
void |
removeFromSelection(int i) |
void |
removeHighlightRegion(fr.orsay.lri.varna.models.annotations.HighlightRegionAnnotation n) |
void |
removeLink() |
void |
removeSelectedAnnotation() |
void |
removeSelectionRectangle() |
void |
renderComponent(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D,
boolean transparentBackground,
double scaleFactor)
Draws current RNA structure in a given Graphics "device".
|
Rectangle2D.Double |
renderRNA(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D,
Rectangle2D.Double bbox) |
Rectangle2D.Double |
renderRNA(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D,
Rectangle2D.Double bbox,
boolean localView,
boolean autoCenter) |
void |
reset()
Resets the visual aspects (Zoom factor, shift) for the Panel.
|
void |
resetAnnotationHighlight()
Stops highlighting bases
|
void |
resetListeAnnotations() |
void |
restoreSelection() |
void |
saveSelection() |
void |
saveSession(String path) |
void |
set_selectedAnnotation(fr.orsay.lri.varna.models.annotations.TextAnnotation annotation) |
void |
setAutoCenter(boolean center)
Sets the current state of auto centering mode.
|
void |
setBackboneColor(Color backbone_color)
Sets the color to be used for drawing backbone interactions.
|
void |
setBackground(Color c)
Sets the background color
|
void |
setBaseFontSize(Float size)
Sets the font size for displaying bases
|
void |
setBaseFontStyle(int style)
Sets the font style for displaying bases
|
void |
setBaseInnerColor(Color c) |
void |
setBaseNameColor(Color c) |
void |
setBaseNumbersColor(Color c) |
void |
setBaseOutlineColor(Color c) |
void |
setBondColor(Color bond_color)
Sets the color used to display hydrogen bonds (base pairings)
|
void |
setBorderSize(Dimension b)
Sets the size of the border, i.e. the empty space between the end of the
drawing area and the actual border.
|
void |
setBPHeightIncrement(double inc)
Sets the base pair height increment, i.e. the vertical distance between
two arcs to be used in LINE_MODE.
|
void |
setBPStyle(fr.orsay.lri.varna.models.VARNAConfig.BP_STYLE st)
Sets the base-pair representation style
|
void |
setColorGapsBases(boolean on)
Toggles on/off using a special color used for drawing "Gaps" bases in
comparison mode
|
void |
setColorMap(fr.orsay.lri.varna.models.rna.ModeleColorMap cm) |
void |
setColorMapCaption(String caption) |
void |
setColorMapMaxValue(double d) |
void |
setColorMapMinValue(double d) |
void |
setColorMapValues(Double[] values) |
void |
setColorMapVisible(boolean b) |
void |
setColorNonStandardBases(boolean on)
Toggles on/off using a special color used for drawing "non-standard"
bases
|
void |
setConfig(fr.orsay.lri.varna.models.VARNAConfig cfg) |
void |
setDefaultBPColor(Color bond_color)
Sets the new color to be used for hydrogen bonds (base pairings)
|
void |
setDestinationLink(Point2D.Double p) |
void |
setDrawBackbone(boolean b) |
void |
setErrorsOn(boolean on)
Sets whether errors are to be displayed
|
void |
setFlatExteriorLoop(boolean on) |
void |
setGapsBasesColor(Color c)
Sets the color to use for 'Gaps' bases in comparison mode
|
void |
setHoverBase(fr.orsay.lri.varna.models.rna.ModeleBase m) |
void |
setLastSelectedPosition(Point2D.Double p) |
void |
setModifiable(boolean modifiable)
Toggles modifications on and off
|
void |
setNearestBase(Integer base)
Sets the index of the currently selected base.
|
void |
setNonStandardBasesColor(Color basesColor)
Sets the color used to draw non-standard bases
|
void |
setNumbersFontSize(Float size)
Sets the font size for displaying base numbers
|
void |
setNumPeriod(int n)
Sets the distance between consecutive base numbers.
|
void |
setOriginLink(Point2D.Double p) |
void |
setRealCoords(Point2D.Double[] coords)
Sets the coordinates of the currently displayed RNA
|
void |
setSelection(ArrayList<Integer> indices) |
void |
setSelection(Collection<? extends fr.orsay.lri.varna.models.rna.ModeleBase> mbs) |
void |
setSelectionRectangle(Rectangle rec) |
void |
setSequence(String s) |
void |
setShowNonCanonicalBP(boolean on)
Toggles on/off displaying non-canonical base-pairs
|
void |
setShowNonPlanarBP(boolean on)
Toggles on/off displaying "non-planar" base-pairs
|
void |
setShowWarnings(boolean on)
Toggles on/off displaying warnings
|
void |
setTitle(String title)
Sets the panel's title, giving a short description of the RNA secondary
structure.
|
void |
setTitleColor(Color title_color)
Sets the color used to draw the title
|
void |
setTitleFont(Font font)
Sets the font used for rendering the title.
|
void |
setTitleFontColor(Color newColor)
Sets the color to be used for the title.
|
void |
setTitleFontFamily(String newFamily)
Sets the new font family to be used for the title.
|
void |
setTitleFontSize(float newSize)
Sets the new size of the title font.
|
void |
setTitleFontStyle(int newStyle)
Sets the new style of the title font.
|
void |
setTranslation(Point trans)
Sets the translation used for zooming in and out
|
void |
setUseBaseColorsForBPs(boolean on)
Toggles on/off using base inner color for drawing base-pairs
|
void |
setZoom(Object _zoom)
Sets the current zoom factor
|
void |
setZoomIncrement(double amount)
Sets the atomic zoom factor step, or increment.
|
void |
setZoomIncrement(Object amount)
Sets the atomic zoom factor step, or increment.
|
void |
showRNA(fr.orsay.lri.varna.models.rna.RNA r)
Sets the RNA to be displayed within this Panel.
|
void |
showRNA(fr.orsay.lri.varna.models.rna.RNA t,
fr.orsay.lri.varna.models.VARNAConfig cfg) |
void |
showRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target)
Simply displays (does not redraw) a secondary structure , using an
interpolated transition between the previous one and the new one.
|
void |
showRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target,
fr.orsay.lri.varna.models.rna.Mapping m)
Simply displays (does not redraw) a secondary structure , using an
interpolated transition between the previous one and the new one.
|
void |
showRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target,
fr.orsay.lri.varna.models.VARNAConfig cfg,
fr.orsay.lri.varna.models.rna.Mapping m) |
void |
toggleDrawOutlineBase() |
void |
toggleFillBase() |
void |
toggleSelection(Collection<? extends Integer> indices) |
void |
toggleSelection(int i) |
void |
toXML(PrintWriter out) |
void |
toXML(String path) |
void |
toXML(TransformerHandler hd) |
Point2D.Double |
transformCoord(Point2D.Double coordDebut) |
Point2D.Double |
transformCoord(Point2D.Double coordDebut,
double offX,
double offY,
double rnaBBoxX,
double rnaBBoxY,
double scaleFactor) |
void |
undo() |
void |
unlockScrolling() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, 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, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
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, transferFocusDownCycle, validate, validateTree
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, transferFocusBackward, transferFocusUpCycle
UndoManager _manager
Point2D.Double _target
Point2D.Double _target2
public static String VARNA_SESSION_EXTENSION
public fr.orsay.lri.varna.models.rna.ModeleBase _hoveredBase
public static String XML_ELEMENT_NAME
public VARNAPanel()
fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
public VARNAPanel(String seq, String str) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
seq
- The raw nucleotide sequencestr
- The secondary structure in DBN formatfr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
public VARNAPanel(String seq, String str, int drawMode) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
seq
- The raw nucleotide sequencestr
- The secondary structure in DBN formatdrawMode
- The drawing modefr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
RNA.DRAW_MODE_RADIATE
,
RNA.DRAW_MODE_CIRCULAR
,
RNA.DRAW_MODE_NAVIEW
public VARNAPanel(Reader r) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength, fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax
fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax
public VARNAPanel(Reader r, int drawMode) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength, fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax
fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax
public VARNAPanel(Reader r, int drawMode, String title) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength, fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax
fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax
public VARNAPanel(fr.orsay.lri.varna.models.rna.RNA r)
r
- The RNA to be displayed within this panelpublic VARNAPanel(String seq, String str, int drawMode, String title) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
seq
- The raw nucleotide sequencestr
- The secondary structure in DBN formatdrawMode
- The drawing modetitle
- The panel titlefr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
RNA.DRAW_MODE_CIRCULAR
,
RNA.DRAW_MODE_RADIATE
,
RNA.DRAW_MODE_NAVIEW
public void setOriginLink(Point2D.Double p)
public void setDestinationLink(Point2D.Double p)
public void removeLink()
public void undo()
public void redo()
public void setTitleFontStyle(int newStyle)
newStyle
- An int that describes the new font style ("PLAIN","BOLD",
"BOLDITALIC", or "ITALIC")public void setTitleFontSize(float newSize)
newSize
- The new size of the title fontpublic void setTitleFontFamily(String newFamily)
newFamily
- New font family used for the titlepublic void setTitleFontColor(Color newColor)
newColor
- A color used to draw the titlepublic void setBaseFontSize(Float size)
size
- Font size for base captionpublic void setNumbersFontSize(Float size)
size
- Font size for base captionpublic void setBaseFontStyle(int style)
style
- An int that describes the new font style ("PLAIN","BOLD",
"BOLDITALIC", or "ITALIC")public void setTitle(String title)
title
- The new titlepublic void setNumPeriod(int n)
n
- New numbering periodpublic int getNumPeriod()
public void lockScrolling()
public void unlockScrolling()
void drawChemProbAnnotation(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D, fr.orsay.lri.varna.models.annotations.ChemProbAnnotation cpa, Point2D.Double anchor, double scaleFactor)
Point2D.Double buildCaptionPosition(fr.orsay.lri.varna.models.rna.ModeleBase mb, double scaleFactor, double heightEstimate)
public Rectangle2D.Double getExtendedRNABBox()
public void drawBackbone(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D, Point2D.Double[] newCoords, double newRadius, double _scaleFactor)
public Point2D.Double logicToPanel(Point2D.Double logicPoint)
public Rectangle2D.Double renderRNA(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D, Rectangle2D.Double bbox)
public Rectangle2D.Double renderRNA(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D, Rectangle2D.Double bbox, boolean localView, boolean autoCenter)
public void centerViewOn(double x, double y)
public fr.orsay.lri.varna.models.rna.ModeleBase getBaseAt(Point2D.Double po)
public void setColorMapValues(Double[] values)
public void setColorMapMaxValue(double d)
public void setColorMapMinValue(double d)
public fr.orsay.lri.varna.models.rna.ModeleColorMap getColorMap()
public void setColorMap(fr.orsay.lri.varna.models.rna.ModeleColorMap cm)
public void setColorMapCaption(String caption)
public String getColorMapCaption()
public void drawColorMap(boolean draw)
public Point2D.Double panelToLogicPoint(Point2D.Double p)
public Point2D.Double transformCoord(Point2D.Double coordDebut, double offX, double offY, double rnaBBoxX, double rnaBBoxY, double scaleFactor)
public void eraseSequence()
public Point2D.Double transformCoord(Point2D.Double coordDebut)
public void paintComponent(Graphics g)
paintComponent
in class JComponent
public void paintComponent(Graphics g, boolean transparentBackground)
public void renderComponent(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D, boolean transparentBackground, double scaleFactor)
g2D
- A graphical devicetransparentBackground
- Whether the background should be transparent, or drawn.public void drawRegionHighlightsAnnotation(fr.orsay.lri.varna.models.export.VueVARNAGraphics g2D, Point2D.Double[] realCoords, Point2D.Double[] realCenters, double scaleFactor)
public Rectangle2D.Double getViewClip()
public Color getBackboneColor()
public void setBackboneColor(Color backbone_color)
backbone_color
- The new color for the backbone boundspublic Color getBondColor()
public String getTitle()
public void setDefaultBPColor(Color bond_color)
bond_color
- The new color for hydrogen bondspublic void setBorderSize(Dimension b)
b
- The new border sizepublic Dimension getBorderSize()
public void showRNA(fr.orsay.lri.varna.models.rna.RNA r)
r
- An already drawn RNA to display in this panelpublic void drawRNA(String seq, String str) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
((((((((....))))..(((((...))).))))))
true
if the sequence/structure couple could be
parsed into a valid secondary structure, and false
otherwise.seq
- The raw nucleotides sequencestr
- The secondary structurefr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
public void drawRNA(fr.orsay.lri.varna.models.rna.RNA r, int drawMode)
r
- The new secondary structuredrawMode
- The drawing algorithmpublic void drawRNA()
public void drawRNA(fr.orsay.lri.varna.models.rna.RNA r)
r
- The new secondary structurepublic void drawRNA(String seq, String str, int drawMode) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
((((((((....))))..(((((...))).))))))
true
if the sequence/structure couple could be
parsed into a valid secondary structure, and false
otherwise.seq
- The raw nucleotides sequencestr
- The secondary structuredrawMode
- The drawing algorithmfr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
public void drawRNA(Reader r, int drawMode) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength, fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax
fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax
public void drawRNAInterpolated(String seq, String str) throws fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
seq
- Sequencestr
- Structure in dot bracket notationfr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
- If len(seq)!=len(str)public void drawRNAInterpolated(String seq, String str, int drawMode)
seq
- Sequencestr
- Structure in dot bracket notationdrawMode
- The drawing algorithm to be used for the initial placementfr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
- If len(seq)!=len(str)public void drawRNAInterpolated(String seq, String str, fr.orsay.lri.varna.models.rna.Mapping m)
seq
- Sequencestr
- Structure in dot bracket notationm
- A mapping between the currently rendered structure and its
successor (seq,str)fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
- If len(seq)!=len(str)public void drawRNAInterpolated(String seq, String str, int drawMode, fr.orsay.lri.varna.models.rna.Mapping m)
seq
- Sequencestr
- Structure in dot bracket notationdrawMode
- The drawing algorithm to be used for the initial placementm
- A mapping between the currently rendered structure and its
successor (seq,str)public void drawRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target)
target
- Secondary structurepublic void drawRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target, fr.orsay.lri.varna.models.rna.Mapping m)
target
- Secondary structurem
- A mapping between the currently rendered structure and its
successor (seq,str)public void drawRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target, int drawMode, fr.orsay.lri.varna.models.rna.Mapping m)
target
- Secondary structure of RNAdrawMode
- The drawing algorithm to be used for the initial placementm
- A mapping between the currently rendered structure and its
successor (seq,str)public int getDrawMode()
public void showRNA(fr.orsay.lri.varna.models.rna.RNA t, fr.orsay.lri.varna.models.VARNAConfig cfg)
public boolean isInterpolationInProgress()
public void showRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target)
target
- Secondary structure of RNApublic void showRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target, fr.orsay.lri.varna.models.rna.Mapping m)
target
- Secondary structure of RNAm
- A mapping between the currently rendered structure and its
successor (seq,str)fr.orsay.lri.varna.exceptions.ExceptionNonEqualLength
- If len(seq)!=len(str)public void showRNAInterpolated(fr.orsay.lri.varna.models.rna.RNA target, fr.orsay.lri.varna.models.VARNAConfig cfg, fr.orsay.lri.varna.models.rna.Mapping m)
public void drawRNA(String firstSeq, String firstStruct, String secondSeq, String secondStruct, int drawMode)
((((((((....))))..(((((...))).))))))
firstSeq
- The first RNA raw nucleotides sequencefirstStruct
- The first RNA secondary structuresecondSeq
- The second RNA raw nucleotides sequencesecondStruct
- The second RNA secondary structuredrawMode
- The drawing algorithmpublic Point2D.Double[] getRealCoords()
public void setRealCoords(Point2D.Double[] coords)
coords
- New coordinatespublic fr.orsay.lri.varna.views.VueMenu getPopup()
public void setBondColor(Color bond_color)
bond_color
- The color of hydrogen bondspublic Color getTitleColor()
public void setTitleColor(Color title_color)
title_color
- The new color used to draw the titlepublic boolean isAutoCentered()
public void setAutoCenter(boolean center)
center
- New auto-centered statepublic Font getTitleFont()
public void setTitleFont(Font font)
font
- New title fontpublic double getBPHeightIncrement()
public void setBPHeightIncrement(double inc)
inc
- New height incrementpublic Point2D.Double getOffsetPanel()
public fr.orsay.lri.varna.views.VueMenu getPopupMenu()
public double getZoomIncrement()
public void setZoomIncrement(Object amount)
amount
- Atomic zoom factor incrementpublic void setZoomIncrement(double amount)
amount
- Atomic zoom factor incrementpublic double getZoom()
public void setZoom(Object _zoom)
_zoom
- New zoom factorpublic Point getTranslation()
public void setTranslation(Point trans)
trans
- A vector describing the new translationpublic fr.orsay.lri.varna.models.rna.RNA getRNA()
public boolean isOutOfFrame()
public void errorDialog(Exception error)
error
- The exception to display within the Dialogpublic void errorDialog(Exception error, Component c)
error
- The exception to display within the Dialogc
- Parent component for the dialog boxsetErrorsOn(boolean)
public static void errorDialogStatic(Exception error, Component c)
error
- The exception to display within the Dialogc
- Parent component for the dialog boxpublic void emitWarning(String warning)
warning
- A message expliciting the warningsetShowWarnings(boolean)
public void setModifiable(boolean modifiable)
modifiable
- Modification statuspublic boolean isModifiable()
public void reset()
public Color getNonStandardBasesColor()
public void setNonStandardBasesColor(Color basesColor)
basesColor
- The color used to draw non-standard basespublic void checkTranslation()
public Rectangle getZoomedInTranslationBox()
public int getLeftOffset()
public int getInnerWidth()
public int getTopOffset()
public int getInnerHeight()
public boolean isComparisonMode()
public void globalRotation(Double angleDegres)
angleDegres
- Rotation angle, in degreespublic Integer getNearestBase()
public void setNearestBase(Integer base)
base
- Index of the new selected basepublic Color getGapsBasesColor()
public void setGapsBasesColor(Color c)
c
- Color used for 'Gaps'public boolean isErrorsOn()
public void setErrorsOn(boolean on)
on
- New error display statuspublic fr.orsay.lri.varna.views.VueUI getVARNAUI()
public void setUseBaseColorsForBPs(boolean on)
on
- True for using base inner color for drawing base-pairs, false
for classic modepublic boolean getUseBaseColorsForBPs()
public void setColorNonStandardBases(boolean on)
on
- True for using a special color used for drawing "non-standard"
bases, false for classic modepublic boolean getColorSpecialBases()
public void setColorGapsBases(boolean on)
on
- True for using a special color used for drawing "Gaps" bases
in comparison mode, false for classic modepublic boolean getColorGapsBases()
public void setShowWarnings(boolean on)
on
- True to display warnings, false otherwisepublic boolean getShowWarnings()
public void setShowNonCanonicalBP(boolean on)
on
- True to display NC base-pairs, false otherwisepublic boolean getShowNonCanonicalBP()
public void setShowNonPlanarBP(boolean on)
on
- True to display "non-planar" base-pairs, false otherwisepublic boolean getShowNonPlanarBP()
public void setBPStyle(fr.orsay.lri.varna.models.VARNAConfig.BP_STYLE st)
st
- The new base-pair stylepublic fr.orsay.lri.varna.models.VARNAConfig.BP_STYLE getBPStyle()
public fr.orsay.lri.varna.models.VARNAConfig getConfig()
public void setBackground(Color c)
setBackground
in class JComponent
c
- New background colorpublic void highlightSelectedBase(fr.orsay.lri.varna.models.rna.ModeleBase m)
public void highlightSelectedStem(fr.orsay.lri.varna.models.rna.ModeleBase m)
public fr.orsay.lri.varna.models.BaseList getSelection()
public void setSelection(Collection<? extends fr.orsay.lri.varna.models.rna.ModeleBase> mbs)
public ArrayList<Integer> getBasesInRectangleDiff(Rectangle recIn, Rectangle recOut)
public void setSelectionRectangle(Rectangle rec)
public void removeSelectionRectangle()
public void addToSelection(Collection<? extends Integer> indices)
public void addToSelection(int i)
public void removeFromSelection(int i)
public boolean isInSelection(int i)
public void toggleSelection(int i)
public void toggleSelection(Collection<? extends Integer> indices)
public void clearSelection()
public void saveSelection()
public void restoreSelection()
public void resetAnnotationHighlight()
public void drawBBox(boolean on)
on
- True to draw the bounding box, false otherwisepublic void drawBorder(boolean on)
on
- True to draw the bounding box, false otherwisepublic void setBaseInnerColor(Color c)
public void setBaseNumbersColor(Color c)
public void setBaseNameColor(Color c)
public void setBaseOutlineColor(Color c)
public ArrayList<fr.orsay.lri.varna.models.annotations.TextAnnotation> getListeAnnotations()
public void resetListeAnnotations()
public void addAnnotation(fr.orsay.lri.varna.models.annotations.TextAnnotation textAnnotation)
public boolean removeAnnotation(fr.orsay.lri.varna.models.annotations.TextAnnotation textAnnotation)
public fr.orsay.lri.varna.models.annotations.TextAnnotation get_selectedAnnotation()
public void set_selectedAnnotation(fr.orsay.lri.varna.models.annotations.TextAnnotation annotation)
public void removeSelectedAnnotation()
public void highlightSelectedAnnotation()
public boolean getFlatExteriorLoop()
public void setFlatExteriorLoop(boolean on)
public void setLastSelectedPosition(Point2D.Double p)
public Point2D.Double getLastSelectedPosition()
public void setSequence(String s)
public void setColorMapVisible(boolean b)
public boolean getColorMapVisible()
public void removeColorMap()
public void saveSession(String path)
public fr.orsay.lri.varna.models.FullBackup loadSession(String path) throws fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed
fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed
public static fr.orsay.lri.varna.models.FullBackup importSession(String path) throws fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed
fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed
public static fr.orsay.lri.varna.models.FullBackup importSession(InputStream fis, String path) throws fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed
fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed
public void loadFile(String path)
public boolean getDrawBackbone()
public void setDrawBackbone(boolean b)
public void addHighlightRegion(fr.orsay.lri.varna.models.annotations.HighlightRegionAnnotation n)
public void removeHighlightRegion(fr.orsay.lri.varna.models.annotations.HighlightRegionAnnotation n)
public void addHighlightRegion(int i, int j)
public void addHighlightRegion(int i, int j, Color fill, Color outline, double radius)
public void loadFile(String path, boolean interpolate)
public void setConfig(fr.orsay.lri.varna.models.VARNAConfig cfg)
public void toggleDrawOutlineBase()
public void toggleFillBase()
public void readValues(Reader r)
public void addVARNAListener(fr.orsay.lri.varna.interfaces.InterfaceVARNAListener v)
public void fireLayoutChanged()
public void fireUINewStructure(fr.orsay.lri.varna.models.rna.RNA r)
public void fireZoomLevelChanged(double d)
public void fireTranslationChanged()
public void addSelectionListener(fr.orsay.lri.varna.interfaces.InterfaceVARNASelectionListener v)
public void fireSelectionChanged(fr.orsay.lri.varna.models.BaseList mold, fr.orsay.lri.varna.models.BaseList mnew)
public void fireHoverChanged(fr.orsay.lri.varna.models.rna.ModeleBase mold, fr.orsay.lri.varna.models.rna.ModeleBase mnew)
public void addRNAListener(fr.orsay.lri.varna.interfaces.InterfaceVARNARNAListener v)
public void addVARNABasesListener(fr.orsay.lri.varna.interfaces.InterfaceVARNABasesListener l)
public void fireStructureChanged(Set<fr.orsay.lri.varna.models.rna.ModeleBP> current, Set<fr.orsay.lri.varna.models.rna.ModeleBP> addedBasePairs, Set<fr.orsay.lri.varna.models.rna.ModeleBP> removedBasePairs)
public void fireLayoutChanged(Hashtable<Integer,Point2D.Double> movedPositions)
public void fireBaseClicked(fr.orsay.lri.varna.models.rna.ModeleBase mb, MouseEvent me)
public double getOrientation()
public void setHoverBase(fr.orsay.lri.varna.models.rna.ModeleBase m)
public void toXML(String path)
public void toXML(PrintWriter out)
public void toXML(TransformerHandler hd) throws SAXException
SAXException
public fr.orsay.lri.varna.models.annotations.TextAnnotation getNearestAnnotation(int x, int y)
public fr.orsay.lri.varna.models.rna.ModeleBase getNearestBase(int x, int y, boolean always, boolean onlyPaired)
public fr.orsay.lri.varna.models.rna.ModeleBase getNearestBase(int x, int y)
public int getNearestBaseIndex(int x, int y, boolean always, boolean onlyPaired)
public void globalRescale(double factor)