本文整理汇总了Java中org.jgraph.graph.GraphConstants.setBendable方法的典型用法代码示例。如果您正苦于以下问题:Java GraphConstants.setBendable方法的具体用法?Java GraphConstants.setBendable怎么用?Java GraphConstants.setBendable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jgraph.graph.GraphConstants
的用法示例。
在下文中一共展示了GraphConstants.setBendable方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RelationEdge
import org.jgraph.graph.GraphConstants; //导入方法依赖的package包/类
public RelationEdge(Relation aRelation, TableCell aImporting, TableCell aExporting) {
super(aRelation);
GraphConstants.setLineStyle(getAttributes(), GraphConstants.STYLE_ORTHOGONAL);
GraphConstants.setConnectable(getAttributes(), false);
GraphConstants.setDisconnectable(getAttributes(), false);
GraphConstants.setBendable(getAttributes(), true);
GraphConstants.setLineWidth(getAttributes(), 1);
GraphConstants.setLineBegin(getAttributes(), LINE_BEGIN);
GraphConstants.setLineEnd(getAttributes(), LINE_END);
setSource(aImporting.getChildAt(0));
setTarget(aExporting.getChildAt(0));
}
示例2: createVertex
import org.jgraph.graph.GraphConstants; //导入方法依赖的package包/类
private void createVertex(DefaultGraphCell cell, double x, double y, double w, double h)
{
// Set bounds
GraphConstants.setBounds(cell.getAttributes(), new Rectangle2D.Double(x, y, w, h));
GraphConstants.setBorder(cell.getAttributes(), BorderFactory.createRaisedBevelBorder());
GraphConstants.setEditable(cell.getAttributes(), false);
GraphConstants.setSizeable(cell.getAttributes(), true);
GraphConstants.setAutoSize(cell.getAttributes(), false);
GraphConstants.setRouting(cell.getAttributes(), GraphConstants.ROUTING_SIMPLE);
GraphConstants.setBendable(cell.getAttributes(), true);
// Add a Floating Port
hmPorts.put(cell.getUserObject(), cell.addPort());
}
示例3: getDefaultUnmovableMappingEdgeStyle
import org.jgraph.graph.GraphConstants; //导入方法依赖的package包/类
private static final AttributeMap getDefaultUnmovableMappingEdgeStyle(Color lineColor)
{
AttributeMap lineStyle = new AttributeMap();
GraphConstants.setLineBegin(lineStyle, GraphConstants.ARROW_NONE);
GraphConstants.setLineColor(lineStyle,lineColor);
GraphConstants.setBeginSize(lineStyle, 10);
GraphConstants.setFont(lineStyle, GraphConstants.DEFAULTFONT.deriveFont(10));
GraphConstants.setBendable(lineStyle, false);
GraphConstants.setEditable(lineStyle, false);
GraphConstants.setMoveable(lineStyle, false);
GraphConstants.setResize(lineStyle, false);
GraphConstants.setSizeable(lineStyle, false);
return lineStyle;
}
示例4: getDefaultInvisibleVertexAttribute
import org.jgraph.graph.GraphConstants; //导入方法依赖的package包/类
public static final AttributeMap getDefaultInvisibleVertexAttribute(Point position, boolean representSourceVertex)
{
AttributeMap map = getDefaultInvisibleVertexBounds(position, representSourceVertex);
GraphConstants.setEditable(map, false);
GraphConstants.setBendable(map, false);
GraphConstants.setSelectable(map, false);
GraphConstants.setResize(map, false);
GraphConstants.setSizeable(map, false);
return map;
}