com.borland.jbuilder.jot
Class JotFormatting

java.lang.Object
  |
  +--com.borland.jbuilder.jot.JotFormatting

public class JotFormatting
extends java.lang.Object


Field Summary
static int CUSTOM_STYLE
           
static int DEFAULT_STYLE
           
static int EXDENTED_STYLE
           
static int INDENTED_STYLE
           
static int KNR_STYLE
           
static int WHITESMITH_STYLE
           
 
Constructor Summary
JotFormatting()
           
 
Method Summary
 int addBasicOffset(int level)
           
 int addBraceOffset(int level)
           
 int addContinuedBraceOffset(int level)
           
 int addContinuedOffset(int level)
           
 int addLabelOffset(int level)
           
 int getBasicOffset()
           
 java.lang.String getBraces(int indentLevel)
           
 java.lang.String getIndent(int indentLevel)
          Returns a string containing the proper whitespace to indent to the given level.
 java.lang.String getLabelIndent(int indentLevel)
           
 int getStyle()
           
 void setBasicOffset(int basicOffset)
           
 void setStyle(int style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STYLE

public static final int DEFAULT_STYLE

EXDENTED_STYLE

public static final int EXDENTED_STYLE

INDENTED_STYLE

public static final int INDENTED_STYLE

CUSTOM_STYLE

public static final int CUSTOM_STYLE

KNR_STYLE

public static final int KNR_STYLE

WHITESMITH_STYLE

public static final int WHITESMITH_STYLE
Constructor Detail

JotFormatting

public JotFormatting()
Method Detail

getStyle

public int getStyle()

setStyle

public void setStyle(int style)

getBasicOffset

public int getBasicOffset()

setBasicOffset

public void setBasicOffset(int basicOffset)

getIndent

public java.lang.String getIndent(int indentLevel)
Returns a string containing the proper whitespace to indent to the given level. Will use tabs or spaces depending on isUseTabs

getLabelIndent

public java.lang.String getLabelIndent(int indentLevel)

getBraces

public java.lang.String getBraces(int indentLevel)

addBasicOffset

public int addBasicOffset(int level)

addBraceOffset

public int addBraceOffset(int level)

addContinuedOffset

public int addContinuedOffset(int level)

addLabelOffset

public int addLabelOffset(int level)

addContinuedBraceOffset

public int addContinuedBraceOffset(int level)