|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.PageElement
|
+--com.cete.dynamicpdf.pageelements.RotatingPageElement
|
+--com.cete.dynamicpdf.pageelements.Label
This class can be used to place labels of text on a page.
View Example
| 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 Align 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. |
java.lang.String |
getText()
Gets the text of the label. |
Color |
getTextColor()
Gets the Color object to use for the text 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 Align 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 |
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 |
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.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()
Align enumeration that specifies the text alignment of the label.
Alignpublic void setAlign(TextAlign value)
Align enumeration that specifies the text alignment of the label.
Alignpublic 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.
VAlignpublic boolean getUnderline()
public void setUnderline(boolean value)
public boolean getRightToLeft()
public void setRightToLeft(boolean value)
public java.lang.String getText()
public void setText(java.lang.String value)
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.
Colorpublic 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.
Fontpublic float getFontSize()
public void setFontSize(float value)
public float getWidth()
getWidth in interface IAreapublic void setWidth(float value)
setWidth in interface IAreavalue - the float width of the area.public float getHeight()
getHeight in interface IAreagetHeight in class RotatingPageElementpublic void setHeight(float value)
setHeight in interface IAreasetHeight in class RotatingPageElementvalue - the float height of the area.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 | |||||||||