Skip navigation links
oracle.javatools.compare.view
Class SequenceCompareView
java.lang.Object
oracle.javatools.compare.view.BaseCompareView
oracle.javatools.compare.view.SequenceCompareView
- All Implemented Interfaces:
- CompareView, ActionMenuView, CustomHorizontalScrollView, EditableView, NavigableConflictsView, NavigableView, SplitPanelView, StatusView, ToolTipView
- Direct Known Subclasses:
- ListCompareView, WedgeCompareView
-
public abstract class SequenceCompareView
- extends BaseCompareView
- Since:
- 11.1.1
Fields inherited from class oracle.javatools.compare.view.BaseCompareView |
_centerScrollPane, _centerTitle, _leftDiffGutter, _leftOverview, _leftScrollPane, _leftTitle, _rightDiffGutter, _rightOverview, _rightScrollPane, _rightTitle, GUI_VERTICAL_SCROLLBAR, GUI_VERTICAL_SPACER |
Methods inherited from class oracle.javatools.compare.view.BaseCompareView |
addPopupManager, addPositionListener, addStatusListener, addViewEditListener, attachContributorChangeListeners, calculateRightEditorInset, canReadElement, canWriteElement, createDeleteBlockAction, createFocusTraversalPolicy, createHorizontalScrollPane, createInsertBlockAction, createMarkAllResolvedAction, createMarkResolvedAction, createMemento, createModel, createMutableModel, createReplaceBlockAction, deleteBlock, detachContributorChangeListeners, dispose, firePositionChanged, fireStatusChanged, fireViewEditEvent, getAdjacentContributorKind, getAdjacentContributorKind, getBias, getBundle, getCenterScrollPane, getCenterTitle, getCompareMode, getCompareModel, getContributor, getCurrentContributorKind, getCurrentDifference, getDecorations, getDefaultEditAction, getDefaultEditActionIcon, getEditActions, getEditActions, getFocusableCenterEditor, getFocusComponent, getGUI, getHorizontalScrollBars, getHorizontalScrollComponent, getLeftDiffGutter, getLeftOrCenterSplitter, getLeftOverview, getLeftScrollPane, getLeftTitle, getModel, getNextConflict, getNextDifference, getOverviewLeftEditor, getOverviewRightEditor, getPopupManager, getPreviousConflict, getPreviousDifference, getRightDiffGutter, getRightOverview, getRightScrollPane, getRightSplitter, getRightTitle, getSplitPanel, getSplitterLocation, getToolTipProvider, getUndoableEditListeners, getVerticalScrollbar, getVerticalScrollBar, getVerticalScrollCardLayout, getVerticalScrollPanel, getViewEditListeners, goToDifference, goToDifference, goToFirstConflict, goToFirstDifference, goToInitialDifference, goToLastConflict, goToLastDifference, goToNextConflict, goToNextDifference, goToPreviousConflict, goToPreviousDifference, hasDefaultEditAction, hasNavigableConflicts, hasNavigableDifferences, hasNextConflict, hasNextDifference, hasPreviousConflict, hasPreviousDifference, horizontalScrollTo, initializeView, initScrollPane, insertBlockCopy, isAddition, isEditable, isEditLocked, isOverviewFocusOwner, isRemoval, isViewFocusOwner, markAllResolved, markResolved, registerViewDecoration, registerViewDecoration, removePopupManager, removePositionListener, removeStatusListener, removeViewEditListener, repaintDiffGutters, replaceBlock, resetGUI, setCenterScrollPane, setCompareModel, setEditLocked, setLeftDiffGutter, setLeftScrollPane, setMemento, setModel, setRightDiffGutter, setRightScrollPane, setSplitPanel, setSplitterLocation, setSplitterLocation, setToolTipProvider, updateModel, updateModelImpl, updateOnEdit, updateTitles, verticalScrollTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceCompareView
protected SequenceCompareView()
SequenceCompareView
protected SequenceCompareView(CompareMode compareMode)
SequenceCompareView
protected SequenceCompareView(CompareMode compareMode,
CompareViewBias compareViewBias)
createOverviews
protected void createOverviews()
-
- Overrides:
createOverviews
in class BaseCompareView
initializeOverview
protected void initializeOverview(BaseOverview overview)
-
- Overrides:
initializeOverview
in class BaseCompareView
createModel
protected CompareModel createModel(CompareModel compareModel,
CompareDifference[] differences)
-
- Specified by:
createModel
in class BaseCompareView
getDiffBlockIterator
protected java.util.Iterator getDiffBlockIterator()
- Get an iterator over the diff blocks in the model. This iterator returns both "real" blocks and imaginary blocks for segments that match. This makes it easier to make virtual space calculations.
-
- Returns:
- an Iterator of DifferenceBlocks
getVirtualLineForReal
protected int getVirtualLineForReal(int line,
ContributorKind contributor)
- Given a line number for one contributor, get the line number in virtual space.
-
- Parameters:
line
- the line number in a contributor
contributor
- which contributor the line number is from
- Returns:
- the virtual line number corresponding to this real line number, or -1
getVirtualHeightLines
protected int getVirtualHeightLines(ContributorKind contributor)
- Get the virtual height of the compare view in lines. The virtual height is the sum of the maximum height of all difference blocks and the gaps between them.
-
- Returns:
- the virtual height in lines.
getOverviewDifferenceColor
protected abstract java.awt.Color getOverviewDifferenceColor(oracle.javatools.compare.algorithm.sequence.SequenceCompareDifference differenceBlock,
boolean isLeft,
ContributorKind firstContributorKind,
ContributorKind secondContributorKind)
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.