本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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;
}
示例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
}
示例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));
}
示例7: getLayout
import com.jgraph.layout.JGraphLayout; //导入依赖的package包/类
/** Basic getter method. */
public JGraphLayout getLayout() {
return this.kind.getLayout();
}