public class TagProcessingState
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TagProcessingState.TextAlignment
Enumeration to specify the text alignment in a paragraph.
|
| Constructor and Description |
|---|
TagProcessingState() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateNextLine() |
void |
addPreviousBgColor(org.eclipse.swt.graphics.Color prevBgColor)
Add the given
Color to the stack of previous set background colors. |
void |
addPreviousColor(org.eclipse.swt.graphics.Color prevColor)
Add the given
Color to the stack of previous set foreground colors. |
void |
addPreviousFont(org.eclipse.swt.graphics.Font font)
Add the given
Font to the stack of previous set fonts. |
void |
calculateX(int areaWidth) |
org.eclipse.swt.graphics.FontMetrics |
getCurrentBiggestFontMetrics() |
LinePainter |
getCurrentLine() |
int |
getCurrentLineHeight() |
java.lang.Integer |
getCurrentListNumber() |
int |
getListDepth() |
int |
getListMargin() |
int |
getMarginLeft() |
int |
getParagraphCount() |
org.eclipse.swt.graphics.Point |
getPointer() |
TagProcessingState.TextAlignment |
getTextAlignment() |
boolean |
hasPreviousBgColor() |
void |
increaseCurrentListNumber() |
void |
increaseParagraphCount() |
void |
increaseX(int x) |
void |
increaseY(int y) |
void |
initCurrentListNumber() |
boolean |
isOrderedList() |
boolean |
isRendering() |
boolean |
isStrikethroughActive() |
boolean |
isUnderlineActive() |
org.eclipse.swt.graphics.Color |
pollPreviousBgColor()
Removes and returns the last color from the previous background color stack.
|
org.eclipse.swt.graphics.Color |
pollPreviousColor()
Removes and returns the last color from the previous foreground color stack.
|
org.eclipse.swt.graphics.Font |
pollPreviousFont()
Removes and returns the last font from the previous font stack.
|
void |
resetListConfiguration() |
void |
resetX()
Reset the x coordinate of the pointer to the value of the left margin.
|
void |
setLineIterator(java.util.Iterator<LinePainter> lineIterator) |
void |
setListMargin(int listMargin) |
void |
setMarginLeft(int marginLeft) |
void |
setOrderedList(boolean orderedList) |
void |
setRendering(boolean render) |
void |
setStartingPoint(int startX,
int startY) |
void |
setStrikethroughActive(boolean strikethroughActive) |
void |
setTextAlignment(TagProcessingState.TextAlignment textAlignment) |
void |
setUnderlineActive(boolean underlineActive) |
void |
setX(int x) |
void |
setY(int y) |
public void addPreviousColor(org.eclipse.swt.graphics.Color prevColor)
Color to the stack of previous set foreground colors.prevColor - The Color to add to the previous foreground color stack.public org.eclipse.swt.graphics.Color pollPreviousColor()
Color that was added to the previous foreground color stack.public void addPreviousBgColor(org.eclipse.swt.graphics.Color prevBgColor)
Color to the stack of previous set background colors.prevBgColor - The Color to add to the previous background color stack.public org.eclipse.swt.graphics.Color pollPreviousBgColor()
Color that was added to the previous background color stack.public boolean hasPreviousBgColor()
true if there is a previous background color registered on the stack,
false if not.public void addPreviousFont(org.eclipse.swt.graphics.Font font)
Font to the stack of previous set fonts.font - The Font to add to the previous font stackpublic org.eclipse.swt.graphics.Font pollPreviousFont()
Font that was added to the previous font stack.public boolean isUnderlineActive()
true if underline styling is active, false if not.public void setUnderlineActive(boolean underlineActive)
underlineActive - true if underline styling should be active, false if
not.public boolean isStrikethroughActive()
true if strikethrough styling is active, false if not.public void setStrikethroughActive(boolean strikethroughActive)
strikethroughActive - true if strikethrough styling should be active, false if
not.public void setStartingPoint(int startX,
int startY)
public org.eclipse.swt.graphics.Point getPointer()
public void increaseX(int x)
public void increaseY(int y)
public void setX(int x)
public void setY(int y)
public void resetX()
public void calculateX(int areaWidth)
public int getMarginLeft()
public void setMarginLeft(int marginLeft)
public TagProcessingState.TextAlignment getTextAlignment()
public void setTextAlignment(TagProcessingState.TextAlignment textAlignment)
public LinePainter getCurrentLine()
public void setLineIterator(java.util.Iterator<LinePainter> lineIterator)
public void activateNextLine()
public int getCurrentLineHeight()
public org.eclipse.swt.graphics.FontMetrics getCurrentBiggestFontMetrics()
public boolean isRendering()
public void setRendering(boolean render)
public boolean isOrderedList()
public void setOrderedList(boolean orderedList)
public int getListMargin()
public void setListMargin(int listMargin)
public java.lang.Integer getCurrentListNumber()
public void initCurrentListNumber()
public void increaseCurrentListNumber()
public int getListDepth()
public void resetListConfiguration()
public int getParagraphCount()
public void increaseParagraphCount()