| Modifier and Type | Class and Description |
|---|---|
static class |
Fragment.Image.View
A View is a representation of an image at a specific size
|
Fragment.Color, Fragment.CompositeSlice, Fragment.Date, Fragment.DocumentLink, Fragment.Embed, Fragment.FileLink, Fragment.GeoPoint, Fragment.Group, Fragment.Image, Fragment.ImageLink, Fragment.Link, Fragment.Number, Fragment.SimpleSlice, Fragment.Slice, Fragment.SliceZone, Fragment.StructuredText, Fragment.Text, Fragment.Timestamp, Fragment.WebLink| Constructor and Description |
|---|
Image(Fragment.Image.View main) |
Image(Fragment.Image.View main,
Map<String,Fragment.Image.View> views) |
| Modifier and Type | Method and Description |
|---|---|
String |
asHtml(LinkResolver linkResolver) |
String |
getAlt() |
String |
getCopyright() |
int |
getHeight() |
String |
getUrl() |
Fragment.Image.View |
getView(String view)
Get a specific size of the image
|
int |
getWidth() |
static Fragment.Image |
parse(com.fasterxml.jackson.databind.JsonNode json) |
public Image(Fragment.Image.View main, Map<String,Fragment.Image.View> views)
public Image(Fragment.Image.View main)
public Fragment.Image.View getView(String view)
view - either "main", or a view as defined in the repository ("icon", "small", etc.)public String asHtml(LinkResolver linkResolver)
public String getUrl()
public int getWidth()
public int getHeight()
public String getAlt()
public String getCopyright()
public static Fragment.Image parse(com.fasterxml.jackson.databind.JsonNode json)
Copyright © 2017. All rights reserved.