|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfclown.documents.contents.objects.ContentObject
org.pdfclown.documents.contents.objects.Operation
org.pdfclown.documents.contents.objects.SetFont
@PDF(value=PDF10) public final class SetFont
'Set the text font' operation [PDF:1.6:5.2].
| Field Summary | |
|---|---|
static String |
Operator
|
| Fields inherited from class org.pdfclown.documents.contents.objects.Operation |
|---|
operands, operator |
| Constructor Summary | |
|---|---|
SetFont(List<PdfDirectObject> operands)
|
|
SetFont(PdfName name,
double size)
|
|
| Method Summary | |
|---|---|
Font |
getFont(IContentContext context)
Gets the font resource to be set. |
PdfName |
getName()
Gets the resource name. |
Font |
getResource(IContentContext context)
Gets the referenced resource. |
double |
getSize()
Gets the font size to be set. |
void |
scan(ContentScanner.GraphicsState state)
Applies this object to the specified graphics context, updating the specified graphics state. |
void |
setName(PdfName value)
|
void |
setSize(double value)
|
| Methods inherited from class org.pdfclown.documents.contents.objects.Operation |
|---|
get, getOperands, getOperator, toString, writeTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String Operator
| Constructor Detail |
|---|
public SetFont(PdfName name,
double size)
public SetFont(List<PdfDirectObject> operands)
| Method Detail |
|---|
public Font getFont(IContentContext context)
font resource to be set.
context - Content context.public double getSize()
public void scan(ContentScanner.GraphicsState state)
ContentObject
scan in class ContentObjectstate - Graphics state.public void setSize(double value)
getSize()public PdfName getName()
IResourceReference
getName in interface IResourceReference<Font>IResourceReference.getResource(IContentContext),
Resourcespublic Font getResource(IContentContext context)
IResourceReferenceWhether a resource name is available or not, it can be respectively either
shared or private.
getResource in interface IResourceReference<Font>context - Content context.public void setName(PdfName value)
setName in interface IResourceReference<Font>IResourceReference.getName()
|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||