|
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.Group com.cete.dynamicpdf.pageelements.TransparencyGroup
public class TransparencyGroup
This class can be used to add transparency to page elements. Any page element that is placed in this group will be displayed with the transparency values and attributes of this group.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
Nested Class Summary | |
---|---|
static class |
TransparencyGroup.Transparency
|
Constructor Summary | |
---|---|
TransparencyGroup(float alpha)
Initializes a new instance of the TransparencyGroup class. |
|
TransparencyGroup(float alpha,
BlendMode blendMode)
Initializes a new instance of the TransparencyGroup . |
Method Summary | |
---|---|
void |
draw(PageWriter writer)
Draws the transparency group to the given PageWriter object. |
BlendMode |
getBlendMode()
Gets the blend mode value. |
float |
getFillAlpha()
Gets the fill alpha value. |
float |
getStrokeAlpha()
Gets the stroke alpha value. |
void |
setBlendMode(BlendMode value)
Sets the blend mode value. |
void |
setFillAlpha(float value)
Sets the Fill alpha value. |
void |
setStrokeAlpha(float value)
Sets the stroke value. |
Methods inherited from class com.cete.dynamicpdf.pageelements.Group |
---|
add, getEnumerator, getPageElement, getPageElement, getPageElementByID, hasElements, hasPageElements, insert, size |
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 |
Constructor Detail |
---|
public TransparencyGroup(float alpha)
TransparencyGroup
class.
An alpha value of 0 represents full transparency meaning the page
elements will not be visible. An alpha value of 1
means the page elements will have no transparency.
alpha
- amount of transparency the group will have.public TransparencyGroup(float alpha, BlendMode blendMode)
TransparencyGroup
.
An alpha value of 0 represents full transparency meaning the page
elements will not be visible. An alpha value of 1
means the page elements will have no transparency.
alpha
- amount of transparency the group will have.blendMode
- BlendMode
to use for the transparency group.Method Detail |
---|
public void draw(PageWriter writer)
PageWriter
object.
draw
in class Group
writer
- PageWriter
object to receive the transparency group's output.PageWriter
public float getStrokeAlpha()
public void setStrokeAlpha(float value)
value
- the stroke value.public float getFillAlpha()
public void setFillAlpha(float value)
value
- the Fill alpha value.public BlendMode getBlendMode()
BlendMode
public void setBlendMode(BlendMode value)
value
- the blend mode value.BlendMode
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |