|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsynoptic.base.Template
public abstract class Template
A template class is a JSynoptic sheets factory. A template is able to create a unique kind of shape containers. Note: When creating a new sheet, user can be asked to select a template for sheet creation. A template can provide a option panel to customize template parameters.
Nested Class Summary | |
---|---|
static class |
Template.EmptySheetTemplate
|
protected class |
Template.TemplatePanel
The optional panel related to the current template. |
Field Summary | |
---|---|
protected static Template |
currentTemplate
The current used Template |
protected static Template |
defaultTemplate
The default template |
protected static java.util.List |
templates
The list of all known templates. |
Constructor Summary | |
---|---|
Template()
|
Method Summary | |
---|---|
ShapesContainer |
createShapeContainer(java.lang.String name)
The Template is asked to create a new sheet Note: the newly created sheet will be inserted in the desktopCard panel. |
static Template |
getCurrentTemplate()
|
javax.swing.Icon |
getIcon()
It is possible to attach an icon to the template |
abstract java.lang.String |
getName()
Get template name |
Template.TemplatePanel |
getOptionPanelForTemplate()
Enables a template to show an option panel to customize template parameters. |
static Template |
getTemplateFromId(java.lang.String id)
|
abstract java.lang.String |
getTemplateInformation()
Provides information about the template utilization |
static java.util.List |
getTemplates()
|
static void |
setCurrentTemplate(Template currentTemplate)
|
void |
setShapeContainer(ShapesContainer sc)
Set the shape container. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static java.util.List templates
protected static Template currentTemplate
protected static Template defaultTemplate
Constructor Detail |
---|
public Template()
Method Detail |
---|
public static Template getTemplateFromId(java.lang.String id)
public ShapesContainer createShapeContainer(java.lang.String name)
name,
- the sheet name
public void setShapeContainer(ShapesContainer sc)
sc
- public Template.TemplatePanel getOptionPanelForTemplate()
public abstract java.lang.String getName()
public javax.swing.Icon getIcon()
public abstract java.lang.String getTemplateInformation()
public static java.util.List getTemplates()
public static Template getCurrentTemplate()
public static void setCurrentTemplate(Template currentTemplate)
currentTemplate
- public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |