@Immutable public final class SImage extends Object implements SParagraphContent, SLinkContent, SListItemContent, SFootnoteContent, SFormalItemContent, STableCellContent
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
<A> A |
footnoteContentAccept(SFootnoteContentVisitor<A> v)
Accept a footnote content visitor.
|
<A> A |
formalItemContentAccept(SFormalItemContentVisitor<A> v)
Accept a formal item content visitor.
|
com.io7m.jfunctional.OptionType<Integer> |
getHeight() |
String |
getText() |
com.io7m.jfunctional.OptionType<String> |
getType() |
URI |
getURI() |
com.io7m.jfunctional.OptionType<Integer> |
getWidth() |
int |
hashCode() |
static SImage |
image(URI uri,
String text)
Construct a image with the given URI.
|
static SImage |
imageHeight(URI uri,
int height,
String text)
Construct a image with the given URI, type attribute, and height.
|
static SImage |
imageTyped(URI uri,
String type,
String text)
Construct a image with the given URI, type attribute.
|
static SImage |
imageTypedHeight(URI uri,
String type,
int height,
String text)
Construct a image with the given URI, type attribute, and height.
|
static SImage |
imageTypedWidth(URI uri,
String type,
int width,
String text)
Construct a image with the given URI, type attribute, and width.
|
static SImage |
imageTypedWidthHeight(URI uri,
String type,
int width,
int height,
String text)
Construct a image with the given URI, type attribute, and width/height.
|
static SImage |
imageWidth(URI uri,
int width,
String text)
Construct a image with the given URI, type attribute, and width.
|
static SImage |
imageWidthHeight(URI uri,
int width,
int height,
String text)
Construct a image with the given URI, type attribute, and width/height.
|
<A> A |
linkContentAccept(SLinkContentVisitor<A> v)
Accept a link content visitor.
|
<A> A |
listItemContentAccept(SListItemContentVisitor<A> v)
Accept a list item content visitor.
|
<A> A |
paragraphContentAccept(SParagraphContentVisitor<A> v)
Accept a paragraph content visitor.
|
<A> A |
tableCellContentAccept(STableCellContentVisitor<A> v)
Accept a table cell content visitor.
|
public static SImage image(URI uri, String text)
uri - The URItext - The image textpublic static SImage imageHeight(URI uri, int height, String text)
uri - The URIheight - The heighttext - The image textpublic static SImage imageTyped(URI uri, String type, String text)
uri - The URItype - The type attributetext - The image textpublic static SImage imageTypedHeight(URI uri, String type, int height, String text)
uri - The URItype - The type attributeheight - The heighttext - The image textpublic static SImage imageTypedWidth(URI uri, String type, int width, String text)
uri - The URItype - The type attributewidth - The widthtext - The image textpublic static SImage imageTypedWidthHeight(URI uri, String type, int width, int height, String text)
uri - The URItype - The type attributewidth - The widthheight - The heighttext - The image textpublic static SImage imageWidth(URI uri, int width, String text)
uri - The URIwidth - The widthtext - The image textpublic static SImage imageWidthHeight(URI uri, int width, int height, String text)
uri - The URIwidth - The widthheight - The heighttext - The image textpublic <A> A footnoteContentAccept(SFootnoteContentVisitor<A> v) throws Exception
SFootnoteContentfootnoteContentAccept in interface SFootnoteContentA - The type of values returned by the visitorv - The visitorException - If the visitor raises and Exceptionpublic <A> A formalItemContentAccept(SFormalItemContentVisitor<A> v) throws Exception
SFormalItemContentformalItemContentAccept in interface SFormalItemContentA - The type of values returned by the visitorv - The visitorException - If the visitor raises and Exceptionpublic com.io7m.jfunctional.OptionType<Integer> getHeight()
public String getText()
public com.io7m.jfunctional.OptionType<String> getType()
public URI getURI()
public com.io7m.jfunctional.OptionType<Integer> getWidth()
public <A> A linkContentAccept(SLinkContentVisitor<A> v) throws Exception
SLinkContentlinkContentAccept in interface SLinkContentA - The type of values returned by the visitorv - The visitorException - If the visitor raises and Exceptionpublic <A> A listItemContentAccept(SListItemContentVisitor<A> v) throws Exception
SListItemContentlistItemContentAccept in interface SListItemContentA - The type of values returned by the visitorv - The visitorException - If the visitor raises and Exceptionpublic <A> A paragraphContentAccept(SParagraphContentVisitor<A> v) throws Exception
SParagraphContentparagraphContentAccept in interface SParagraphContentA - The type of values returned by the visitorv - The visitorException - If the visitor raises and Exceptionpublic <A> A tableCellContentAccept(STableCellContentVisitor<A> v) throws Exception
STableCellContenttableCellContentAccept in interface STableCellContentA - The type of values returned by the visitorv - The visitorException - If the visitor raises and ExceptionCopyright © 2016 <code@io7m.com> http://io7m.com