use of org.freeplane.core.resources.components.SeparatorProperty in project freeplane by freeplane.
the class StyleEditorPanel method init.
/**
* Creates all controls and adds them to the frame.
* @param modeController
*/
private void init() {
final String form = "right:max(20dlu;p), 2dlu, p, 1dlu,right:max(20dlu;p), 4dlu, 80dlu, 7dlu";
final FormLayout rightLayout = new FormLayout(form, "");
final DefaultFormBuilder formBuilder = new DefaultFormBuilder(rightLayout);
formBuilder.border(Paddings.DLU2);
new SeparatorProperty("OptionPanel.separator.NodeStyle").layout(formBuilder);
final List<IPropertyControl> controls = new ArrayList<IPropertyControl>();
for (ControlGroup controlGroup : controlGroups) {
controlGroup.addControlGroup(formBuilder);
}
add(formBuilder.getPanel(), BorderLayout.CENTER);
addListeners();
setFont(this, FONT_SIZE);
}
use of org.freeplane.core.resources.components.SeparatorProperty in project freeplane by freeplane.
the class StyleEditorPanel method getControls.
private List<IPropertyControl> getControls() {
final List<IPropertyControl> controls = new ArrayList<IPropertyControl>();
controls.add(new SeparatorProperty("OptionPanel.separator.NodeColors"));
addColorControl(controls);
addBgColorControl(controls);
controls.add(new SeparatorProperty("OptionPanel.separator.NodeText"));
addFormatControl(controls);
addNodeNumberingControl(controls);
controls.add(new SeparatorProperty("OptionPanel.separator.NodeShape"));
addNodeShapeControl(controls);
addMinNodeWidthControl(controls);
addMaxNodeWidthControl(controls);
controls.add(new NextLineProperty());
controls.add(new SeparatorProperty("OptionPanel.separator.NodeFont"));
addFontNameControl(controls);
addFontSizeControl(controls);
addFontBoldControl(controls);
addFontItalicControl(controls);
addFontHyperlinkControl(controls);
controls.add(new NextLineProperty());
controls.add(new SeparatorProperty("OptionPanel.separator.EdgeControls"));
addEdgeWidthControl(controls);
addEdgeStyleControl(controls);
addEdgeColorControl(controls);
controls.add(new NextLineProperty());
controls.add(new SeparatorProperty("OptionPanel.separator.CloudControls"));
addCloudColorControl(controls);
controls.add(new NextLineProperty());
controls.add(new NextColumnProperty(2));
addCloudShapeControl(controls);
return controls;
}
Aggregations