本文整理了Java中com.mxgraph.view.mxGraph.isCellCollapsed()
方法的一些代码示例,展示了mxGraph.isCellCollapsed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.isCellCollapsed()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:isCellCollapsed
[英]Returns true if the given cell is collapsed in this graph. This implementation uses . Subclassers can override this to implement specific collapsed states for cells in only one graph, that is, without affecting the collapsed state of the cell. When using dynamic filter expressions for the collapsed state, then the graph should be revalidated after the filter expression has changed.
[中]如果给定单元格在此图中折叠,则返回true。此实现使用。子类可以重写此操作,以便仅在一个图形中为单元实现特定的折叠状态,也就是说,不影响单元的折叠状态。当为折叠状态使用动态过滤器表达式时,应在过滤器表达式更改后重新验证图形。
代码示例来源:origin: Activiti/Activiti
if (resizeParent && !graph.isCellCollapsed(parent)) {
mxGeometry g = model.getGeometry(parent);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
protected void fold(Object cell)
{
boolean collapse = !graphComponent.getGraph().isCellCollapsed(cell);
graphComponent.getGraph().foldCells(collapse, false,
new Object[] { cell });
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
protected void fold(Object cell)
{
boolean collapse = !graphComponent.getGraph().isCellCollapsed(cell);
graphComponent.getGraph().foldCells(collapse, false,
new Object[] { cell });
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
boolean outgoing, boolean includeLoops, boolean recurse)
boolean isCollapsed = isCellCollapsed(cell);
List<Object> edges = new ArrayList<Object>();
int childCount = model.getChildCount(cell);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
boolean isCollapsed = graph.isCellCollapsed(cell);
List<Object> edges = new ArrayList<Object>();
int childCount = model.getChildCount(cell);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
boolean isCollapsed = graph.isCellCollapsed(cell);
List<Object> edges = new ArrayList<Object>();
int childCount = model.getChildCount(cell);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns true if the given cell is a valid drop target for the specified
* cells. This returns true if the cell is a swimlane, has children and is
* not collapsed, or if splitEnabled is true and isSplitTarget returns
* true for the given arguments
*
* @param cell Object that represents the possible drop target.
* @param cells Objects that are going to be dropped.
* @return Returns true if the cell is a valid drop target for the given
* cells.
*/
public boolean isValidDropTarget(Object cell, Object[] cells)
{
return cell != null
&& ((isSplitEnabled() && isSplitTarget(cell, cells)) || (!model
.isEdge(cell) && (isSwimlane(cell) || (model
.getChildCount(cell) > 0 && !isCellCollapsed(cell)))));
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns true if the given cell is a valid drop target for the specified
* cells. This returns true if the cell is a swimlane, has children and is
* not collapsed, or if splitEnabled is true and isSplitTarget returns
* true for the given arguments
*
* @param cell Object that represents the possible drop target.
* @param cells Objects that are going to be dropped.
* @return Returns true if the cell is a valid drop target for the given
* cells.
*/
public boolean isValidDropTarget(Object cell, Object[] cells)
{
return cell != null
&& ((isSplitEnabled() && isSplitTarget(cell, cells)) || (!model
.isEdge(cell) && (isSwimlane(cell) || (model
.getChildCount(cell) > 0 && !isCellCollapsed(cell)))));
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns the icon used to display the collapsed state of the specified
* cell state. This returns null for all edges.
*/
public ImageIcon getFoldingIcon(mxCellState state)
{
if (state != null && isFoldingEnabled()
&& !getGraph().getModel().isEdge(state.getCell()))
{
Object cell = state.getCell();
boolean tmp = graph.isCellCollapsed(cell);
if (graph.isCellFoldable(cell, !tmp))
{
return (tmp) ? collapsedIcon : expandedIcon;
}
}
return null;
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
if (!graph.isCellVisible(best) || graph.isCellCollapsed(result))
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns the icon used to display the collapsed state of the specified
* cell state. This returns null for all edges.
*/
public ImageIcon getFoldingIcon(mxCellState state)
{
if (state != null && isFoldingEnabled()
&& !getGraph().getModel().isEdge(state.getCell()))
{
Object cell = state.getCell();
boolean tmp = graph.isCellCollapsed(cell);
if (graph.isCellFoldable(cell, !tmp))
{
return (tmp) ? collapsedIcon : expandedIcon;
}
}
return null;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
if (!graph.isCellVisible(best) || graph.isCellCollapsed(result))
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
model.getChildAt(cell, i),
visible
&& (!graph.isCellCollapsed(cell) || cell == currentRoot));
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
model.getChildAt(cell, i),
visible
&& (!graph.isCellCollapsed(cell) || cell == currentRoot));
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
if (isResizeParent() && !graph.isCellCollapsed(parent))
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
if (isResizeParent() && !graph.isCellCollapsed(parent))
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Resizes the parents recursively so that they contain the complete area
* of the resized child cell.
*
* @param cell <mxCell> that has been resized.
*/
public void extendParent(Object cell)
{
if (cell != null)
{
Object parent = model.getParent(cell);
mxGeometry p = model.getGeometry(parent);
if (parent != null && p != null && !isCellCollapsed(parent))
{
mxGeometry geo = model.getGeometry(cell);
if (geo != null
&& (p.getWidth() < geo.getX() + geo.getWidth() || p
.getHeight() < geo.getY() + geo.getHeight()))
{
p = (mxGeometry) p.clone();
p.setWidth(Math.max(p.getWidth(),
geo.getX() + geo.getWidth()));
p.setHeight(Math.max(p.getHeight(),
geo.getY() + geo.getHeight()));
cellsResized(new Object[] { parent },
new mxRectangle[] { p });
}
}
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Resizes the parents recursively so that they contain the complete area
* of the resized child cell.
*
* @param cell <mxCell> that has been resized.
*/
public void extendParent(Object cell)
{
if (cell != null)
{
Object parent = model.getParent(cell);
mxGeometry p = model.getGeometry(parent);
if (parent != null && p != null && !isCellCollapsed(parent))
{
mxGeometry geo = model.getGeometry(cell);
if (geo != null
&& (p.getWidth() < geo.getX() + geo.getWidth() || p
.getHeight() < geo.getY() + geo.getHeight()))
{
p = (mxGeometry) p.clone();
p.setWidth(Math.max(p.getWidth(),
geo.getX() + geo.getWidth()));
p.setHeight(Math.max(p.getHeight(),
geo.getY() + geo.getHeight()));
cellsResized(new Object[] { parent },
new mxRectangle[] { p });
}
}
}
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
&& collapse != isCellCollapsed(cells[i]))
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
&& collapse != isCellCollapsed(cells[i]))
内容来源于网络,如有侵权,请联系作者删除!