com.guiffy.inside
Class GuiffyFrame

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--com.guiffy.inside.GuiffyFrame

public class GuiffyFrame
extends javax.swing.JFrame

Class GuiffyFrame is the Component for including Guiffy inside Java applications. GuiffyFrame extends JFrame.

Guiffy is a source file compare/merge utility(component). Plus, Guiffy also compares File Folders/Trees. The Guiffy extended JFrame includes: MenuBar, ToolBar, MergeText view, Merging ButtonBar, File TitleBars, 3 compare text views(Together view, 1st file view, 2nd file view), synchronized vertical and horizontal scroll bars, visual difference meters, Line-by-Line view, and a status/progress bar. Functionality is included for Edit controls including Undo/Redo, text searching, and logical navigation. The MergeText view supports basic editing operations. Extensive application JavaHelp documentation is accessible from the MenuBar which supports TOC, Index, and Search navigation.

Guiffy's user interface is engineered for localization and has been translated for Spanish and German.

Guiffy compares/merges source(text) files of any type - supports Unicode character set. And, Guiffy accepts all 3 forms of end-of-line. Guiffy supports a user choice of compare algorithms: 1) Minimum lines of difference or 2) Minimum blocks of difference. The default(which can be switched by the user) is the Mimimum lines of difference. For files with more than 32K lines, Guiffy automatically switches to its Minimum blocks of difference algorithm. The Guiffy 3-way SureMerge employs the the Minimum blocks of difference algorithm. Guiffy does NOT impose any file size limits. And, Guiffy's comparison resolution algorithm is NOT sensitive to file size.

Guiffy's Stylized Text views are proprietary implementations, optimized for exceptional performance with large text documents.

Guiffy's 3-way smart merge, SureMerge, automatically merges all changes except those which conflict. SureMerge's conflict detection algorithm treats inserts and deletes(not just changes) as conflicts. SureMerge extends its conflict attention span to include modifications very near to each other but not necessarily overlapping. Plus, the Attention Focus Expander option allows the user to expand the conflict/overlap area.

The default GuiffyFrame Size is 600, 450.
The default GuiffyFrame Location is the center of the screen.
The default GuiffyFrame CloseOperation is HIDE_ON_CLOSE. GuiffyFrame has an additional CLOSE option defined - EXIT_ON_CLOSE.
GuiffyFrame is initialized as not Visible.
The GuiffyFrame LAF is set to the System's default.

If the GuiffyFrame constructor parameter usesettings is true - the user's SavedSettings are loaded and set. If usesettings is false - the File->SaveSettings menuitem is disabled.

Version:
3.0 -- developed in June-July, 2001
Author:
Guiffy Software, Inc. by Bill Ritcher
See Also:
JFrame, Serialized Form

Inner classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Field Summary
static int EXIT_ON_CLOSE
          WindowsConstants - setDefaultCloseOperation(EXIT_ON_CLOSE) will do System.exit(0) when the Frame is closed
static int SAVESETS_OFF
          Auto Save Settings Constants - controls automatically saving settings on Exit.
static int SAVESETS_ONPROMPT
           
static int SAVESETS_ONQUIET
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
GuiffyFrame(boolean usesettings)
          Creates a GuiffyFrame with all the options defaulted, If usesettings is true - the user's SavedSettings are loaded and set.
 
