|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExternalMark
Specify a mark using an image files (svg, png, gif) or using mark index a true type font file.
Please note that not all render can handle all image file formats; please organize your marks into a preferred order with the most specific (say SVG) followed by common formats (PNG, GIF) and ending with an appropriate WellKnownName.
| Method Summary | |
|---|---|
String |
getFormat()
Mime type of the onlineResource/InlineContent Common examples: image/svg image/png image/gif This information is used by a renderer to determine if it can support the image format being supplied. |
Icon |
getInlineContent()
Inline content. |
void |
getInlineContent(Icon inline)
Deprecated. use setInlineContent(Icon) |
int |
getMarkIndex()
Returns an integer value that can used for accessing a particular Font character in a TTF file or a catalog for example. |
OnLineResource |
getOnlineResource()
Online resource defined by an URI. |
void |
setFormat(String mimeType)
|
void |
setInlineContent(Icon inline)
Icon to use for inline content. |
void |
setMarkIndex(int markIndex)
Mark index used to specify true type font character; or frame of an animated gif. |
void |
setOnlineResource(OnLineResource resource)
|
| Methods inherited from interface ExternalMark |
|---|
accept |
| Method Detail |
|---|
OnLineResource getOnlineResource()
Only one of OnlineResource or InlineContent can be supplied.
getOnlineResource in interface ExternalMarknullvoid setOnlineResource(OnLineResource resource)
resource - Online resource with format defined by getFormat()Icon getInlineContent()
getInlineContent in interface ExternalMarknullvoid setInlineContent(Icon inline)
This is often a SwingImageIcon with a format defined by getFormat()
inline - void getInlineContent(Icon inline)
setInlineContent(Icon)
String getFormat()
Common examples:
getFormat in interface ExternalMarkvoid setFormat(String mimeType)
mimeType - Mime type of external (or internal) resourceint getMarkIndex()
getMarkIndex in interface ExternalMarkvoid setMarkIndex(int markIndex)
markIndex -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||