本文整理了Java中com.mxgraph.view.mxGraph.isCellLocked()
方法的一些代码示例,展示了mxGraph.isCellLocked()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.isCellLocked()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:isCellLocked
[英]Returns true if the given cell may not be moved, sized, bended, disconnected, edited or selected. This implementation returns true for all vertices with a relative geometry if cellsLocked is false.
[中]如果给定单元格可能未移动、调整大小、弯曲、断开连接、编辑或选择,则返回true。如果cellsLocked为false,则对于具有相对几何体的所有顶点,此实现将返回true。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns true if the given cell is disconnectable from the source or
* target terminal. This returns <disconnectable> for all given cells if
* <isLocked> does not return true for the given cell.
*
* @param cell <mxCell> whose disconnectable state should be returned.
* @param terminal <mxCell> that represents the source or target terminal.
* @param source Boolean indicating if the source or target terminal is to be
* disconnected.
* @return Returns true if the given edge can be disconnected from the given
* terminal.
*/
public boolean isCellDisconnectable(Object cell, Object terminal,
boolean source)
{
return isCellsDisconnectable() && !isCellLocked(cell);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns true if the given cell is disconnectable from the source or
* target terminal. This returns <disconnectable> for all given cells if
* <isLocked> does not return true for the given cell.
*
* @param cell <mxCell> whose disconnectable state should be returned.
* @param terminal <mxCell> that represents the source or target terminal.
* @param source Boolean indicating if the source or target terminal is to be
* disconnected.
* @return Returns true if the given edge can be disconnected from the given
* terminal.
*/
public boolean isCellDisconnectable(Object cell, Object terminal,
boolean source)
{
return isCellsDisconnectable() && !isCellLocked(cell);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns true if the given edges's label is moveable. This returns
* <movable> for all given cells if <isLocked> does not return true
* for the given cell.
*
* @param cell <mxCell> whose label should be moved.
* @return Returns true if the label of the given cell is movable.
*/
public boolean isLabelMovable(Object cell)
{
return !isCellLocked(cell)
&& ((model.isEdge(cell) && isEdgeLabelsMovable()) || (model
.isVertex(cell) && isVertexLabelsMovable()));
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns true if the given edges's label is moveable. This returns
* <movable> for all given cells if <isLocked> does not return true
* for the given cell.
*
* @param cell <mxCell> whose label should be moved.
* @return Returns true if the label of the given cell is movable.
*/
public boolean isLabelMovable(Object cell)
{
return !isCellLocked(cell)
&& ((model.isEdge(cell) && isEdgeLabelsMovable()) || (model
.isVertex(cell) && isVertexLabelsMovable()));
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns true if the given cell is movable. This implementation returns editable.
*
* @param cell Cell whose editable state should be returned.
* @return Returns true if the cell is editable.
*/
public boolean isCellEditable(Object cell)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
return isCellsEditable() && !isCellLocked(cell)
&& mxUtils.isTrue(style, mxConstants.STYLE_EDITABLE, true);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns true if the given cell is bendable. This implementation returns
* bendable. This is used in mxElbowEdgeHandler to determine if the middle
* handle should be shown.
*
* @param cell Cell whose bendable state should be returned.
* @return Returns true if the cell is bendable.
*/
public boolean isCellBendable(Object cell)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
return isCellsBendable() && !isCellLocked(cell)
&& mxUtils.isTrue(style, mxConstants.STYLE_BENDABLE, true);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns true if the given cell is movable. This implementation returns editable.
*
* @param cell Cell whose editable state should be returned.
* @return Returns true if the cell is editable.
*/
public boolean isCellEditable(Object cell)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
return isCellsEditable() && !isCellLocked(cell)
&& mxUtils.isTrue(style, mxConstants.STYLE_EDITABLE, true);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns true if the given cell is movable. This implementation
* returns movable.
*
* @param cell Cell whose movable state should be returned.
* @return Returns true if the cell is movable.
*/
public boolean isCellMovable(Object cell)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
return isCellsMovable() && !isCellLocked(cell)
&& mxUtils.isTrue(style, mxConstants.STYLE_MOVABLE, true);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns true if the given cell is resizable. This implementation returns
* cellsSizable for all cells.
*
* @param cell Cell whose resizable state should be returned.
* @return Returns true if the cell is sizable.
*/
public boolean isCellResizable(Object cell)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
return isCellsResizable() && !isCellLocked(cell)
&& mxUtils.isTrue(style, mxConstants.STYLE_RESIZABLE, true);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns true if the given cell is movable. This implementation
* returns movable.
*
* @param cell Cell whose movable state should be returned.
* @return Returns true if the cell is movable.
*/
public boolean isCellMovable(Object cell)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
return isCellsMovable() && !isCellLocked(cell)
&& mxUtils.isTrue(style, mxConstants.STYLE_MOVABLE, true);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns true if the given cell is resizable. This implementation returns
* cellsSizable for all cells.
*
* @param cell Cell whose resizable state should be returned.
* @return Returns true if the cell is sizable.
*/
public boolean isCellResizable(Object cell)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
return isCellsResizable() && !isCellLocked(cell)
&& mxUtils.isTrue(style, mxConstants.STYLE_RESIZABLE, true);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns true if the given cell is bendable. This implementation returns
* bendable. This is used in mxElbowEdgeHandler to determine if the middle
* handle should be shown.
*
* @param cell Cell whose bendable state should be returned.
* @return Returns true if the cell is bendable.
*/
public boolean isCellBendable(Object cell)
{
mxCellState state = view.getState(cell);
Map<String, Object> style = (state != null) ? state.getStyle()
: getCellStyle(cell);
return isCellsBendable() && !isCellLocked(cell)
&& mxUtils.isTrue(style, mxConstants.STYLE_BENDABLE, true);
}
内容来源于网络,如有侵权,请联系作者删除!