Search in sources :

Example 1 with NextColumnProperty

use of org.freeplane.core.resources.components.NextColumnProperty 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)

Example 2 with NextColumnProperty

use of org.freeplane.core.resources.components.NextColumnProperty in project freeplane by freeplane.

the class NodeShapeControlGroup method addControlGroup.

public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeShape = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeShape = ComboProperty.of(NODE_SHAPE, NodeStyleModel.Shape.class);
    mShapeHorizontalMargin = new QuantityProperty<LengthUnits>(SHAPE_HORIZONTAL_MARGIN, 0, 1000, 0.1, LengthUnits.pt);
    mShapeVerticalMargin = new QuantityProperty<LengthUnits>(SHAPE_VERTICAL_MARGIN, 0, 1000, 0.1, LengthUnits.pt);
    mUniformShape = new BooleanProperty(UNIFORM_SHAPE);
    propertyChangeListener = new NodeShapeChangeListener(mSetNodeShape, mNodeShape, mShapeHorizontalMargin, mShapeVerticalMargin, mUniformShape);
    mSetNodeShape.addPropertyChangeListener(propertyChangeListener);
    mNodeShape.addPropertyChangeListener(propertyChangeListener);
    mShapeHorizontalMargin.addPropertyChangeListener(propertyChangeListener);
    mShapeVerticalMargin.addPropertyChangeListener(propertyChangeListener);
    mUniformShape.addPropertyChangeListener(propertyChangeListener);
    mSetNodeShape.layout(formBuilder);
    mNodeShape.layout(formBuilder);
    new NextColumnProperty(2).layout(formBuilder);
    mShapeHorizontalMargin.layout(formBuilder);
    new NextColumnProperty(2).layout(formBuilder);
    mShapeVerticalMargin.layout(formBuilder);
    new NextColumnProperty(2).layout(formBuilder);
    mUniformShape.layout(formBuilder);
}
Also used : LengthUnits(org.freeplane.core.ui.LengthUnits) Shape(org.freeplane.features.nodestyle.NodeStyleModel.Shape) NextColumnProperty(org.freeplane.core.resources.components.NextColumnProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 3 with NextColumnProperty

use of org.freeplane.core.resources.components.NextColumnProperty in project freeplane by freeplane.

the class CloudColorShapeControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    addCloudColorControl(formBuilder);
    new NextLineProperty().layout(formBuilder);
    new NextColumnProperty(2).layout(formBuilder);
    addCloudShapeControl(formBuilder);
}
Also used : NextLineProperty(org.freeplane.core.resources.components.NextLineProperty) NextColumnProperty(org.freeplane.core.resources.components.NextColumnProperty)

Aggregations

NextColumnProperty (org.freeplane.core.resources.components.NextColumnProperty)3 NextLineProperty (org.freeplane.core.resources.components.NextLineProperty)2 ArrayList (java.util.ArrayList)1 BooleanProperty (org.freeplane.core.resources.components.BooleanProperty)1 IPropertyControl (org.freeplane.core.resources.components.IPropertyControl)1 SeparatorProperty (org.freeplane.core.resources.components.SeparatorProperty)1 LengthUnits (org.freeplane.core.ui.LengthUnits)1 Shape (org.freeplane.features.nodestyle.NodeStyleModel.Shape)1