本文整理了Java中com.mxgraph.view.mxGraph.drawState()
方法的一些代码示例,展示了mxGraph.drawState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.drawState()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:drawState
[英]Draws the cell state with the given label onto the canvas. No children or descendants are painted here. This method invokes cellDrawn after the cell, but not its descendants have been painted.
[中]将具有给定标签的单元格状态绘制到画布上。这里没有画孩子或后代。此方法在绘制单元后调用CellDraw,但不调用其子体。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Draws the preview using the graphics canvas.
*/
protected void paintPreviewState(mxGraphics2DCanvas canvas,
mxCellState state)
{
graphComponent.getGraph().drawState(
canvas,
state,
state.getCell() != graphComponent.getCellEditor()
.getEditingCell());
}
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Draws the preview using the graphics canvas.
*/
protected void paintPreviewState(mxGraphics2DCanvas canvas,
mxCellState state)
{
graphComponent.getGraph().drawState(
canvas,
state,
state.getCell() != graphComponent.getCellEditor()
.getEditingCell());
}
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Draws the given cell and its descendants onto the specified canvas.
*
* @param canvas Canvas onto which the cell should be drawn.
* @param cell Cell that should be drawn onto the canvas.
*/
public void drawCell(mxICanvas canvas, Object cell)
{
drawState(canvas, getView().getState(cell), true);
// Draws the children on top of their parent
int childCount = model.getChildCount(cell);
for (int i = 0; i < childCount; i++)
{
Object child = model.getChildAt(cell, i);
drawCell(canvas, child);
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Draws the given cell and its descendants onto the specified canvas.
*
* @param canvas Canvas onto which the cell should be drawn.
* @param cell Cell that should be drawn onto the canvas.
*/
public void drawCell(mxICanvas canvas, Object cell)
{
drawState(canvas, getView().getState(cell), true);
// Draws the children on top of their parent
int childCount = model.getChildCount(cell);
for (int i = 0; i < childCount; i++)
{
Object child = model.getChildAt(cell, i);
drawCell(canvas, child);
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
(mxGraphics2DCanvas) canvas, state)))
graph.drawState(canvas, state,
cell != cellEditor.getEditingCell());
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
(mxGraphics2DCanvas) canvas, state)))
graph.drawState(canvas, state,
cell != cellEditor.getEditingCell());
内容来源于网络,如有侵权,请联系作者删除!