|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.xmlEditor.IdVisualInfo
public class IdVisualInfo
Holds relation between node's ids from source XML document to EditParts which visualize them. One id can be visualized by one EditPart, many or by none.
Field Summary | |
---|---|
protected Set<String> |
idSet
Ids currently in map - not only element's ids as elementIDs. |
protected Map<String,Set<IXMLEditPart>> |
parts
Maps id to EditParts visually representing node with given id. |
Constructor Summary | |
---|---|
IdVisualInfo()
Conatructor. |
Method Summary | |
---|---|
void |
add(String id,
IXMLEditPart visualPart)
Adds vusualPart to set of visualizers of xml node with id id . |
void |
clear()
Clears out holded info. |
boolean |
contains(String id)
Returns true if holds some info about desired id. |
int |
count(String id)
Returns how many EditParts represent id (this information is taken from object's state). |
Set<String> |
getElementIds()
Returns set containing all element ids holded by info. |
protected Set<String> |
getElementIDs()
|
Set<String> |
getIds()
Returns set containing all ids holded by info. |
protected Set<String> |
getIdSet()
|
protected Map<String,Set<IXMLEditPart>> |
getParts()
|
Set<IXMLEditPart> |
getVisualParts(Set<String> ids)
Returns list of XMLEditParts which visualize nodes with ids. |
List<IXMLEditPart> |
getVisualParts(String id)
Returns list of XMLEditParts which visualize node with id id . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Set<String> idSet
protected final Map<String,Set<IXMLEditPart>> parts
Constructor Detail |
---|
public IdVisualInfo()
Method Detail |
---|
public void add(String id, IXMLEditPart visualPart)
id
.
id
- Unique identifier of a node from XML data source, not
nullvisualPart
- An XMLEditPart visually representing node with given
id, not nullpublic void clear()
public boolean contains(String id)
id
- of node not null
public int count(String id)
id
- of node not null
public List<IXMLEditPart> getVisualParts(String id)
id
.
id
- of xml node, not null
public Set<IXMLEditPart> getVisualParts(Set<String> ids)
id
- of xml node, not null
public Set<String> getElementIds()
public Set<String> getIds()
protected Set<String> getElementIDs()
protected Set<String> getIdSet()
protected Map<String,Set<IXMLEditPart>> getParts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |