Modifier and Type | Class and Description |
---|---|
class |
VNode.Bound
Inner Class for glyph bounds
|
Modifier and Type | Field and Description |
---|---|
int |
clusterID |
org.sbgn.bindings.Glyph |
glyph |
Constructor and Description |
---|
VNode(org.sbgn.bindings.Glyph g)
Default Constructor, sets the geometry of the bounds which are attributes of this class
|
Modifier and Type | Method and Description |
---|---|
int |
calcReqWidthByStateAndInfos(List<org.sbgn.bindings.Glyph> stateORinfoList)
Calculates required width according to the given list state and info glyphs of this VNode.
|
void |
placeStateAndInfoGlyphs()
Places state and info glyphs of this node
|
void |
setBounds(float w,
float h)
Sets the bound of this VNode by given width and height
|
void |
setSizeAccordingToClass()
Chooses a proper bound for this VNode according to its class.
|
void |
update(org.ivis.layout.LGraphObject lGraphObj)
Function that will take place when VNode objects will update in layout process of ChiLay
|
void |
updateSizeForStateAndInfo()
If glyph attribute of this VNode object includes any "state of information" or "unit of information" glyphs, this method updates the
size of VNode accordingly.
|
public VNode(org.sbgn.bindings.Glyph g)
g
- glyphpublic void update(org.ivis.layout.LGraphObject lGraphObj)
update
in interface org.ivis.layout.Updatable
lGraphObj
- LGraphObject for whom the update will take place.public void setBounds(float w, float h)
w
- new widthh
- new heightpublic void setSizeAccordingToClass()
public int calcReqWidthByStateAndInfos(List<org.sbgn.bindings.Glyph> stateORinfoList)
stateORinfoList
- list that keeps state or info glyphs of this VNodepublic void updateSizeForStateAndInfo()
public void placeStateAndInfoGlyphs()
Copyright © 2015 BioPAX. All rights reserved.