Search in sources :

Example 6 with BooleanProperty

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

the class StyleEditorPanel method addStyleBox.

private void addStyleBox(final DefaultFormBuilder rightBuilder) {
    mStyleBox = uiFactory.createStyleBox();
    mSetStyle = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    final StyleChangeListener listener = new StyleChangeListener();
    mSetStyle.addPropertyChangeListener(listener);
    mSetStyle.layout(rightBuilder);
    rightBuilder.append(new JLabel(TextUtils.getText("style")));
    rightBuilder.append(mStyleBox);
    rightBuilder.nextLine();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) JLabel(javax.swing.JLabel)

Example 7 with BooleanProperty

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

the class StyleEditorPanel method addEdgeStyleControl.

private void addEdgeStyleControl(final List<IPropertyControl> controls) {
    mSetEdgeStyle = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetEdgeStyle);
    mEdgeStyle = new ComboProperty(StyleEditorPanel.EDGE_STYLE, EDGE_STYLES);
    controls.add(mEdgeStyle);
    final EdgeStyleChangeListener listener = new EdgeStyleChangeListener(mSetEdgeStyle, mEdgeStyle);
    mSetEdgeStyle.addPropertyChangeListener(listener);
    mEdgeStyle.addPropertyChangeListener(listener);
    mEdgeStyle.fireOnMouseClick();
}
Also used : ComboProperty(org.freeplane.core.resources.components.ComboProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 8 with BooleanProperty

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

the class StyleEditorPanel method addEdgeWidthControl.

private void addEdgeWidthControl(final List<IPropertyControl> controls) {
    mSetEdgeWidth = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetEdgeWidth);
    mEdgeWidth = new NumberProperty(StyleEditorPanel.EDGE_WIDTH, 0, 100, 1);
    controls.add(mEdgeWidth);
    final EdgeWidthChangeListener listener = new EdgeWidthChangeListener(mSetEdgeWidth, mEdgeWidth);
    mSetEdgeWidth.addPropertyChangeListener(listener);
    mEdgeWidth.addPropertyChangeListener(listener);
    mEdgeWidth.fireOnMouseClick();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) NumberProperty(org.freeplane.core.resources.components.NumberProperty)

Example 9 with BooleanProperty

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

the class NodeNumberingControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeNumbering = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeNumbering = new BooleanProperty(NODE_NUMBERING);
    propertyChangeListener = new NodeNumberingChangeListener(mSetNodeNumbering, mNodeNumbering);
    mSetNodeNumbering.addPropertyChangeListener(propertyChangeListener);
    mNodeNumbering.addPropertyChangeListener(propertyChangeListener);
    mSetNodeNumbering.layout(formBuilder);
    mNodeNumbering.layout(formBuilder);
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 10 with BooleanProperty

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

the class StyleControlGroup method addStyleBox.

private void addStyleBox(final DefaultFormBuilder formBuilder) {
    mStyleBox = uiFactory.createStyleBox();
    mSetStyle = new BooleanProperty(ControlGroup.SET_RESOURCE);
    final StyleChangeListener listener = new StyleChangeListener();
    mSetStyle.addPropertyChangeListener(listener);
    mSetStyle.layout(formBuilder);
    formBuilder.append(new JLabel(TextUtils.getText("style")));
    formBuilder.append(mStyleBox);
    formBuilder.nextLine();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) JLabel(javax.swing.JLabel)

Aggregations

BooleanProperty (org.freeplane.core.resources.components.BooleanProperty)44 ColorProperty (org.freeplane.core.resources.components.ColorProperty)8 ComboProperty (org.freeplane.core.resources.components.ComboProperty)6 LengthUnits (org.freeplane.core.ui.LengthUnits)6 NumberProperty (org.freeplane.core.resources.components.NumberProperty)4 PropertyChangeEvent (java.beans.PropertyChangeEvent)3 PropertyChangeListener (java.beans.PropertyChangeListener)3 ArrayList (java.util.ArrayList)2 JLabel (javax.swing.JLabel)2 FontProperty (org.freeplane.core.resources.components.FontProperty)2 DashVariant (org.freeplane.features.DashVariant)2 Vector (java.util.Vector)1 NextColumnProperty (org.freeplane.core.resources.components.NextColumnProperty)1 Shape (org.freeplane.features.nodestyle.NodeStyleModel.Shape)1 EditablePatternComboProperty (org.freeplane.features.styles.mindmapmode.EditablePatternComboProperty)1