public class LabelGenerator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
CIRCLE_SIZE
The Constant CIRCLE_SIZE.
|
static float |
ITEM_SCALE
The Constant ITEM_SCALE.
|
static float |
TEXT_HEIGHT
The Constant TEXT_HEIGHT.
|
static float |
TEXT_WIDTH_LIMIT
The Constant TEXT_WIDTH_LIMIT.
|
| Constructor and Description |
|---|
LabelGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static IItem |
generateFact(java.lang.String fact,
IStage stage)
Generate fact.
|
static IItem |
generateLink(java.lang.String link,
java.lang.String parent,
IStage stage,
MuseumApp app)
Generate link.
|
static ITextbox |
generateName(java.lang.String name,
IStage stage,
MuseumApp app)
Generate name.
|
public static final float TEXT_HEIGHT
public static final float CIRCLE_SIZE
public static final float ITEM_SCALE
public static final float TEXT_WIDTH_LIMIT
public static IItem generateFact(java.lang.String fact, IStage stage) throws ContentTypeNotBoundException
fact - the factstage - the stageContentTypeNotBoundException - the content type not bound exceptionpublic static IItem generateLink(java.lang.String link, java.lang.String parent, IStage stage, MuseumApp app) throws ContentTypeNotBoundException
link - the linkparent - the parentstage - the stageapp - the appContentTypeNotBoundException - the content type not bound exceptionpublic static ITextbox generateName(java.lang.String name, IStage stage, MuseumApp app) throws ContentTypeNotBoundException
name - the namestage - the stageapp - the appContentTypeNotBoundException - the content type not bound exception