Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.javatools.compare.view
Class SequenceCompareView

java.lang.Object
  extended by oracle.javatools.compare.view.BaseCompareView
      extended by 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

Nested Class Summary
static class SequenceCompareView.OverviewComponent
          The overview component provides a guide to the entire diff, indicating all changes in the document using colored blocks.
 class SequenceCompareView.OverviewComponentMouseHandler
           
 
Nested classes/interfaces inherited from class oracle.javatools.compare.view.BaseCompareView
BaseCompareView.CentralGutterMouseHandler, BaseCompareView.ContributorBias, BaseCompareView.CustomFocusTraversalPolicy, BaseCompareView.PositionListener
 
Field Summary
 
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
 
Constructor Summary
protected SequenceCompareView()
           
protected SequenceCompareView(CompareMode compareMode)
           
protected SequenceCompareView(CompareMode compareMode, CompareViewBias compareViewBias)
           
 
Method Summary
protected  CompareModel createModel(CompareModel compareModel, CompareDifference[] differences)
           
protected  void createOverviews()
           
protected  java.util.Iterator getDiffBlockIterator()
          Get an iterator over the diff blocks in the model.
protected abstract  java.awt.Color getOverviewDifferenceColor(oracle.javatools.compare.algorithm.sequence.SequenceCompareDifference differenceBlock, boolean isLeft, ContributorKind firstContributorKind, ContributorKind secondContributorKind)
           
protected  int getVirtualHeightLines(ContributorKind contributor)
          Get the virtual height of the compare view in lines.
protected  int getVirtualLineForReal(int line, ContributorKind contributor)
          Given a line number for one contributor, get the line number in virtual space.
protected  void initializeOverview(BaseOverview overview)
           
 
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, 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, 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
 

Constructor Detail

SequenceCompareView

protected SequenceCompareView()

SequenceCompareView

protected SequenceCompareView(CompareMode compareMode)

SequenceCompareView

protected SequenceCompareView(CompareMode compareMode,
                              CompareViewBias compareViewBias)
Method Detail

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)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.