public final class MarkedElement extends Object implements IRenderingElement
ID_KEY.
Similarly, the CLASS_KEY can be used to set the classes.
IAtomContainer mol;
atom.setProperty(MarkedElement.ID_KEY, "my_atm_id");
atom.setProperty(MarkedElement.CLASS_KEY, "h_donor");
atom.setProperty(MarkedElement.CLASS_KEY, "h_acceptor");
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_KEY |
static String |
ID_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IRenderingVisitor visitor)
Converts this
TextElement into widget specific objects. |
IRenderingElement |
element()
Access the element of which the id and classes apply.
|
List<String> |
getClasses()
Access the classes of the element.
|
String |
getId()
Access the id of the element.
|
static MarkedElement |
markup(IRenderingElement elem,
String... classes)
Markup a rendering element with the specified classes.
|
static MarkedElement |
markupAtom(IRenderingElement elem,
IAtom atom)
Markup a atom with the class 'atom' and optionally the ids/classes
from it's properties.
|
static MarkedElement |
markupBond(IRenderingElement elem,
IBond bond)
Markup a bond with the class 'bond' and optionally the ids/classes
from it's properties.
|
static MarkedElement |
markupMol(IRenderingElement elem,
IAtomContainer mol)
Markup a molecule with the class 'mol' and optionally the ids/classes
from it's properties.
|
public static final String ID_KEY
public static final String CLASS_KEY
public String getId()
public List<String> getClasses()
public void accept(IRenderingVisitor visitor)
TextElement into widget specific objects.accept in interface IRenderingElementvisitor - Toolkit specific widget factory.public IRenderingElement element()
public static MarkedElement markup(IRenderingElement elem, String... classes)
elem - rendering elementclasses - classespublic static MarkedElement markupMol(IRenderingElement elem, IAtomContainer mol)
elem - rendering elementmol - moleculepublic static MarkedElement markupAtom(IRenderingElement elem, IAtom atom)
elem - rendering elementatom - atompublic static MarkedElement markupBond(IRenderingElement elem, IBond bond)
elem - rendering elementbond - bondCopyright © 2018. All Rights Reserved.