|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cete.dynamicpdf.PageElement
com.cete.dynamicpdf.pageelements.TaggablePageElement
com.cete.dynamicpdf.pageelements.RotatingPageElement
com.cete.dynamicpdf.pageelements.Label
public class Label
This class can be used to place labels of text on a page.
Licensing:
This class is a DynamicPDF Generator Community Edition feature.
| Constructor Summary | |
|---|---|
Label(java.lang.String text,
float x,
float y,
float width,
float height)
Creates a new instance of Label. |
|
Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font)
Creates a new instance of Label. |
|
Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font,
float fontSize)
Creates a new instance of Label. |
|
Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font,
float fontSize,
Color textColor)
Creates a new instance of Label. |
|
Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font,
float fontSize,
TextAlign align)
Creates a new instance of Label. |
|
Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font,
float fontSize,
TextAlign align,
Color textColor)
Creates a new instance of Label. |
|
| Method Summary | |
|---|---|
protected void |
drawRotated(PageWriter writer)
Draws the label to the given PageWriter object. |
TextAlign |
getAlign()
Gets the TextAlign enumeration that specifies the text alignment of the label. |
Font |
getFont()
Gets the Font object to use for the text of the label. |
float |
getFontSize()
Gets the font size for the text of the label. |
float |
getHeight()
Gets the height of the label. |
boolean |
getRightToLeft()
Gets a value indicating if text should be displayed right to left. |
boolean |
getStrikethrough()
Gets the strikeThrough for the text outline of the label.. |
java.lang.String |
getText()
Gets the text of the label. |
Color |
getTextColor()
Gets the Color object to use for the text of the label. |
Color |
getTextOutlineColor()
Gets the Color object to use for the text outline of the label. |
float |
getTextOutlineWidth()
Gets the line width to use for the text outline of the label.. |
boolean |
getUnderline()
Gets a value indicating if the label is underlined. |
VAlign |
getVAlign()
Gets the VAlign enumeration that specifies the vertical text alignment of the label. |
float |
getWidth()
Gets the width of the label. |
void |
setAlign(TextAlign value)
Sets the TextAlign enumeration that specifies the text alignment of the label. |
void |
setFont(Font value)
Sets the Font object to use for the text of the label. |
void |
setFontSize(float value)
Sets the font size for the text of the label. |
void |
setHeight(float value)
Sets the height of the label. |
void |
setRightToLeft(boolean value)
Sets a value indicating if text should be displayed right to left. |
void |
setStrikethrough(boolean value)
Sets the strikeThrough for the text outline of the label.. |
void |
setText(java.lang.String value)
Sets the text of the label. |
void |
setTextColor(Color value)
Sets the Color object to use for the text of the label. |
void |
setTextOutlineColor(Color value)
Sets the Color object to use for the text outline of the label. |
void |
setTextOutlineWidth(float value)
Sets the line width to use for the text outline of the label.. |
void |
setUnderline(boolean value)
Sets a value indicating if the label is underlined. |
void |
setVAlign(VAlign value)
Sets the VAlign enumeration that specifies the vertical text alignment of the label. |
void |
setWidth(float value)
Sets the width of the label. |
| Methods inherited from class com.cete.dynamicpdf.pageelements.RotatingPageElement |
|---|
draw, getAngle, getX, getY, setAngle, setX, setY |
| Methods inherited from class com.cete.dynamicpdf.pageelements.TaggablePageElement |
|---|
getTag, getTagOrder, setTag, setTagOrder |
| Methods inherited from class com.cete.dynamicpdf.PageElement |
|---|
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.cete.dynamicpdf.pageelements.ICoordinate |
|---|
getX, getY, setX, setY |
| Constructor Detail |
|---|
public Label(java.lang.String text,
float x,
float y,
float width,
float height)
Label.
text - Text to display in the label.x - X coordinate of the label.y - Y coordinate of the label.width - Width of the label.height - Height of the label.
public Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font)
Label.
text - Text to display in the label.x - X coordinate of the label.y - Y coordinate of the label.width - Width of the label.height - Height of the label.font - Font for the text of the label.
public Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font,
float fontSize)
Label.
text - Text to display in the label.x - X coordinate of the label.y - Y coordinate of the label.width - Width of the label.height - Height of the label.font - Font for the text of the label.fontSize - Font size of the text of the label.
public Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font,
float fontSize,
TextAlign align)
Label.
text - Text to display in the label.x - X coordinate of the label.y - Y coordinate of the label.width - Width of the label.height - Height of the label.font - Font for the text of the label.fontSize - Font size of the text of the label.align - Alignment of the text of the label.
public Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font,
float fontSize,
Color textColor)
Label.
text - Text to display in the label.x - X coordinate of the label.y - Y coordinate of the label.width - Width of the label.height - Height of the label.font - Font for the text of the label.fontSize - Font size of the text of the label.textColor - Color of the text of the label.
public Label(java.lang.String text,
float x,
float y,
float width,
float height,
Font font,
float fontSize,
TextAlign align,
Color textColor)
Label.
text - Text to display in the label.x - X coordinate of the label.y - Y coordinate of the label.width - Width of the label.height - Height of the label.font - Font for the text of the label.fontSize - Font size of the text of the label.align - Alignment of the text of the label.textColor - Color of the text of the label.| Method Detail |
|---|
public TextAlign getAlign()
TextAlign enumeration that specifies the text alignment of the label.
TextAlignpublic void setAlign(TextAlign value)
TextAlign enumeration that specifies the text alignment of the label.
value - the text alignment of the label.TextAlignpublic VAlign getVAlign()
VAlign enumeration that specifies the vertical text alignment of the label.
VAlignpublic void setVAlign(VAlign value)
VAlign enumeration that specifies the vertical text alignment of the label.
value - the text vertical alignment of the label.VAlignpublic boolean getUnderline()
public void setUnderline(boolean value)
value - underline property of the label.public boolean getRightToLeft()
public void setRightToLeft(boolean value)
value - indicating if text should be displayed right to left.public java.lang.String getText()
public void setText(java.lang.String value)
value - the text of the label.public Color getTextColor()
Color object to use for the text of the label.
Colorpublic void setTextColor(Color value)
Color object to use for the text of the label.
value - the text color of the label.Colorpublic Color getTextOutlineColor()
Color object to use for the text outline of the label.
Colorpublic void setTextOutlineColor(Color value)
Color object to use for the text outline of the label.
value - the text color of the text outline of the label.Colorpublic float getTextOutlineWidth()
public void setTextOutlineWidth(float value)
value - the text width of the text outline of the label.public boolean getStrikethrough()
public void setStrikethrough(boolean value)
value - the strikeThrough of the text outline of the label.public Font getFont()
Font object to use for the text of the label.
Fontpublic void setFont(Font value)
Font object to use for the text of the label.
value - the text font of the label.Fontpublic float getFontSize()
public void setFontSize(float value)
value - the font size for the text of the label.public float getWidth()
getWidth in interface IAreapublic void setWidth(float value)
setWidth in interface IAreavalue - the width of the label.public float getHeight()
getHeight in interface IAreagetHeight in class RotatingPageElementpublic void setHeight(float value)
setHeight in interface IAreasetHeight in class RotatingPageElementvalue - the height of the label.protected void drawRotated(PageWriter writer)
PageWriter object.
drawRotated in class RotatingPageElementwriter - PageWriter object to receive the label's output.PageWriter
|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||