|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectExternalMarkImpl
public class ExternalMarkImpl
Default implementation of ExternalMark.
| Constructor Summary | |
|---|---|
ExternalMarkImpl()
|
|
ExternalMarkImpl(Icon icon)
|
|
ExternalMarkImpl(OnLineResource resource,
String format,
int markIndex)
|
|
| Method Summary | |
|---|---|
Object |
accept(StyleVisitor visitor,
Object extraData)
calls the visit method of a StyleVisitor |
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)
|
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 class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExternalMarkImpl()
public ExternalMarkImpl(Icon icon)
public ExternalMarkImpl(OnLineResource resource,
String format,
int markIndex)
| Method Detail |
|---|
public String getFormat()
ExternalMarkCommon examples:
getFormat in interface ExternalMarkpublic Icon getInlineContent()
ExternalMark
getInlineContent in interface ExternalMarknullpublic int getMarkIndex()
ExternalMark
getMarkIndex in interface ExternalMarkpublic OnLineResource getOnlineResource()
ExternalMarkOnly one of OnlineResource or InlineContent can be supplied.
getOnlineResource in interface ExternalMarknull
public Object accept(StyleVisitor visitor,
Object extraData)
ExternalMark
accept in interface ExternalMarkvisitor - the style visitorpublic void setInlineContent(Icon inline)
ExternalMarkThis is often a SwingImageIcon with a format defined by getFormat()
public void getInlineContent(Icon inline)
public void setFormat(String mimeType)
mimeType - Mime type of external (or internal) resourcepublic void setMarkIndex(int markIndex)
ExternalMark
public void setOnlineResource(OnLineResource resource)
resource - Online resource with format defined by getFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||