public abstract class GenomicViewHorizontal extends GenomicViewEvents
GenomicViewEvents.GenomicViewKeyListener, GenomicViewEvents.GenomicViewMouseListener, GenomicViewEvents.GenomicViewMouseMotionListener
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected int |
default_tracks_height |
protected static double |
variations_splitter |
end_last_lower_label_x, end_last_upper_label_x
active, bCircular, bDetails, beginPoint, bHorizontal, bInspection, bottomMarkerBounds, bottomPileUpBounds, bottomReferenceBounds, contigLength, currentViewContig, default_border_width, default_feature_size, default_height_top_axis, default_ideogram_height, default_ideogram_label_width, default_ideogram_width, default_left_info_width, default_tracks_width, default_view_height, default_view_width, default_y_bottom_ideogram, default_y_top_ideogram, dim_ideogramview, endPoint, ideogramBounds, ideogramLabelBounds, int_visible_range, isDragging, layout_info, leftLegendBounds, leftMarkerBounds, leftVisible, main_app, marker_state, markers, maxWidth, minViewGenomicRange, minWidth, paintBuffer, paintBufferValid, rangeSelection, rightLegendBounds, rightMarkerBounds, rightVisible, scaleX, scaleY, selected_gene, selectedMarker, selectedSlotIndex, selectedTrackIndex, selectionChangedListeners, showGenes, showLabels, showMarkerLabels, showMarkers, viewHistory
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
GenomicViewHorizontal(VioletApp mainApp) |
Modifier and Type | Method and Description |
---|---|
protected void |
calcSize() |
boolean |
canDrawIPDConsensus() |
void |
drawBackgroundSelections(java.awt.Graphics g)
draw marker lines and selected profile lines
|
protected void |
drawCrossLines(java.awt.Graphics g,
boolean cutLeft,
boolean cutRight,
int x1,
int x2,
int dy,
int y)
draw cross line if the ends are cut
|
protected void |
drawFilteredTrack(java.awt.Graphics g,
java.util.List<Marker> list,
MarkerCollection track,
java.util.ArrayList<java.lang.Integer> track_indexes,
VariableResolutionDataSet slot) |
protected void |
drawFilteredTracks(java.awt.Graphics g) |
void |
drawForegroundSelections(java.awt.Graphics graphics) |
protected void |
drawGene(java.awt.Graphics g,
Marker marker,
boolean is_selected,
java.awt.Color selected_color)
Draws a gene into the graphic context
|
void |
drawGenomicViewToGraphicsContext(java.awt.Graphics g)
Paints the ideogram into the given graphical context.
|
protected void |
drawHorizontalTracksHeader(java.awt.Graphics g)
Draws the labels for each track
|
protected void |
drawIdeogram(java.awt.Graphics g) |
protected void |
drawLabelWithoutCollision(java.awt.Graphics g,
java.lang.String text,
java.awt.Color color,
int x1,
int x2,
int yofs,
java.awt.Rectangle rect,
boolean is_selected) |
protected void |
drawMarkerHorizontal(java.awt.Graphics g,
Marker marker,
java.util.ArrayList<java.lang.Integer> track_indexes,
java.awt.Rectangle rect,
java.awt.Color color,
boolean is_selected,
java.awt.Color selected_color)
Draws a single marker.
|
protected void |
drawMarkerInterval(java.awt.Graphics g,
Marker marker,
int track,
java.awt.Rectangle rect,
boolean is_selected,
java.awt.Color selected_color) |
protected void |
drawMarkers(java.awt.Graphics g) |
protected void |
drawMarkersLegend(java.awt.Graphics g,
VariableResolutionDataSet slot,
java.awt.Rectangle rect) |
protected void |
drawModification(java.awt.Graphics g,
Marker marker,
java.util.ArrayList<java.lang.Integer> track_indexes,
java.awt.Rectangle rect,
VariableResolutionDataSetValues min_max_values) |
protected void |
drawModificationInterval(java.awt.Graphics2D g,
Marker marker,
int track_index,
java.awt.Rectangle rect,
VariableResolutionDataSetValues min_max_values) |
protected void |
drawModificationsLegend(java.awt.Graphics2D g,
VariableResolutionDataSet slot,
java.awt.Rectangle rect)
draw legend for motifs/mods track
|
protected void |
drawModificationSummaryHeatmap(java.awt.Graphics2D g2d,
Marker marker,
int visible_track_index,
int num_metrics,
int x1,
int x2,
VariableResolutionDataSetValues minmaxValues) |
protected void |
drawModificationSummaryHistogram(java.awt.Graphics2D g2d,
Marker marker,
int visible_track_index,
int num_metrics,
int x1,
int x2,
VariableResolutionDataSetValues minmaxValues) |
protected void |
drawMotifLegend(java.awt.Graphics2D g,
java.lang.String motif,
int x,
int y,
int max_x)
draws a single motif string up to max x coordinate
|
protected void |
drawRangeSelection(java.awt.Graphics g) |
protected void |
drawReferenceSequenceOutline(java.awt.Graphics g) |
protected void |
drawSummaryLegends(java.awt.Graphics g,
VariableResolutionDataSet slot,
int summary_index,
java.awt.Rectangle rect,
int char_height)
draws summary legends
|
protected void |
drawSummaryTracks(java.awt.Graphics2D g2d,
java.util.List<Marker> markers,
java.util.ArrayList<java.lang.Integer> track_indexes,
java.awt.Color color,
VariableResolutionDataSetValues minmaxValues) |
protected void |
drawUnFilteredTracks(java.awt.Graphics g) |
protected void |
drawVariant(java.awt.Graphics g,
Marker marker,
java.util.ArrayList<java.lang.Integer> track_indexes,
java.awt.Rectangle rect,
VariableResolutionDataSetValues min_max_values) |
protected void |
drawVariantInterval(java.awt.Graphics2D g,
Marker marker,
int track,
java.awt.Rectangle rect,
VariableResolutionDataSetValues min_max_values) |
protected void |
drawVariantIntervalOrg(java.awt.Graphics2D g,
Marker marker,
int track,
java.awt.Rectangle rect,
VariableResolutionDataSetValues min_max_values) |
protected void |
drawVariantsLegend(java.awt.Graphics2D g,
VariableResolutionDataSet slot,
java.awt.Rectangle rect) |
protected void |
drawVariantsLegendOrg(java.awt.Graphics g,
java.awt.Rectangle rect)
draw legend for variants track
|
int |
getLegendLabelsWidth() |
double |
getMaxCoverageInInterval(java.util.List<Marker> markers) |
double |
getMaxCoverageInInterval(VariableResolutionDataSet slot) |
protected double |
getMaxMagnification() |
protected double |
getMinMagnification() |
int |
getTracksHeight() |
protected abstract void |
initLocals() |
boolean |
isIdeogramDBLoaded()
Do not draw ideogram in horizontal views
|
void |
resetVisibleGenomicRange(boolean firechangeevent)
Zoom fully out.
|
void |
selectPoint(java.awt.Point p)
TODO: implement???
|
void |
setTracksHeight(int tracks_height)
set height of tracks
|
protected boolean |
showDataLabels() |
java.awt.Dimension |
updateSize(boolean repaint,
boolean revalidate) |
addGenomicRangeToDetailsViewDataRequestsQueue, addSelectionChangedListener, beginSelection, center, changeDNAFontSize, changeIPDConsensusHeight, changeTrackSize, clearSelections, createToolTip, endSelection, findVariantByPositionAndYCoordinate, fireSelectionChanged, getActiveViewForKeyEvents, getDetailsDataStorage, getScaledHeight, getScaledWidth, getSelectedGene, getSelectedMarker, getSelectedSlotIndex, getSelectionInfo, getShowLabels, getShowMarkerLabels, getShowMarkers, getToolTipText, getZoom, getZoom, hasViewHistoryItems, initTransientState, isSelection, popView, pushView, scroll, scrollVisibleGenomicRangeToTopOrBottom, selectNextPreviousContig, selectNextPreviousGeneContig, selectNextPreviousMarker, setActive, setRangeSelection, setSelectedGeneAndTrack, setSelectedMarkerAndSlot, setShowGenes, setShowLabels, setShowMarkerLabels, setShowMarkers, setViewWithOrWithoutUpdate, setVisibleGenomicRange, setVisibleGenomicRegion, setWidth, toggleMarker, zoomVisibleGenomicRange
autofitLabelWidth, BaseRangeToXExtent, BaseToXCoord, BaseToYCoord, drawAxisHeaderlabel, drawEpiProIdeogram, drawGenes, drawGenomicViewDoubleBuffered, drawGenomicViewToPaintBuffer, drawHeaderFooter, drawInfoLabel, drawInfoLabelJustified, drawLabelWithOffsetAndWidth, drawMarker, drawMinMaxLabel, drawModification, drawRotatedLabel, drawSummary, drawSummaryInterval, drawSummaryRegion, drawTrackMetricLabel, drawVariant, getContigLength, getContigMaxRange, getDim, getExtraRefTrackDistance, getGenesBounds, getIdeogramBounds, getLabelBounds, getLegendBounds, getMarkersBounds, getNumLeft, getNumRight, getPanelTitle, getPileupBounds, getRangeSelection, getReferenceBounds, getSelectedRangeColor, getVisibleGenomicRange, invalidatePaintBuffer, isCircular, isDetails, isHorizontal, isInspection, paintActiveBorder, paintComponent, paintLegendBackground, prepareDrawVariant, print, scaleX, scaleY, setMagnificationScaleFactor, trackIndexToXCoord, trackToYCoord, updateLayout, XCoordToBase, xCoordToTrackIndex, YCoordToBase, yCoordToMarkerCollectionIndex, yCoordToMarkerCollectionIndexNew, yCoordToMarkerCollectionIndexOrg, yCoordToTrackIndex
addTrackDataToViewAndUpdateLayout, clearMarkers, getContigLabel, getGenesOfCurrentContig, getIdeogramTreeOfCurrentContig, getMarkerCollection, getMarkers, getNumMarkerCollections, getSlotColor, getSlotMaxCoverage, getSlotMaxVariants, getSlots, markerToSampleIndex, sampleToMarkerIndex, sampleToMarkerIndex, setViewContig, setViewDataForCurrentContig, updateVisibility
getAbsMaxGenomicRange, getBorderWidth, getDataStorage, getGeneDB, getIdeogramDB, getMainWindow, getMaxGenomicRange, getMinGenomicRange, getReferenceInfo, getViewContig, getViewContigName, getVioletApp, initializeViewBase, isActive, isDNABaseShown
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, 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
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
protected int default_tracks_height
protected static final double variations_splitter
public GenomicViewHorizontal(VioletApp mainApp)
mainApp
- public java.awt.Dimension updateSize(boolean repaint, boolean revalidate)
updateSize
in class GenomicViewDraw
protected double getMaxMagnification()
getMaxMagnification
in class GenomicViewDraw
protected double getMinMagnification()
getMinMagnification
in class GenomicViewDraw
protected void calcSize()
protected abstract void initLocals()
public int getTracksHeight()
public void setTracksHeight(int tracks_height)
public boolean isIdeogramDBLoaded()
isIdeogramDBLoaded
in class GenomicViewBase
protected void drawRangeSelection(java.awt.Graphics g)
drawRangeSelection
in class GenomicViewDraw
public void drawBackgroundSelections(java.awt.Graphics g)
drawBackgroundSelections
in class GenomicViewDraw
public boolean canDrawIPDConsensus()
protected void drawReferenceSequenceOutline(java.awt.Graphics g)
public void drawForegroundSelections(java.awt.Graphics graphics)
drawForegroundSelections
in class GenomicViewDraw
public void selectPoint(java.awt.Point p)
selectPoint
in class GenomicViewEvents
p
- Point in component coordinates.public void drawGenomicViewToGraphicsContext(java.awt.Graphics g)
drawGenomicViewToGraphicsContext
in class GenomicViewDraw
g
- protected void drawIdeogram(java.awt.Graphics g)
drawIdeogram
in class GenomicViewDraw
public void resetVisibleGenomicRange(boolean firechangeevent)
resetVisibleGenomicRange
in class GenomicViewEvents
protected boolean showDataLabels()
showDataLabels
in class GenomicViewDraw
protected void drawGene(java.awt.Graphics g, Marker marker, boolean is_selected, java.awt.Color selected_color)
drawGene
in class GenomicViewDraw
g
- Graphics contextmarker
- The gene to be drawncolor
- The color of the gene marker.protected void drawLabelWithoutCollision(java.awt.Graphics g, java.lang.String text, java.awt.Color color, int x1, int x2, int yofs, java.awt.Rectangle rect, boolean is_selected)
protected void drawMarkers(java.awt.Graphics g)
drawMarkers
in class GenomicViewDraw
g
- protected void drawUnFilteredTracks(java.awt.Graphics g)
g
- protected void drawFilteredTracks(java.awt.Graphics g)
g
- protected void drawFilteredTrack(java.awt.Graphics g, java.util.List<Marker> list, MarkerCollection track, java.util.ArrayList<java.lang.Integer> track_indexes, VariableResolutionDataSet slot)
g
- list
- track
- track_indexes
- slot
- protected void drawMarkerHorizontal(java.awt.Graphics g, Marker marker, java.util.ArrayList<java.lang.Integer> track_indexes, java.awt.Rectangle rect, java.awt.Color color, boolean is_selected, java.awt.Color selected_color)
g
- marker
- column
- The column index (0..n-1)width
- The (line) width of the markercolor_left
- Color of a losscolor_right
- Color of a gainshow_band
- Shows a band across the ideogramband_color
- Color of the bandprotected void drawMarkerInterval(java.awt.Graphics g, Marker marker, int track, java.awt.Rectangle rect, boolean is_selected, java.awt.Color selected_color)
drawMarkerInterval
in class GenomicViewDraw
protected void drawVariant(java.awt.Graphics g, Marker marker, java.util.ArrayList<java.lang.Integer> track_indexes, java.awt.Rectangle rect, VariableResolutionDataSetValues min_max_values)
protected void drawVariantIntervalOrg(java.awt.Graphics2D g, Marker marker, int track, java.awt.Rectangle rect, VariableResolutionDataSetValues min_max_values)
protected void drawVariantInterval(java.awt.Graphics2D g, Marker marker, int track, java.awt.Rectangle rect, VariableResolutionDataSetValues min_max_values)
drawVariantInterval
in class GenomicViewDraw
protected void drawModification(java.awt.Graphics g, Marker marker, java.util.ArrayList<java.lang.Integer> track_indexes, java.awt.Rectangle rect, VariableResolutionDataSetValues min_max_values)
g
- marker
- track_indexes
- width
- is_selected
- color
- max_variants
- max_ipd
- protected void drawModificationInterval(java.awt.Graphics2D g, Marker marker, int track_index, java.awt.Rectangle rect, VariableResolutionDataSetValues min_max_values)
drawModificationInterval
in class GenomicViewDraw
protected void drawCrossLines(java.awt.Graphics g, boolean cutLeft, boolean cutRight, int x1, int x2, int dy, int y)
g
- cutLeft
- cutRight
- x1
- x2
- dy
- y
- protected void drawSummaryTracks(java.awt.Graphics2D g2d, java.util.List<Marker> markers, java.util.ArrayList<java.lang.Integer> track_indexes, java.awt.Color color, VariableResolutionDataSetValues minmaxValues)
protected void drawModificationSummaryHistogram(java.awt.Graphics2D g2d, Marker marker, int visible_track_index, int num_metrics, int x1, int x2, VariableResolutionDataSetValues minmaxValues)
protected void drawModificationSummaryHeatmap(java.awt.Graphics2D g2d, Marker marker, int visible_track_index, int num_metrics, int x1, int x2, VariableResolutionDataSetValues minmaxValues)
g2d
- marker
- y_basement
- num_metrics
- x1
- x2
- minmaxValues
- protected void drawHorizontalTracksHeader(java.awt.Graphics g)
drawHorizontalTracksHeader
in class GenomicViewDraw
g
- protected void drawMarkersLegend(java.awt.Graphics g, VariableResolutionDataSet slot, java.awt.Rectangle rect)
g
- slot
- rect
- protected void drawVariantsLegend(java.awt.Graphics2D g, VariableResolutionDataSet slot, java.awt.Rectangle rect)
protected void drawVariantsLegendOrg(java.awt.Graphics g, java.awt.Rectangle rect)
g
- rect
- protected void drawModificationsLegend(java.awt.Graphics2D g, VariableResolutionDataSet slot, java.awt.Rectangle rect)
g
- slot
- current_track_idx
- y_offset
- protected void drawMotifLegend(java.awt.Graphics2D g, java.lang.String motif, int x, int y, int max_x)
g
- motif
- x
- y
- protected void drawSummaryLegends(java.awt.Graphics g, VariableResolutionDataSet slot, int summary_index, java.awt.Rectangle rect, int char_height)
g
- slot
- track_index
- y_offset
- y_basement
- char_height
- public double getMaxCoverageInInterval(VariableResolutionDataSet slot)
public double getMaxCoverageInInterval(java.util.List<Marker> markers)
public int getLegendLabelsWidth()
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.