Method Summary
 void compareFiles(boolean vis)
          Compares the 1st and 2nd files and displays the differences according to the options selected.
 void compareFolders(boolean vis)
          Compares the 1st and 2nd folders and displays the differences according to the options selected.
 boolean getAllowFileCompares()
          Returns AllowFileCompares setting true or false.
 boolean getAllowFolderCompares()
          Returns AllowFolderCompares setting true or false.
 boolean getAllowMerges()
          Returns AllowMerges setting true or false.
 boolean getAutoDiff()
          Returns AutoDiff setting true or false.
 boolean getAutoHTML()
          Returns AutoMTML setting true or false.
 boolean getAutoMerg()
          Returns AutoMerg setting true or false.
 boolean getAutoRCS()
          Returns AutoRCS setting true or false.
 java.awt.Color getBackgroundColor()
          Returns the Background color option.
 java.awt.Color getDeletesColor()
          Returns the Deleted text foreground color option.
 java.awt.Font getDeletesFont()
          Returns the Deleted text font option.
 java.lang.String getEOLOption()
          Returns Write EOLs option for Saved files.
 int getExpandedFocus()
          Returns Attention(conflict) Focus Expander value.
 boolean getFilenameHeadersVisible()
          Returns FilenameHeadersVisible option true or false.
 boolean getFileTreeVisible()
          Returns View display folder compares as TRee option true or false.
 boolean getIgnoreCase()
          Returns IgnoreCase option true or false.
 boolean getIgnoreDateandTime()
          Returns ignore modified date and time (folder compares) option true or false.
 int getIgnoreFieldBegin()
          Returns IgnoreField's beginning column.
 int getIgnoreFieldEnd()
          Returns IgnoreField's ending column.
 boolean getIgnoreFileSize()
          Returns ignore file size (folder compares) option true or false.
 boolean getIgnoreWhitespace()
          Returns IgnoreWhitespace option true or false.
 java.awt.Color getInsertsColor()
          Returns the Inserted text foreground color option.
 java.awt.Font getInsertsFont()
          Returns the Inserted text font option.
 boolean getLinexLineVisible()
          Returns View display Line-by-Line option true or false.
 java.awt.Color getMatchingColor()
          Returns the Matching text foreground color option.
 java.awt.Font getMatchingFont()
          Returns the Matching text font option.
 boolean getMinimumBlocksDiff()
          Returns Minimize Blocks Changed Diff option true or false.
 boolean getMinimumLinesDiff()
          Returns Minimize Lines Changed Diff option true or false.
 java.lang.String getP1()
          Returns the prefix for 1st FileName header.
 java.lang.String getP2()
          Returns the prefix for 2nd FileName header.
 java.lang.String getPM()
          Returns the prefix for Merge FileName header.
 int getSaveSettings()
          Returns Auto Save Settings control.
 boolean getShowContextDiffs()
          Returns Show Context Differences option true or false.
 int getShowContextSize()
          Returns Show Context Differences Size.
 boolean getShowLineNumbers()
          Returns Show Line Numbers option true or false.
 boolean getShowOnlyDiffs()
          Returns Show Only Differences option true or false.
 boolean getShowSubs()
          Returns show subfolders, recursively (folder compares) option true or false.
 boolean getStatusBarVisible()
          Returns StatusBarVisible option true or false.
 int getTabSize()
          Returns Tab Size option.
 boolean getToolBarVisible()
          Returns ToolBarVisible option true or false.
 boolean getVerifyBxb()
          Returns Verify file matches, byte-by-byte (folder compares) option true or false.
 boolean getViewSplitHorizontal()
          Returns View Split Horizontal option true or false.
 boolean getViewSplitVertical()
          Returns View Split Vertical option true or false.
 boolean getViewTogether()
          Returns View Together option true or false.
 void mergeFiles(boolean vis)
          Performs a Merge, Compares the 1st and 2nd files and displays the differences according to the options selected.
