public class PreviewPubDisplay
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
LENGTHBIGTITLE |
static int |
LENGTHLINEABSTRACTFOURPUBSPERROWMODEL1 |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getBestPubsLayout(java.util.List<PubDisplayStyle> pubsDisplayStyle,
boolean headlineMode)
Previews the best layout for a list of publications
|
static float |
previewHeightOfCard(PubDisplayStyle pubDisplayStyle,
long widthImagePub,
int lengthLineTitle,
int lengthLineAbstract,
boolean isBigItem,
float fixHeightImage,
boolean testBigTitle)
Previews the height of a card associated with a layout
|
public static final int LENGTHLINEABSTRACTFOURPUBSPERROWMODEL1
public static final int LENGTHBIGTITLE
public static java.lang.String getBestPubsLayout(java.util.List<PubDisplayStyle> pubsDisplayStyle, boolean headlineMode)
pubsDisplayStyle
- publications settings for creation of cardheadlineMode
- publication mode on the headlinespublic static float previewHeightOfCard(PubDisplayStyle pubDisplayStyle, long widthImagePub, int lengthLineTitle, int lengthLineAbstract, boolean isBigItem, float fixHeightImage, boolean testBigTitle)
pubDisplayStyle
- publications settings for creation of cardwidthImagePub
- width of a publication imagelengthLineTitle
- number of characters of the title on one linelengthLineAbstract
- number of characters of the abstract on one lineisBigItem
- boolean who indicates if card has a big widthfixHeightImage
- the fixed size of the imagetestBigTitle
- boolean who indicates if we take into consideration the length of the titleCopyright © 2001-2021 Jalios SA. All Rights Reserved.