| Modifier | Constructor and Description |
|---|---|
protected |
MXCell(MXGraph graph,
Element node) |
protected |
MXCell(MXGraph graph,
String value,
String style) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCellOverlay(MXCellOverlay overlay)
Adds an overlay to the cell.
|
void |
autoSize()
Resizes this cell and all descendants to just fit around the its label and/or children
|
void |
autoSize(boolean recurse)
Resizes this cell to just fit around the its label and/or children
|
protected abstract void |
doInsert()
Insert cell into graph.
|
Object |
getData()
Returns an arbitrary object associated with this cell.
|
MXGraph |
getGraph()
Returns the containing graph.
|
String |
getId()
Returns the id that is unique across all cells within the containing graph.
|
String |
getStyle()
Returns the style settings for the cell.
|
String |
getValue()
Returns the label value for the cell.
|
T |
insert() |
boolean |
isCollapsed()
Returns the collapsed state for the cell.
|
boolean |
isVisible()
Returns the visibility state for the cell.
|
void |
setCollapsed(boolean collapsed)
Sets the collapsed state for the cell.
|
void |
setData(Object data)
Sets an arbitrary object associated with this cell.
|
void |
setStyle(String style)
Sets the style settings for the cell.
|
void |
setValue(String value)
Sets the label value for the cell.
|
void |
setVisible(boolean visible)
Sets the visibility state for the cell.
|
Object |
transformForClient()
Transform to use unique id for client invocations.
|
protected void |
updateCellState(String method,
Object value)
Updates the cell's state on the client.
|
protected abstract void doInsert()
public T insert()
public Object transformForClient()
transformForClient in interface org.fujion.client.IClientTransformpublic MXGraph getGraph()
public String getId()
public String getValue()
public void setValue(String value)
value - The label value for the cell.public String getStyle()
public void setStyle(String style)
style - The style settings for the cell.public boolean isVisible()
public void setVisible(boolean visible)
visible - The visibility state for the cell.public boolean isCollapsed()
public void setCollapsed(boolean collapsed)
collapsed - The collapsed state for the cell.protected void updateCellState(String method, Object value)
method - The method on the graph model to set the state.value - The new state value to set.public Object getData()
public void setData(Object data)
data - An arbitrary object associated with this cell.public void addCellOverlay(MXCellOverlay overlay)
overlay - Overlay to add.public void autoSize()
public void autoSize(boolean recurse)
recurse - If true, all descendants should be auto-sized.Copyright © 2023 Fujion Framework. All rights reserved.