|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
AnnotationInterface defines the interface necessary to access and modify information for an Annotation. Line index values are 1-based, while alignment values should be one of the values from com.sas.visuals.Alignment.
Alignment| Method Summary | |
void |
addTransformInterface(String text,
TransformInterface formatter)
add a TransformInterface for the given string |
Object |
clone()
clone the implementation |
void |
setBottomMargin(Length margin)
set the bottom margin |
void |
setFont(Font font)
set the font for all lines in the annotation |
void |
setFont(Font font,
int lineNumber)
set the font for a specific line (all Alignments) in the annotation |
void |
setFont(Font font,
int lineNumber,
int align)
set the font for a specific line (all Alignments) in the annotation |
void |
setForeground(Color color)
set the color for all lines in the annotation |
void |
setForeground(Color color,
int lineNumber)
set the color for a specific line (all Alignments) in the annotation |
void |
setForeground(Color color,
int lineNumber,
int align)
set the color for a specific line at a specific Alignment in the annotation |
void |
setLeftMargin(Length margin)
set the left margin |
void |
setMessage(String message,
int line,
int align)
set the message format string for a line at a given Alignment. |
void |
setRightMargin(Length margin)
set the right margin |
void |
setTopMargin(Length margin)
sets the top margin |
void |
setVerticalJustification(int justification)
set the vertical Alignment for the annotation. |
| Methods inherited from interface com.sas.awt.print.StaticAnnotationInterface |
getBottomMargin, getFont, getForeground, getLeftMargin, getLineCount, getMessage, getRightMargin, getText, getTopMargin, getVerticalJustification |
| Method Detail |
public void setMessage(String message,
int line,
int align)
String - message format stringint - line numberint - Alignment value
public void addTransformInterface(String text,
TransformInterface formatter)
String - to translateTransformInterface - - formatterpublic void setForeground(Color color)
color - the new line color.
public void setForeground(Color color,
int lineNumber)
color - the new line color.lineNumber - the line number of the message
public void setForeground(Color color,
int lineNumber,
int align)
color - the new line color.int - line number of the messageint - Alignment valuepublic void setFont(Font font)
font - the new line font.
public void setFont(Font font,
int lineNumber)
font - the new line font.lineNumber - the line number of the message
public void setFont(Font font,
int lineNumber,
int align)
Font - the new line font.int - the line number of the messageint - Alignment valuepublic void setTopMargin(Length margin)
Length - com.sas.measures.Length specifying the top marginpublic void setBottomMargin(Length margin)
Length - com.sas.measures.Length specifying the bottom marginpublic void setLeftMargin(Length margin)
Length - com.sas.measures.Length specifying the left marginpublic void setRightMargin(Length margin)
Length - com.sas.measures.Length specifying the right marginpublic void setVerticalJustification(int justification)
int - vertical Alignmentpublic Object clone()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||