ConForM.CoopnTools.CoKer.CodeVisual
Interface CodeVisualEditor

All Known Implementing Classes:
CodeVisual

public interface CodeVisualEditor

Code Viewer Editor. Such an editor is able to perform editions of a Code Viewer


Method Summary
 void copy()
          Copy the selected section of document to system clipboard
 void export()
          Export the displayed document This first displays the export dialog
 void export(java.io.PrintWriter writer, int format, java.awt.Insets insets, int zoom, CoopnEnv env)
          Export the displayed document in the specified format
 void format()
          Display the format dialog and start the formatting process
 void format(java.io.PrintWriter writer, int format, boolean contextMode, boolean tabMode, CoopnEnv env)
          Format the document in the specified format
 void hideSelection()
          Hide the selected portion of the document
 boolean isCompressionMode()
           
 boolean isLineNoMode()
           
 boolean isPrettyMode()
           
 boolean isSymbolMode()
           
 void nozoom()
          Restore font to default size
 void print()
          Print the displayed document
 void quit()
          Dispose off the CodeViewer
 void resizeToFit()
          Resize the viewer to fit the size of the document up to the maximum size of the screen
 void scrollToShow()
          Scroll to show the selected section
 void selectAll()
          Perform the selectAll action
 void setAllBlack()
          Set a black color for the whole document.
 void setColor(java.awt.Color color)
          Set the foreground color of the selected portion of the document.
 void setCompressionMode(boolean value)
          Set the compression mode to the specified value
 void setLineNoMode(boolean value)
          Set the line number mode to specified value
 void setPrettyMode(boolean value)
          Set the pretty mode to the specified value
 void setSymbolMode(boolean value)
          Set the symbol mode to the specified value
 void showAll()
          Show all the hidden sections of the document
 java.lang.String title()
          Get the title of the displayed document.
 void zoomIn()
          Increase font
 void zoomOut()
          Decrease font
 

Method Detail

title

public java.lang.String title()
Get the title of the displayed document.

print

public void print()
Print the displayed document

export

public void export()
Export the displayed document This first displays the export dialog

export

public void export(java.io.PrintWriter writer,
                   int format,
                   java.awt.Insets insets,
                   int zoom,
                   CoopnEnv env)
Export the displayed document in the specified format

format

public void format()
Display the format dialog and start the formatting process

format

public void format(java.io.PrintWriter writer,
                   int format,
                   boolean contextMode,
                   boolean tabMode,
                   CoopnEnv env)
Format the document in the specified format

quit

public void quit()
Dispose off the CodeViewer

setColor

public void setColor(java.awt.Color color)
Set the foreground color of the selected portion of the document.

setAllBlack

public void setAllBlack()
Set a black color for the whole document.

hideSelection

public void hideSelection()
Hide the selected portion of the document

showAll

public void showAll()
Show all the hidden sections of the document

selectAll

public void selectAll()
Perform the selectAll action

copy

public void copy()
Copy the selected section of document to system clipboard

zoomIn

public void zoomIn()
Increase font

zoomOut

public void zoomOut()
Decrease font

nozoom

public void nozoom()
Restore font to default size

scrollToShow

public void scrollToShow()
Scroll to show the selected section

resizeToFit

public void resizeToFit()
Resize the viewer to fit the size of the document up to the maximum size of the screen

setLineNoMode

public void setLineNoMode(boolean value)
Set the line number mode to specified value
Parameters:
value - the value to set the mode to

setSymbolMode

public void setSymbolMode(boolean value)
Set the symbol mode to the specified value
Parameters:
value - the value to set the mode to

setCompressionMode

public void setCompressionMode(boolean value)
Set the compression mode to the specified value
Parameters:
value - the value to set the mode to

setPrettyMode

public void setPrettyMode(boolean value)
Set the pretty mode to the specified value
Parameters:
value - the value to set the mode to

isLineNoMode

public boolean isLineNoMode()
Returns:
the state of line number mode

isSymbolMode

public boolean isSymbolMode()
Returns:
the state of symbol mode

isCompressionMode

public boolean isCompressionMode()
Returns:
the state of compression mode

isPrettyMode

public boolean isPrettyMode()
Returns:
the state of pretty mode