Search in sources :

Example 41 with BooleanProperty

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

the class StyleEditorPanel method addMinNodeWidthControl.

private void addMinNodeWidthControl(final List<IPropertyControl> controls) {
    mSetMinNodeWidth = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetMinNodeWidth);
    mMinNodeWidth = new NumberProperty(StyleEditorPanel.MIN_NODE_WIDTH, 1, Integer.MAX_VALUE, 1);
    controls.add(mMinNodeWidth);
    final MinNodeWidthChangeListener listener = new MinNodeWidthChangeListener(mSetMinNodeWidth, mMinNodeWidth);
    mSetMinNodeWidth.addPropertyChangeListener(listener);
    mMinNodeWidth.addPropertyChangeListener(listener);
    mMinNodeWidth.fireOnMouseClick();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) NumberProperty(org.freeplane.core.resources.components.NumberProperty)

Example 42 with BooleanProperty

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

the class StyleEditorPanel method addFontBoldControl.

private void addFontBoldControl(final List<IPropertyControl> controls) {
    mSetNodeFontBold = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeFontBold);
    mNodeFontBold = new BooleanProperty(StyleEditorPanel.NODE_FONT_BOLD);
    controls.add(mNodeFontBold);
    final FontBoldChangeListener listener = new FontBoldChangeListener(mSetNodeFontBold, mNodeFontBold);
    mSetNodeFontBold.addPropertyChangeListener(listener);
    mNodeFontBold.addPropertyChangeListener(listener);
    mNodeFontBold.fireOnMouseClick();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 43 with BooleanProperty

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

the class StyleEditorPanel method addColorControl.

private void addColorControl(final List<IPropertyControl> controls) {
    mSetNodeColor = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeColor);
    mNodeColor = new ColorProperty(StyleEditorPanel.NODE_COLOR, ResourceController.getResourceController().getDefaultProperty(NODE_TEXT_COLOR));
    controls.add(mNodeColor);
    final ColorChangeListener listener = new ColorChangeListener(mSetNodeColor, mNodeColor);
    mSetNodeColor.addPropertyChangeListener(listener);
    mNodeColor.addPropertyChangeListener(listener);
    mNodeColor.fireOnMouseClick();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) ColorProperty(org.freeplane.core.resources.components.ColorProperty)

Example 44 with BooleanProperty

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

the class StyleEditorPanel method addNodeShapeControl.

private void addNodeShapeControl(final List<IPropertyControl> controls) {
    mSetNodeShape = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeShape);
    mNodeShape = new ComboProperty(StyleEditorPanel.NODE_SHAPE, new String[] { "fork", "bubble", "as_parent", "combined" });
    controls.add(mNodeShape);
    final NodeShapeChangeListener listener = new NodeShapeChangeListener(mSetNodeShape, mNodeShape);
    mSetNodeShape.addPropertyChangeListener(listener);
    mNodeShape.addPropertyChangeListener(listener);
    mNodeShape.fireOnMouseClick();
}
Also used : ComboProperty(org.freeplane.core.resources.components.ComboProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

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