protected  void processWindowEvent(java.awt.event.WindowEvent e)
          Override JFrame implementation to exit if the close operation is set to EXIT_ON_CLOSE
 void resetOptions()
          ReSets all the options to the defaults.
 void resetSavedSettings()
          ReSets all the options to the defaults AND, resets to the user SavedSettings.
 void set1stFile(java.lang.String firstname)
          Sets the 1st File Name.
 void set1stFolder(java.lang.String firstname)
          Sets the 1st Folder Name.
 void set2ndFile(java.lang.String secndname)
          Sets the 2nd File Name.
 void set2ndFolder(java.lang.String secndname)
          Sets the 2nd Folder Name.
 void setAllowFileCompares(boolean allfic)
          Sets Allow File Compares (During Merges) true or false.
 void setAllowFolderCompares(boolean allfoc)
          Sets Allow Folder Compares (During Merges) true or false.
 void setAllowMerges(boolean allfoc)
          Sets Allow Merges (During Compares) true or false.
 void setAutoDiff(boolean autod, java.lang.String autodfn)
          Sets AutoDiff option and the Save Diff filename.
 void setAutoHTML(boolean autoh, java.lang.String autohfn)
          Sets AutoHTML option and the Save HTML filename set.
 void setAutoMerg(boolean autom)
          Sets AutoMerg option.
 void setAutoRCS(boolean autor, java.lang.String autorfn)
          Sets AutoRCS option and the Save RCS filename.
 void setBackgroundColor(java.awt.Color baccol)
          Sets the Background color option.
 void setDefaultCloseOperation(int operation)
          Override JFrame implementation to store the opcode locally and set exit option in Guiffy pane class
 void setDeletesColor(java.awt.Color delcol)
          Sets the Deleted text foreground color option.
 void setDeletesFont(java.awt.Font delfon)
          Sets the Deleted text font option.
 void setEOLOption(java.lang.String eolopt)
          Sets Write EOLs option for Saved files.
 void setExpandedFocus(int expfoc)
          Sets Attention(conflict) Focus Expander for SureMerge.
 void setFilenameHeadersVisible(boolean vifhdr)
          Sets View display Filename headers option true or false.
 void setFileTreeVisible(boolean viftre)
          Sets View display folder compares as TRee option true or false.
 void setGuiffyExit(GuiffyExit hook)
          Sets the GuiffyExit hook of the GuiffyFrame If set to null, a previously added GuiffyExit hook will be removed.
 void setIgnoreCase(boolean igncas)
          Sets IgnoreCase option true or false.
 void setIgnoreDateandTime(boolean igmdat)
          Sets ignore modified date and time (folder compares) option true or false.
 void setIgnoreField(int begcol, int endcol)
          Sets IgnoreField option columns xxx thru yyy.
 void setIgnoreFileSize(boolean igfsiz)
          Sets ignore file size (folder compares) option true or false.
 void setIgnoreWhitespace(boolean ignwhi)
          Sets IgnoreWhitespace option true or false.
 void setInsertsColor(java.awt.Color inscol)
          Sets the Inserted text foreground color option.
 void setInsertsFont(java.awt.Font insfon)
          Sets the Inserted text font option.
 void setLinexLineVisible(boolean vilxlc)
          Sets View display Line-by-Line window option true or false.
 void setMatchingColor(java.awt.Color matcol)
          Sets the Matching text foreground color option.
 void setMatchingFont(java.awt.Font matfon)
          Sets the Matching text font option.
 void setMinimumBlocksDiff(boolean minblk)
          Sets Minimize Blocks Changed Diff option true or false.
 void setMinimumLinesDiff(boolean minlin)
          Sets Minimize Lines Changed Diff option true or false.
 void setP1(java.lang.String prefix)
          Sets the prefix for 1st FileName header.
 void setP2(java.lang.String prefix)
          Sets the prefix for 2nd FileName header.
 void setParentFile(java.lang.String parntname)
          Sets the Parent File Name.
 void setPM(java.lang.String prefix)
          Sets the prefix for Merge FileName header.
 void setResultFile(java.lang.String resltname)
          Sets the Result File Name.
 void setSaveSettings(int savset)
          Sets Auto Save Settings control.
 void setShowContextDiffs(boolean shocxt)
          Sets Show Context Differences option true or false.
 void setShowContextSize(int conlns)
          Sets Show Context Differences Size option.
 void setShowLineNumbers(boolean sholno)
          Sets Show Line Numbers option true or false.
 void setShowOnlyDiffs(boolean shonly)
          Sets Show Only Differences option true or false.
 void setShowSubs(boolean shsubs)
          Sets show subfolders, recursively (folder compares) option true or false.
 void setStatusBarVisible(boolean visbar)
          Sets View display StatusBar option true or false.
 void setTabSize(int tabsiz)
          Sets Tab Size option.
 void setToolBarVisible(boolean vitbar)
          Sets View display ToolBar option true or false.
 void setVerifyBxb(boolean verbxb)
          Sets Verify file matches, byte-by-byte (folder compares) option true or false.
 void setViewSplitHorizontal(boolean viwhor)
          Sets View Split Horizontal option true or false.
 void setViewSplitVertical(boolean viwver)
          Sets View Split Vertical option true or false.
 void setViewTogether(boolean viwtog)
          Sets View Together option true or false.
 void setVisible(boolean vis)
          Override JFrame implementation to display registration Nag Dialog.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle
 
Methods inherited from class java.awt.Window
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, removeWindowListener, setCursor, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXIT_ON_CLOSE

public static final int EXIT_ON_CLOSE
WindowsConstants - setDefaultCloseOperation(EXIT_ON_CLOSE) will do System.exit(0) when the Frame is closed

SAVESETS_OFF

public static final int SAVESETS_OFF
Auto Save Settings Constants - controls automatically saving settings on Exit. Can be: OFF, ONPROMPT(with Prompt), ONQUIET(No Prompt).

SAVESETS_ONPROMPT

public static final int SAVESETS_ONPROMPT

SAVESETS_ONQUIET

public static final int SAVESETS_ONQUIET
Constructor Detail

GuiffyFrame

public GuiffyFrame(boolean usesettings)
Creates a GuiffyFrame with all the options defaulted, If usesettings is true - the user's SavedSettings are loaded and set. If usesettings is false - the File->SaveSettings menuitem is disabled.
Parameters:
usesettings - the boolean value that specifies whether to load and set the user's SavedSettings.
Method Detail

