de.uni_paderborn.fujaba.mpEdit
Class Ruler

java.lang.Object
  extended byde.uni_paderborn.fujaba.mpEdit.Ruler

public class Ruler
extends java.lang.Object

The Ruler is used to measure pixel lengths of strings.

Version:
$Revision: 1.14 $
Author:
$Author: schneider $

Constructor Summary
Ruler(de.uni_paderborn.fujaba.mpEdit.DocMan dm)
          Constructor for class Ruler
 
Method Summary
 void invalidate(int first, int last)
          No comment provided by developer, please add a comment to improve documentation.
 int length(int line, int column)
          No comment provided by developer, please add a comment to improve documentation.
 de.uni_paderborn.fujaba.mpEdit.TextPosition position(int line, int x)
          No comment provided by developer, please add a comment to improve documentation.
 void setFontMetrics(java.awt.FontMetrics fm)
          Sets the fontMetrics attribute of the Ruler object
 void setTabSize(int ts)
          Sets the tabSize attribute of the Ruler object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ruler

public Ruler(de.uni_paderborn.fujaba.mpEdit.DocMan dm)
Constructor for class Ruler

Parameters:
dm - No description provided
Method Detail

setFontMetrics

public void setFontMetrics(java.awt.FontMetrics fm)
Sets the fontMetrics attribute of the Ruler object

Parameters:
fm - The new fontMetrics value

setTabSize

public void setTabSize(int ts)
Sets the tabSize attribute of the Ruler object

Parameters:
ts - The new tabSize value

invalidate

public void invalidate(int first,
                       int last)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
first - No description provided
last - No description provided

length

public int length(int line,
                  int column)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
line - No description provided
column - No description provided
Returns:
No description provided

position

public de.uni_paderborn.fujaba.mpEdit.TextPosition position(int line,
                                                            int x)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
line - No description provided
x - No description provided
Returns:
No description provided