public abstract class Namer
extends java.lang.Object
| Constructor and Description |
|---|
Namer() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildName(Region r,
java.lang.String prefix,
java.lang.String suffix)
Builds a name based on a region
|
protected java.lang.String |
createFragment(java.lang.String dim_name,
ca.uqac.lif.json.JsonElement json_value)
Creates a fragment of a nickname based on a dimension and its associated
value
|
protected abstract java.lang.String |
createFragment(java.lang.String dim_name,
java.lang.Number n)
Creates a fragment of a nickname based on a dimension and its associated
numerical value
|
protected abstract java.lang.String |
createFragment(java.lang.String dim_name,
java.lang.String s)
Creates a fragment of a nickname based on a dimension and its associated
string value
|
protected java.lang.String |
handlePrefix(java.lang.String prefix)
Applies a transformation to the prefix
|
protected java.lang.String |
handleSuffix(java.lang.String suffix)
Applies a transformation to the suffix
|
static java.lang.String |
latexify(java.lang.String s)
Replaces illegal characters in a LaTeX string by legal ones.
|
protected java.lang.String |
postProcess(java.lang.String s)
Performs a last post-processing of the name
|
void |
setNickname(ca.uqac.lif.mtnp.plot.Plot p,
Region r,
java.lang.String prefix,
java.lang.String suffix)
Gives a nickname to a plot
|
void |
setNickname(ca.uqac.lif.mtnp.table.Table t,
Region r,
java.lang.String prefix,
java.lang.String suffix)
Gives a nickname to a table
|
void |
setTitle(ca.uqac.lif.mtnp.plot.Plot p,
Region r,
java.lang.String prefix,
java.lang.String suffix)
Gives a title to a plot
|
void |
setTitle(ca.uqac.lif.mtnp.table.Table t,
Region r,
java.lang.String prefix,
java.lang.String suffix)
Gives a title to a table
|
public void setNickname(ca.uqac.lif.mtnp.table.Table t,
Region r,
java.lang.String prefix,
java.lang.String suffix)
t - The table to namer - The region that describes the tableprefix - A prefix to append at the beginning of the namesuffix - A suffix to append at the end of the namepublic void setTitle(ca.uqac.lif.mtnp.table.Table t,
Region r,
java.lang.String prefix,
java.lang.String suffix)
t - The table to namer - The region that describes the tableprefix - A prefix to append at the beginning of the namesuffix - A suffix to append at the end of the namepublic void setNickname(ca.uqac.lif.mtnp.plot.Plot p,
Region r,
java.lang.String prefix,
java.lang.String suffix)
p - The plot to namer - The region that describes the tableprefix - A prefix to append at the beginning of the namesuffix - A suffix to append at the end of the namepublic void setTitle(ca.uqac.lif.mtnp.plot.Plot p,
Region r,
java.lang.String prefix,
java.lang.String suffix)
p - The plot to namer - The region that describes the tableprefix - A prefix to append at the beginning of the namesuffix - A suffix to append at the end of the namepublic static java.lang.String latexify(java.lang.String s)
s - The string to replaceprotected java.lang.String buildName(Region r, java.lang.String prefix, java.lang.String suffix)
r - The region that describes the objectprefix - A prefix to append at the beginning of the namesuffix - A suffix to append at the end of the nameprotected final java.lang.String createFragment(java.lang.String dim_name,
ca.uqac.lif.json.JsonElement json_value)
dim_name - The name of the dimensionjson_value - The valueprotected java.lang.String handlePrefix(java.lang.String prefix)
prefix - The prefixprotected java.lang.String handleSuffix(java.lang.String suffix)
suffix - The suffixprotected java.lang.String postProcess(java.lang.String s)
s - The stringprotected abstract java.lang.String createFragment(java.lang.String dim_name,
java.lang.Number n)
dim_name - The name of the dimensionn - The numerical valueprotected abstract java.lang.String createFragment(java.lang.String dim_name,
java.lang.String s)
dim_name - The name of the dimensions - The string valueCopyright © Sylvain HallĂ©. All Rights Reserved.