setDefaultCloseOperation

public void setDefaultCloseOperation(int operation)
Override JFrame implementation to store the opcode locally and set exit option in Guiffy pane class
Overrides:
setDefaultCloseOperation in class javax.swing.JFrame

setVisible

public void setVisible(boolean vis)
Override JFrame implementation to display registration Nag Dialog.
Overrides:
setVisible in class java.awt.Component

processWindowEvent

protected void processWindowEvent(java.awt.event.WindowEvent e)
Override JFrame implementation to exit if the close operation is set to EXIT_ON_CLOSE
Overrides:
processWindowEvent in class javax.swing.JFrame

setGuiffyExit

public void setGuiffyExit(GuiffyExit hook)
Sets the GuiffyExit hook of the GuiffyFrame If set to null, a previously added GuiffyExit hook will be removed.
See Also:
GuiffyExit

compareFiles

public void compareFiles(boolean vis)
                  throws java.io.IOException
Compares the 1st and 2nd files and displays the differences according to the options selected.

First, checks each File.exists(), !File.isDirectory, and File.canRead().
Throws an IOException on any error.
Then, sets Frame Visible(or NOT) and performs the compare.

Parameters:
vis - the boolean value that specifies whether to make GuiffyFrame Visible.
Throws:
java.io.IOException - if files don't exist, are a folder, or can't read

mergeFiles

public void mergeFiles(boolean vis)
                throws java.io.IOException
Performs a Merge, Compares the 1st and 2nd files and displays the differences according to the options selected. Then, displays the 3rd view showing the merged text.

First, checks 1st, 2nd, and Parent File.exists(), !File.isDirectory, and File.canRead().
Checks Result !File.isDirectory().
Throws an IOException on any error.
Then, sets Frame Visible(or NOT) and performs the compare(s) and merge.

If a Parent file is specified, each file is compared with the Parent and all non-conflicting changes are automatically merged. The UI displays each change(without a Parent file specified) or only the changes which have a conflict to allow the user selection of the changes to be applied in the merge. And, the user can perform editing of the text in the merge view.

Parameters:
vis - the boolean value that specifies whether to make GuiffyFrame Visible.
Throws:
java.io.IOException - if input files don't exist, are a folder, or can't read
java.io.IOException - if result file is a folder, or can't write

compareFolders

public void compareFolders(boolean vis)
                    throws java.io.IOException
Compares the 1st and 2nd folders and displays the differences according to the options selected.

First, checks each File.exists(), File.isDirectory, and File.canRead().
Throws an IOException on any error.
Then, sets Frame Visible(or NOT) and performs the compare.

Parameters:
vis - the boolean value that specifies whether to make GuiffyFrame Visible.
Throws:
java.io.IOException - if folders don't exist, are not a folder, or can't read

set1stFile

public void set1stFile(java.lang.String firstname)
Sets the 1st File Name.
Parameters:
firstname - the 1st File name as a complete path.

set2ndFile

public void set2ndFile(java.lang.String secndname)
Sets the 2nd File Name.
Parameters:
secndname - the 2nd File name as a complete path.

setParentFile

public void setParentFile(java.lang.String parntname)
Sets the Parent File Name.
Parameters:
parntname - the Parent File name as a complete path.

setResultFile

public void setResultFile(java.lang.String resltname)
Sets the Result File Name.
Parameters:
resltname - the Result File name as a complete path.

set1stFolder

public void set1stFolder(java.lang.String firstname)
Sets the 1st Folder Name.
Parameters:
firstname - the 1st Folder name as a complete path.

set2ndFolder

public void set2ndFolder(java.lang.String secndname)
Sets the 2nd Folder Name.
Parameters:
secndname - the 2nd Folder name as a complete path.

setIgnoreCase

public void setIgnoreCase(boolean igncas)
Sets IgnoreCase option true or false. Default is false.
Parameters:
igncas - the boolean value that determines whether case differences are ignored during the compare.

setIgnoreWhitespace

public void setIgnoreWhitespace(boolean ignwhi)
Sets IgnoreWhitespace option true or false. Default is false.
Parameters:
ignwhi - the boolean value that determines whether whitespace differences are ignored during the compare.

setIgnoreField

public void setIgnoreField(int begcol,
                           int endcol)
Sets IgnoreField option columns xxx thru yyy. Default is none(0 thru 0).
Parameters:
begcol - the ignore field's beginning column
endcol - the ignore field's ending column

setVerifyBxb

