本文整理了Java中com.mxgraph.view.mxGraph.cellSizeUpdated()
方法的一些代码示例,展示了mxGraph.cellSizeUpdated()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.cellSizeUpdated()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:cellSizeUpdated
[英]Updates the size of the given cell in the model using getPreferredSizeForCell to get the new size.
[中]使用getPreferredSizeForCell更新模型中给定单元格的大小,以获得新大小。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Updates the size of the given cell in the model using
* getPreferredSizeForCell to get the new size. This function
* fires mxEvent.UPDATE_CELL_SIZE.
*
* @param cell Cell for which the size should be changed.
*/
public Object updateCellSize(Object cell, boolean ignoreChildren)
{
model.beginUpdate();
try
{
cellSizeUpdated(cell, ignoreChildren);
fireEvent(new mxEventObject(mxEvent.UPDATE_CELL_SIZE, "cell", cell,
"ignoreChildren", ignoreChildren));
}
finally
{
model.endUpdate();
}
return cell;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Updates the size of the given cell in the model using
* getPreferredSizeForCell to get the new size. This function
* fires mxEvent.UPDATE_CELL_SIZE.
*
* @param cell Cell for which the size should be changed.
*/
public Object updateCellSize(Object cell, boolean ignoreChildren)
{
model.beginUpdate();
try
{
cellSizeUpdated(cell, ignoreChildren);
fireEvent(new mxEventObject(mxEvent.UPDATE_CELL_SIZE, "cell", cell,
"ignoreChildren", ignoreChildren));
}
finally
{
model.endUpdate();
}
return cell;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Sets the new label for a cell. If autoSize is true then
* <cellSizeUpdated> will be called.
*
* @param cell Cell whose label should be changed.
* @param value New label to be assigned.
* @param autoSize Specifies if cellSizeUpdated should be called.
*/
public void cellLabelChanged(Object cell, Object value, boolean autoSize)
{
model.beginUpdate();
try
{
getModel().setValue(cell, value);
if (autoSize)
{
cellSizeUpdated(cell, false);
}
}
finally
{
model.endUpdate();
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Sets the new label for a cell. If autoSize is true then
* <cellSizeUpdated> will be called.
*
* @param cell Cell whose label should be changed.
* @param value New label to be assigned.
* @param autoSize Specifies if cellSizeUpdated should be called.
*/
public void cellLabelChanged(Object cell, Object value, boolean autoSize)
{
model.beginUpdate();
try
{
getModel().setValue(cell, value);
if (autoSize)
{
cellSizeUpdated(cell, false);
}
}
finally
{
model.endUpdate();
}
}
内容来源于网络,如有侵权,请联系作者删除!