< prev index next >
src/java.desktop/share/classes/javax/swing/text/TabStop.java
Print this page
@@ -57,22 +57,29 @@
/** Characters following tab are aligned such that next
* decimal/tab/newline is at the tab location, very similar to
* RIGHT_TAB, just includes decimal as additional character to look for.
*/
public static final int ALIGN_DECIMAL = 4;
+ /** Align bar */
public static final int ALIGN_BAR = 5;
/* Bar tabs (whatever they are) are actually a separate kind of tab
in the RTF spec. However, being a bar tab and having alignment
properties are mutually exclusive, so the reader treats barness
as being a kind of alignment. */
+ /** Lead none */
public static final int LEAD_NONE = 0;
+ /** Lead dots */
public static final int LEAD_DOTS = 1;
+ /** Lead hyphens */
public static final int LEAD_HYPHENS = 2;
+ /** Lead underline */
public static final int LEAD_UNDERLINE = 3;
+ /** Lead thickline */
public static final int LEAD_THICKLINE = 4;
+ /** Lead equals */
public static final int LEAD_EQUALS = 5;
/** Tab type. */
private int alignment;
/** Location, from the left margin, that tab is at. */
@@ -80,18 +87,22 @@
private int leader;
/**
* Creates a tab at position <code>pos</code> with a default alignment
* and default leader.
+ * @param pos position of the tab
*/
public TabStop(float pos) {
this(pos, ALIGN_LEFT, LEAD_NONE);
}
/**
* Creates a tab with the specified position <code>pos</code>,
* alignment <code>align</code> and leader <code>leader</code>.
+ * @param pos position of the tab
+ * @param align alignment of the tab
+ * @param leader leader of the tab
*/
public TabStop(float pos, int align, int leader) {
alignment = align;
this.leader = leader;
position = pos;
< prev index next >