public void setVerifyBxb(boolean verbxb)
Sets Verify file matches, byte-by-byte (folder compares) option true or false. Default is false.
Parameters:
verbxb - the boolean value that determines whether file matches are verified, byte-by-byte during folder compares.

setIgnoreDateandTime

public void setIgnoreDateandTime(boolean igmdat)
Sets ignore modified date and time (folder compares) option true or false. Default is false.
Parameters:
igmdat - the boolean value that determines whether modified date and time is ignored during folder compares.

setIgnoreFileSize

public void setIgnoreFileSize(boolean igfsiz)
Sets ignore file size (folder compares) option true or false. Default is false.
Parameters:
igfsiz - the boolean value that determines whether file size is ignored during folder compares.

setShowSubs

public void setShowSubs(boolean shsubs)
Sets show subfolders, recursively (folder compares) option true or false. Default is false.
Parameters:
shsubs - the boolean value that determines whether to show subfolders (recursively) during folder compares.

setTabSize

public void setTabSize(int tabsiz)
Sets Tab Size option. Default is 8.
Parameters:
tabsiz - the int value that specifies tab size for the text views.

setShowOnlyDiffs

public void setShowOnlyDiffs(boolean shonly)
Sets Show Only Differences option true or false. Default is false.
Parameters:
shonly - the boolean value that specifies to show only the differences in compare views.

setShowContextDiffs

public void setShowContextDiffs(boolean shocxt)
Sets Show Context Differences option true or false. Default is false.
Parameters:
shocxt - the boolean value that specifies to show context around differences in compare views.

setShowContextSize

public void setShowContextSize(int conlns)
Sets Show Context Differences Size option. Default is 10.
Parameters:
conlns - the number of lines of context to show before and after differences. If less than 1, default of 10 is used. If greater than 48, value of 48 is used.

setShowLineNumbers

public void setShowLineNumbers(boolean sholno)
Sets Show Line Numbers option true or false. Default is true.
Parameters:
sholno - the boolean value that specifies to show Line Numbers in compare views.

setEOLOption

public void setEOLOption(java.lang.String eolopt)
Sets Write EOLs option for Saved files. Default is the format of the operating environment.
Parameters:
eolopt - the String value of "DOS", "MacOS" or "Unix" specifies the format for writing End-Of-Lines in Saved Files.

setMatchingFont

public void setMatchingFont(java.awt.Font matfon)
Sets the Matching text font option. Default is "Monospaced", Font.PLAIN, 12.
Parameters:
matfon - the Font for Matching text.

setInsertsFont

public void setInsertsFont(java.awt.Font insfon)
Sets the Inserted text font option. Default is "Monospaced", Font.BOLD, 12.
Parameters:
insfon - the Font for Inserted text.

setDeletesFont

public void setDeletesFont(java.awt.Font delfon)
Sets the Deleted text font option. Default is "Monospaced", Font.PLAIN, 12.
Parameters:
delfon - the Font for Deleted text.

setBackgroundColor

public void setBackgroundColor(java.awt.Color baccol)
Sets the Background color option. Default is a very light brown. Default RGB values are 250, 247, and 240.
Parameters:
baccol - the Color for Backgrounds.

setMatchingColor

public void setMatchingColor(java.awt.Color matcol)
Sets the Matching text foreground color option. Default is a medium gray. Default RGB values are 100, 100, and 100.
Parameters:
matcol - the Color for Matching text foreground.

setInsertsColor

public void setInsertsColor(java.awt.Color inscol)
Sets the Inserted text foreground color option. Default is a medium green. Default RGB values are 75, 180, and 75.
Parameters:
inscol - the Color for Inserted text foreground.

setDeletesColor

public void setDeletesColor(java.awt.Color delcol)
Sets the Deleted text foreground color option. Default is a medium red. Default RGB values are 230, 25, and 50.
Parameters:
delcol - the Color for Deleted text foreground.

setViewTogether

public void setViewTogether(boolean viwtog)
Sets View Together option true or false. Default is false.
Parameters:
viwtog - the boolean value that specifies to show differences together in one compare view.

setViewSplitVertical

public void setViewSplitVertical(boolean viwver)
Sets View Split Vertical option true or false. Default is true.
Parameters:
viwver - the boolean value that specifies to show differences split vertically side-by-side in compare views.

setViewSplitHorizontal

public void setViewSplitHorizontal(boolean viwhor)
Sets View Split Horizontal option true or false. Default is false.
Parameters:
viwhor - the boolean value that specifies to show differences split horizontally one-over-the-other in compare views.

setToolBarVisible

public void setToolBarVisible(boolean vitbar)
Sets View display ToolBar option true or false. Default is true.
Parameters:
vitbar - the boolean value that specifies to show ToolBar.

