public class Template extends Object
Constructor and Description |
---|
Template(File file)
Constructs a new Template from the given file.
|
Template(InputStream stream)
Constructs a new Template from the given InputStream.
|
Template(String file)
Constructs a new Template from the given filename.
|
Template(TemplateTab[] tabs,
Hashtable options)
Constructs a new Template from TemplateTabs and a list of options.
|
Modifier and Type | Method and Description |
---|---|
void |
changeValue(String key,
String value)
Change the value of an option.
|
boolean |
editMapping()
Returns true if we can edit the OME-CA mapping on-the-fly.
|
boolean |
editTemplateFields()
Returns true if we can edit this template on-the-fly.
|
int[] |
getBackgroundColor()
Get the background color defined by this template.
|
int |
getDefaultHeight()
Get the default window height defined by this template.
|
int |
getDefaultWidth()
Get the default window width defined by this template.
|
int[] |
getFontColor()
Get the font color defined by this template.
|
int |
getFontSize()
Get the font size defined by this template.
|
String |
getFontStyle()
Get the font style defined by this template.
|
TemplateTab[] |
getTabs()
Get the tabs defined by this template.
|
void |
initializeFields(AggregateMetadata store)
Determine number of repetitions for each repeatable field.
|
boolean |
isEditable()
Returns whether or not fields in this template can be edited.
|
void |
parse(InputStream is)
Parses the template options from the given InputStream.
|
void |
populateFields(AggregateMetadata store)
Populates the fields using the given OME root node and the
template's OME-CA mapping.
|
boolean |
preferCompanion()
Returns whether or not the companion-file metadata should take precedence.
|
void |
save(String filename)
Save the template to a file.
|
void |
saveFields(AggregateMetadata store)
Save fields to given OME root node.
|
public Template(String file) throws IOException
IOException
public Template(File file) throws IOException
IOException
public Template(InputStream stream) throws IOException
IOException
public Template(TemplateTab[] tabs, Hashtable options)
public void parse(InputStream is) throws IOException
IOException
public void populateFields(AggregateMetadata store)
public void saveFields(AggregateMetadata store)
public void save(String filename) throws IOException
IOException
public void initializeFields(AggregateMetadata store)
public TemplateTab[] getTabs()
public String getFontStyle()
public int getFontSize()
public int[] getFontColor()
public int[] getBackgroundColor()
public int getDefaultWidth()
public int getDefaultHeight()
public boolean isEditable()
public boolean preferCompanion()
public boolean editTemplateFields()
public boolean editMapping()
Copyright © 2014 Open Microscopy Environment