Package org.helm.notation2.wsadapter
Class CategorizedMonomer
java.lang.Object
org.helm.notation2.wsadapter.CategorizedMonomer
public class CategorizedMonomer extends Object
CategorizedMonomer used as wrapper class for monomer categorization in the HELMEditor. This means in which
category a monomer belongs to, or of which shape the menu entry is.- Version:
- $Id$
- Author:
- Marco Lanig
-
Constructor Summary
Constructors Constructor Description CategorizedMonomer()Default constructor.CategorizedMonomer(String monomerID, String monomerName, String naturalAnalogon, String monomerType, String polymerType, String category, String shape, String fontColor, String backgroundColor)Constructor using all possible fields. -
Method Summary
Modifier and Type Method Description StringgetBackgroundColor()Returns the background color.StringgetCategory()Returns the category.StringgetFontColor()Returns the font color.StringgetMonomerID()Returns the monomer ID.StringgetMonomerName()Returns the monomer name.StringgetMonomerType()Returns the monomer type.StringgetNaturalAnalogon()Returns the natural analogon.StringgetPolymerType()Returns the polymer type.StringgetShape()Returns the shape.voidsetBackgroundColor(String backgroundColor)Sets the background color.voidsetCategory(String category)Sets the category.voidsetFontColor(String fontColor)Sets the font color.voidsetMonomerID(String monomerID)Sets the monomer ID.voidsetMonomerName(String monomerName)Sets the monomer name.voidsetMonomerType(String monomerType)Sets the monomer type.voidsetNaturalAnalogon(String naturalAnalogon)Sets the natural analogon.voidsetPolymerType(String polymerType)Sets the polymerType.voidsetShape(String shape)Sets the shape.
-
Constructor Details
-
CategorizedMonomer
public CategorizedMonomer()Default constructor. -
CategorizedMonomer
public CategorizedMonomer(String monomerID, String monomerName, String naturalAnalogon, String monomerType, String polymerType, String category, String shape, String fontColor, String backgroundColor)Constructor using all possible fields.- Parameters:
monomerID- the monomers ID.monomerName- the monomers name.naturalAnalogon- the natural analogon.monomerType- the monomer type.polymerType- the polymer type.category- the category.shape- the menu entries shape.fontColor- the font color on the menu entry.backgroundColor- the menu entries background color.
-
-
Method Details
-
getMonomerID
Returns the monomer ID.- Returns:
- the monomer id
-
setMonomerID
Sets the monomer ID.- Parameters:
monomerID- given monomer id
-
getMonomerName
Returns the monomer name.- Returns:
- the monomer name
-
setMonomerName
Sets the monomer name.- Parameters:
monomerName- given monomer name
-
getNaturalAnalogon
Returns the natural analogon.- Returns:
- the natural analogon
-
setNaturalAnalogon
Sets the natural analogon.- Parameters:
naturalAnalogon- given natural analog
-
getMonomerType
Returns the monomer type.- Returns:
- the monomer type.
-
setMonomerType
Sets the monomer type.- Parameters:
monomerType- given monomertype
-
getPolymerType
Returns the polymer type.- Returns:
- the polymer type.
-
setPolymerType
Sets the polymerType.- Parameters:
polymerType- given polymer type
-
getCategory
Returns the category.- Returns:
- the category.
-
setCategory
Sets the category.- Parameters:
category- given category
-
getShape
Returns the shape.- Returns:
- the shape.
-
setShape
Sets the shape.- Parameters:
shape- given shape
-
getFontColor
Returns the font color.- Returns:
- the font color.
-
setFontColor
Sets the font color.- Parameters:
fontColor- given font color
-
getBackgroundColor
Returns the background color.- Returns:
- the background color.
-
setBackgroundColor
Sets the background color.- Parameters:
backgroundColor- given background color
-