@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
SFootnoteContent
footnoteContentAccept
in interface SFootnoteContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
public <A> A formalItemContentAccept(SFormalItemContentVisitor<A> v) throws Exception
SFormalItemContent
formalItemContentAccept
in interface SFormalItemContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
public 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
SLinkContent
linkContentAccept
in interface SLinkContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
public <A> A listItemContentAccept(SListItemContentVisitor<A> v) throws Exception
SListItemContent
listItemContentAccept
in interface SListItemContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
public <A> A paragraphContentAccept(SParagraphContentVisitor<A> v) throws Exception
SParagraphContent
paragraphContentAccept
in interface SParagraphContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
public <A> A tableCellContentAccept(STableCellContentVisitor<A> v) throws Exception
STableCellContent
tableCellContentAccept
in interface STableCellContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
Copyright © 2017 <code@io7m.com> http://io7m.com