setStatusBarVisible

public void setStatusBarVisible(boolean visbar)
Sets View display StatusBar option true or false. Default is true.
Parameters:
visbar - the boolean value that specifies to show StatusBar.

setFilenameHeadersVisible

public void setFilenameHeadersVisible(boolean vifhdr)
Sets View display Filename headers option true or false. Default is true.
Parameters:
vifhdr - the boolean value that specifies to show Filename headers.

setLinexLineVisible

public void setLinexLineVisible(boolean vilxlc)
Sets View display Line-by-Line window option true or false. Default is false.
Parameters:
vilxlc - the boolean value that specifies to show Line-by-Line window

setFileTreeVisible

public void setFileTreeVisible(boolean viftre)
Sets View display folder compares as TRee option true or false. Default is true.
Parameters:
viftre - the boolean value that specifies to show folder compares as TRee

setAllowFileCompares

public void setAllowFileCompares(boolean allfic)
Sets Allow File Compares (During Merges) true or false. Default is true.
Parameters:
allfic - the boolean value that specifies to allow File Compares (During Merges).

setAllowFolderCompares

public void setAllowFolderCompares(boolean allfoc)
Sets Allow Folder Compares (During Merges) true or false. Default is true.
Parameters:
allfoc - the boolean value that specifies to allow Folder Compares (During Merges).

setAllowMerges

public void setAllowMerges(boolean allfoc)
Sets Allow Merges (During Compares) true or false. Default is true.
Parameters:
allmrg - the boolean value that specifies to allow Merges (During Compares).

setPM

public void setPM(java.lang.String prefix)
Sets the prefix for Merge FileName header.
Parameters:
prefix - the prefix for the Merge filename header.

setP1

public void setP1(java.lang.String prefix)
Sets the prefix for 1st FileName header.
Parameters:
prefix - the prefix for the 1st filename header.

setP2

public void setP2(java.lang.String prefix)
Sets the prefix for 2nd FileName header.
Parameters:
prefix - the prefix for the 2nd filename header.

setAutoDiff

public void setAutoDiff(boolean autod,
                        java.lang.String autodfn)
Sets AutoDiff option and the Save Diff filename. Default is false. When AutoDiff is set true, after a compare - Save Difference and Exit are automatic.
Parameters:
autod - the boolean value that specifies to Automatically Save the Difference after Compare and then Exit.
autodfn - the Save Diff File name as a complete path.

setAutoHTML

public void setAutoHTML(boolean autoh,
                        java.lang.String autohfn)
Sets AutoHTML option and the Save HTML filename set. Default is false. When AutoHTML is set true, after a compare - Save as HTML and Exit are automatic.
Parameters:
autoh - the boolean value that specifies to Automatically Save as HTML after Compare and then Exit.
autohfn - the Save HTML File name set as a complete path.

setAutoMerg

public void setAutoMerg(boolean autom)
Sets AutoMerg option. Default is false. When AutoMerg is set true, after a Merge - Save Merge and Exit are automatic. Note: the Save Merge filename is specified by the setResultFile method. Unresolved merge changes will be encapsulated in the saved merge result file.
Parameters:
autom - the boolean value that specifies to Automatically Save Merge after Merge and then Exit.

setAutoRCS

public void setAutoRCS(boolean autor,
                       java.lang.String autorfn)
Sets AutoRCS option and the Save RCS filename. Default is false. When AutoRCS is set true, after a compare - Save as RCS and Exit are automatic.
Parameters:
autor - the boolean value that specifies to Automatically Save as RCS after Compare and then Exit.
autorfn - the Save RCS File name as a complete path.

setMinimumLinesDiff

public void setMinimumLinesDiff(boolean minlin)
Sets Minimize Lines Changed Diff option true or false. Default is true.
Parameters:
minlin - the boolean value that determines which diff algorithm is used - Minimize Lines/Blocks changed.

setMinimumBlocksDiff

public void setMinimumBlocksDiff(boolean minblk)
Sets Minimize Blocks Changed Diff option true or false. Default is false.
Parameters:
minlin - the boolean value that determines which diff algorithm is used - Minimize Lines/Blocks changed.

setExpandedFocus

public void setExpandedFocus(int expfoc)
Sets Attention(conflict) Focus Expander for SureMerge. Default is 0.
Parameters:
expfoc - the integer value that expands the attention(conflict) focus for SureMerge.

setSaveSettings

