当前位置: 首页>>代码示例>>Java>>正文


Java JGraphLayout类代码示例

本文整理汇总了Java中com.jgraph.layout.JGraphLayout的典型用法代码示例。如果您正苦于以下问题:Java JGraphLayout类的具体用法?Java JGraphLayout怎么用?Java JGraphLayout使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JGraphLayout类属于com.jgraph.layout包,在下文中一共展示了JGraphLayout类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: MyJSlider

import com.jgraph.layout.JGraphLayout; //导入依赖的package包/类
MyJSlider(Method methodToCall, int min, int max, int init, JGraphLayout layout,
    LayouterItem item) {
    super(SwingConstants.HORIZONTAL, min, max, init);
    this.methodToCall = methodToCall;
    this.layout = layout;
    this.item = item;
    // Turn on labels at major tick marks.
    this.setMajorTickSpacing((max - min) / 5);
    this.setMinorTickSpacing((max - min) / 50);
    this.setPaintTicks(true);
    this.setPaintLabels(true);
    this.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 0));
    Font font = new Font("Serif", Font.ITALIC, 10);
    this.setFont(font);
}
 
开发者ID:meteoorkip,项目名称:JavaGraph,代码行数:16,代码来源:LayoutKind.java

示例2: MyCheckBox

import com.jgraph.layout.JGraphLayout; //导入依赖的package包/类
MyCheckBox(Method methodToCall, JGraphLayout layout, LayouterItem item, String label,
    boolean selected) {
    super(label);
    this.methodToCall = methodToCall;
    this.layout = layout;
    this.item = item;
    this.setSelected(selected);
}
 
开发者ID:meteoorkip,项目名称:JavaGraph,代码行数:9,代码来源:LayoutKind.java

示例3: MyRadioButton

import com.jgraph.layout.JGraphLayout; //导入依赖的package包/类
MyRadioButton(Method methodToCall, JGraphLayout layout, LayouterItem item, String label,
    int value) {
    super(label);
    this.methodToCall = methodToCall;
    this.layout = layout;
    this.item = item;
    this.value = value;
}
 
开发者ID:meteoorkip,项目名称:JavaGraph,代码行数:9,代码来源:LayoutKind.java

示例4: MySpinner

import com.jgraph.layout.JGraphLayout; //导入依赖的package包/类
MySpinner(Method methodToCall, JGraphLayout layout, LayouterItem item, double value,
    double min, double max, double step) {
    super(new SpinnerNumberModel(value, min, max, step));
    this.methodToCall = methodToCall;
    this.layout = layout;
    this.item = item;
}
 
开发者ID:meteoorkip,项目名称:JavaGraph,代码行数:8,代码来源:LayoutKind.java

示例5: performJGraphLayout

import com.jgraph.layout.JGraphLayout; //导入依赖的package包/类
private void performJGraphLayout(JGraphLayout aLayout) {
    JGraphFacade facade = new JGraphFacade(graph);
    facade.run(aLayout, true);

    Map nested = facade.createNestedMap(true, true); // Obtain a mapof the resulting attribute changes from the facade
    graph.getGraphLayoutCache().edit(nested); // Apply the results tothe actual graph
}
 
开发者ID:mirkosertic,项目名称:ERDesignerNG,代码行数:8,代码来源:JGraphEditor.java

示例6: LayoutPanel

import com.jgraph.layout.JGraphLayout; //导入依赖的package包/类
LayoutPanel(JGraphLayout layout, LayouterItem item) {
    this.layout = layout;
    this.item = item;
    this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
}
 
开发者ID:meteoorkip,项目名称:JavaGraph,代码行数:6,代码来源:LayoutKind.java

示例7: getLayout

import com.jgraph.layout.JGraphLayout; //导入依赖的package包/类
/** Basic getter method. */
public JGraphLayout getLayout() {
    return this.kind.getLayout();
}
 
开发者ID:meteoorkip,项目名称:JavaGraph,代码行数:5,代码来源:LayouterItem.java


注:本文中的com.jgraph.layout.JGraphLayout类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。