class CSSStyle extends Object
Modifier and Type | Field and Description |
---|---|
private String |
_end
Mapping between the style and LaTeX (end command).
|
private String |
_name
Style name.
|
private HashMap<String,String> |
_properties
Style properties.
|
private String |
_start
Mapping between the style and LaTeX (start command).
|
Modifier and Type | Method and Description |
---|---|
private void |
colorProperty(Configuration conf)
Converts "color" property using "xcolor" LaTeX package.
|
void |
fontFamilyProperty(Configuration conf)
Converts "font-family" property.
|
String |
getEnd()
Returns mapping between the style and LaTeX (end command).
|
String |
getName()
Returns style name.
|
HashMap<String,String> |
getProperties()
Returns style properties.
|
String |
getStart()
Returns name of the file with configuration.
|
void |
makeLaTeXCommands(Configuration conf)
|
void |
setProperties(HashMap<String,String> prop)
Sets the style properties.
|
private String _name
private String _start
private String _end
public CSSStyle(String name)
name
- style namepublic void setProperties(HashMap<String,String> prop)
prop
- style propertiespublic void makeLaTeXCommands(Configuration conf)
start
and end
commands for the style on the basis of style properties and
program configuration.conf
- program configurationprivate void colorProperty(Configuration conf)
conf
- program configurationpublic void fontFamilyProperty(Configuration conf)
conf
- program configurationpublic String getStart()
public String getEnd()
public String getName()