public void setSaveSettings(int savset)
Sets Auto Save Settings control. If GuiffyFrame created with usesettings true, Default is ONPROMPT. If GuiffyFrame created with usesettings false, Default is OFF.
Parameters:
savset - the integer value that controls the auto save settings.

resetOptions

public void resetOptions()
ReSets all the options to the defaults. Sets:
IgnoreCase(false)
IgnoreWhitespace(false)
TabSize(8)
ShowOnlyDiffs(false)
ShowContextDiffs(false)
ShowContextSize(10)
ShowLineNumbers(true)
EOLOption("DOS", "MacOS", or "Unix" depending on environment)
MatchingFont(Font "Monospaced", Font.PLAIN, 12)
InsertsFont(Font "Monospaced", Font.BOLD, 12)
DeletesFont(Font "Monospaced", Font.PLAIN, 12)
BackgroundColor(Color 250, 247, 240)
MatchingColor(Color 100, 100, 100)
InsertsColor(Color 75, 180, 75)
DeletesColor(Color 230, 25, 50)
ViewSplitVertical(true)
ToolBarVisible(true)
StatusBarVisible(true)
FilenameHeadersVisible(true)
AllowFileCompares(true)
AllowFolderCompares(true)
AllowMerges(true)
PM(null)
P1(null)
P2(null)
VerifyBxb(false)
IgnoreDateandTime(false)
IgnoreFileSize(false)
LinexLineVisible(false)
FileTreeVisible(true)
ShowSubs(false)
IgnoreField( 0, 0 )
AutoDiff(false)
AutoHTML(false)
AutoMerg(false)
AutoRCS(false)
MinimumLinesDiff(true)
MinimumBlocksDiff(false)
ExpandedFocus( 0 )
SaveSettings(SAVESETS_ONPROMPT)
If GuiffyFrame created with usesettings true, SaveSettings(SAVESETS_ONPROMPT)
If GuiffyFrame created with usesettings false, SaveSettings(SAVESETS_OFF)

resetSavedSettings

public void resetSavedSettings()
ReSets all the options to the defaults AND, resets to the user SavedSettings.

getIgnoreCase

public boolean getIgnoreCase()
Returns IgnoreCase option true or false.
Returns:
the boolean value that determines whether case differences are ignored during the compare.

getIgnoreWhitespace

public boolean getIgnoreWhitespace()
Returns IgnoreWhitespace option true or false.
Returns:
the boolean value that determines whether whitespace differences are ignored during the compare.

getIgnoreFieldBegin

public int getIgnoreFieldBegin()
Returns IgnoreField's beginning column.
Returns:
the int value for IgnoreField's beginning column, 0 is OFF.

getIgnoreFieldEnd

public int getIgnoreFieldEnd()
Returns IgnoreField's ending column.
Returns:
the int value for IgnoreField's ending column, 0 is OFF.

getVerifyBxb

public boolean getVerifyBxb()
Returns Verify file matches, byte-by-byte (folder compares) option true or false.
Returns:
the boolean value that determines whether file matches are verified, byte-by-byte during folder compares.

getIgnoreDateandTime

public boolean getIgnoreDateandTime()
Returns ignore modified date and time (folder compares) option true or false.
Returns:
the boolean value that determines whether file modified date and time is ignored during folder compares.

getIgnoreFileSize

public boolean getIgnoreFileSize()
Returns ignore file size (folder compares) option true or false.
Returns:
the boolean value that determines whether file size is ignored during folder compares.

getShowSubs

public boolean getShowSubs()
Returns show subfolders, recursively (folder compares) option true or false.
Returns:
the boolean value that determines whether to show subfolders (recursively) during folder compares.file

getTabSize

public int getTabSize()
Returns Tab Size option.
Returns:
the int value that specifies tab size for the text views.

getShowOnlyDiffs

public boolean getShowOnlyDiffs()
Returns Show Only Differences option true or false.
Returns:
the boolean value that specifies to show only the differences in compare views.

getShowContextDiffs

public boolean getShowContextDiffs()
Returns Show Context Differences option true or false.
Returns:
the boolean value that specifies to show context around differences in compare views.

getShowContextSize

public int getShowContextSize()
Returns Show Context Differences Size.
Returns:
the number of lines of context to show before and after differences.

getShowLineNumbers

public boolean getShowLineNumbers()
Returns Show Line Numbers option true or false.
Returns:
the boolean value that specifies to show Line Numbers in compare views.

getEOLOption

public java.lang.String getEOLOption()
Returns Write EOLs option for Saved files.
Returns:
the String value of "DOS", "MacOS" or "Unix" specifies the format for writing End-Of-Lines in Saved Files.

