Search in sources :

Example 1 with SeparatorProperty

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);
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) SeparatorProperty(org.freeplane.core.resources.components.SeparatorProperty) DefaultFormBuilder(com.jgoodies.forms.builder.DefaultFormBuilder) ArrayList(java.util.ArrayList) IPropertyControl(org.freeplane.core.resources.components.IPropertyControl)

Example 2 with SeparatorProperty

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;
}
Also used : SeparatorProperty(org.freeplane.core.resources.components.SeparatorProperty) NextLineProperty(org.freeplane.core.resources.components.NextLineProperty) NextColumnProperty(org.freeplane.core.resources.components.NextColumnProperty) ArrayList(java.util.ArrayList) IPropertyControl(org.freeplane.core.resources.components.IPropertyControl)

Aggregations

ArrayList (java.util.ArrayList)2 IPropertyControl (org.freeplane.core.resources.components.IPropertyControl)2 SeparatorProperty (org.freeplane.core.resources.components.SeparatorProperty)2 DefaultFormBuilder (com.jgoodies.forms.builder.DefaultFormBuilder)1 FormLayout (com.jgoodies.forms.layout.FormLayout)1 NextColumnProperty (org.freeplane.core.resources.components.NextColumnProperty)1 NextLineProperty (org.freeplane.core.resources.components.NextLineProperty)1