public class TabStop extends Object
Tab
is inserted. At least one TabStop must be defined on an element if you want to use Tabs
. This object can be added to a Paragraph
with the method Paragraph.addTabStops(com.itextpdf.layout.element.TabStop...)
.
Constructor and Description |
---|
TabStop(float tabPosition)
Creates a TabStop at the appropriate position.
|
TabStop(float tabPosition, TabAlignment tabAlignment)
Creates a TabStop at the appropriate position, with a specified tab alignment.
|
TabStop(float tabPosition, TabAlignment tabAlignment, ILineDrawer tabLeader)
Creates a TabStop at the appropriate position, with a specified tab alignment and an explicitly given line pattern.
|
Modifier and Type | Method and Description |
---|---|
TabAlignment |
getTabAlignment()
Returns the alignment of a tab stop, which defines the way the textual content should be positioned in regard to this tab stop.
|
Character |
getTabAnchor()
Returns the anchor of a tab stop.
|
ILineDrawer |
getTabLeader()
Returns the tab leader of a tab stop, which defines a pattern that should be repeated until the TabStop is reached.
|
float |
getTabPosition()
Returns the position of a tab stop.
|
void |
setTabAlignment(TabAlignment tabAlignment)
Sets the alignment, which defines the way the textual content should be positioned in regard to this tab stop.
|
void |
setTabAnchor(Character tabAnchor)
Sets the anchor of a tab stop.
|
void |
setTabLeader(ILineDrawer tabLeader)
Sets the tab leader of a tab stop, which defines a pattern that should be repeated until the TabStop is reached.
|
public TabStop(float tabPosition)
tabPosition
- a float
, measured in absolute points
public TabStop(float tabPosition, TabAlignment tabAlignment)
tabPosition
- a float
, measured in absolute points
tabAlignment
- a TabAlignment
value
public TabStop(float tabPosition, TabAlignment tabAlignment, ILineDrawer tabLeader)
tabPosition
- a float
, measured in absolute points
tabAlignment
- a TabAlignment
value
tabLeader
- the ILineDrawer
value, a pattern drawing object
public float getTabPosition()
public TabAlignment getTabAlignment()
TabAlignment
value
public void setTabAlignment(TabAlignment tabAlignment)
tabAlignment
- a TabAlignment
value
public Character getTabAnchor()
Character
value
public void setTabAnchor(Character tabAnchor)
tabAnchor
- a Character
value
public ILineDrawer getTabLeader()
ILineDrawer
value, a pattern drawing object
public void setTabLeader(ILineDrawer tabLeader)
tabLeader
- a ILineDrawer
value
Copyright © 1998–2022 iText Group NV. All rights reserved.