getMatchingFont

public java.awt.Font getMatchingFont()
Returns the Matching text font option.
Returns:
the Font for Matching text.

getInsertsFont

public java.awt.Font getInsertsFont()
Returns the Inserted text font option.
Returns:
the Font for Inserted text.

getDeletesFont

public java.awt.Font getDeletesFont()
Returns the Deleted text font option.
Returns:
the Font for Deleted text.

getBackgroundColor

public java.awt.Color getBackgroundColor()
Returns the Background color option.
Returns:
the Color for Backgrounds.

getMatchingColor

public java.awt.Color getMatchingColor()
Returns the Matching text foreground color option.
Returns:
the Color for Matching text foreground.

getInsertsColor

public java.awt.Color getInsertsColor()
Returns the Inserted text foreground color option.
Returns:
the Color for Inserted text foreground.

getDeletesColor

public java.awt.Color getDeletesColor()
Returns the Deleted text foreground color option.
Returns:
the Color for Deleted text foreground.

getViewTogether

public boolean getViewTogether()
Returns View Together option true or false.
Returns:
the boolean value that specifies to show differences together in one compare view.

getViewSplitVertical

public boolean getViewSplitVertical()
Returns View Split Vertical option true or false.
Returns:
the boolean value that specifies to show differences split vertically side-by-side in compare views.

getViewSplitHorizontal

public boolean getViewSplitHorizontal()
Returns View Split Horizontal option true or false.
Returns:
the boolean value that specifies to show differences split horizontally one-over-the-other in compare views.

getToolBarVisible

public boolean getToolBarVisible()
Returns ToolBarVisible option true or false.
Returns:
the boolean value for ToolBarVisible.

getStatusBarVisible

public boolean getStatusBarVisible()
Returns StatusBarVisible option true or false.
Returns:
the boolean value for StatusBarVisible.

getFilenameHeadersVisible

public boolean getFilenameHeadersVisible()
Returns FilenameHeadersVisible option true or false.
Returns:
the boolean value for FilenameHeadersVisible.

getLinexLineVisible

public boolean getLinexLineVisible()
Returns View display Line-by-Line option true or false.
Returns:
the boolean value for LinexLineVisible.

getFileTreeVisible

public boolean getFileTreeVisible()
Returns View display folder compares as TRee option true or false.
Returns:
the boolean value for FileTreeVisible.

getAllowFileCompares

public boolean getAllowFileCompares()
Returns AllowFileCompares setting true or false.
Returns:
the boolean value for AllowFileCompares.

getAllowFolderCompares

public boolean getAllowFolderCompares()
Returns AllowFolderCompares setting true or false.
Returns:
the boolean value for AllowFolderCompares.

getAllowMerges

public boolean getAllowMerges()
Returns AllowMerges setting true or false.
Returns:
the boolean value for AllowMerges.

getPM

public java.lang.String getPM()
Returns the prefix for Merge FileName header.
Returns:
the prefix for the Merge filename header.

getP1

public java.lang.String getP1()
Returns the prefix for 1st FileName header.
Returns:
the prefix for the 1st filename header.

getP2

public java.lang.String getP2()
Returns the prefix for 2nd FileName header.
Returns:
the prefix for the 2nd filename header.

getAutoDiff

public boolean getAutoDiff()
Returns AutoDiff setting true or false.
Returns:
the boolean value for AutoDiff.

getAutoHTML

public boolean getAutoHTML()
Returns AutoMTML setting true or false.
Returns:
the boolean value for AutoHTML.

getAutoMerg

public boolean getAutoMerg()
Returns AutoMerg setting true or false.
Returns:
the boolean value for AutoMerg.

getAutoRCS

public boolean getAutoRCS()
Returns AutoRCS setting true or false.
Returns:
the boolean value for AutoRCS.

getMinimumLinesDiff

public boolean getMinimumLinesDiff()
Returns Minimize Lines Changed Diff option true or false.
Returns:
the boolean value for Minimum Lines Diff option.

getMinimumBlocksDiff

public boolean getMinimumBlocksDiff()
Returns Minimize Blocks Changed Diff option true or false.
Returns:
the boolean value for Minimum Blocks Diff option.

getExpandedFocus

public int getExpandedFocus()
Returns Attention(conflict) Focus Expander value.
Returns:
the integer value that expands the attention(conflict) focus.

getSaveSettings

public int getSaveSettings()
Returns Auto Save Settings control.
Returns:
the integer value that controls the auto save settings. (SAVESETS_OFF, SAVESETS_ONPROMPT, or SAVESETS_ONQUIET)