|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.page.JCTab
JCTab
objects define tab positions in flowed text.
Field Summary | |
protected JCUnit.Measure |
position
The tab position from the left margin of the frame. |
static int |
TAB_ALIGNMENT_CENTER
|
static int |
TAB_ALIGNMENT_DECIMAL
|
static int |
TAB_ALIGNMENT_LEFT
|
static int |
TAB_ALIGNMENT_RIGHT
|
static int |
TAB_FILL_DOTS
|
static int |
TAB_FILL_NONE
|
static int |
TAB_FILL_UNDERLINE
|
protected int |
tabAlignment
Alignment direction of text to the tab position. |
protected int |
tabFill
Fill pattern to the left of the tab (tab leader). |
Constructor Summary | |
JCTab()
Creates an unset (left-aligned, no fill, left margin) tab. |
|
JCTab(JCUnit.Measure location)
Creates a (left-aligned) tab at the given location. |
|
JCTab(JCUnit.Measure location,
int alignment)
Creates a tab at the given location with the specified alignment. |
Method Summary | |
Object |
clone()
Creates a new tab which is a copy of this one. |
int |
comparePosition(com.klg.jclass.page.JCTab new_tab)
Compares two tab positions. |
boolean |
equals(Object o)
Ensure that two JCTab objects with identical parameters returns true
when tested for equality. |
JCUnit.Measure |
getPosition()
Gets the position of the tab measured from the left margin. |
int |
getTabAlignment()
Gets the alignment of text to the tab. |
int |
getTabFill()
Gets the tab leader fill pattern. |
int |
hashCode()
Ensure that two JCTab objects with identical parameters have the same
hash code. |
void |
setPosition(JCUnit.Measure position)
Specifies the position of the tab measured from the left margin. |
void |
setTabAlignment(int alignment)
Specifies how text is aligned to the tab position (right, left, center, or decimal). |
void |
setTabFill(int fill_type)
Sets the tab leader fill pattern (none, underline, dots). |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JCUnit.Measure position
protected int tabAlignment
protected int tabFill
public static final int TAB_ALIGNMENT_LEFT
public static final int TAB_ALIGNMENT_RIGHT
public static final int TAB_ALIGNMENT_CENTER
public static final int TAB_ALIGNMENT_DECIMAL
public static final int TAB_FILL_NONE
public static final int TAB_FILL_UNDERLINE
public static final int TAB_FILL_DOTS
Constructor Detail |
public JCTab()
public JCTab(JCUnit.Measure location)
location
- the position for the new tabpublic JCTab(JCUnit.Measure location, int alignment)
location
- the position for the new tabalignment
- the alignment of text to the tabMethod Detail |
public JCUnit.Measure getPosition()
public void setPosition(JCUnit.Measure position)
position
- the horizontal position of the tabpublic int getTabAlignment()
public void setTabAlignment(int alignment)
alignment
- method for aligning text to the tab positionpublic int getTabFill()
public void setTabFill(int fill_type)
fill_type
- the pattern used to draw the leader line of a tabpublic int comparePosition(com.klg.jclass.page.JCTab new_tab)
new_tab
- a tab to compare to this tab
public boolean equals(Object o)
JCTab
objects with identical parameters returns true
when tested for equality.
equals
in class Object
o
-
public int hashCode()
JCTab
objects with identical parameters have the same
hash code.
hashCode
in class Object
public Object clone()
clone
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |