Search in sources :

Example 16 with BooleanProperty

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

the class FontNameControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeFontName = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeFontName = new FontProperty(NODE_FONT_NAME);
    propertyChangeListener = new FontNameChangeListener(mSetNodeFontName, mNodeFontName);
    mSetNodeFontName.addPropertyChangeListener(propertyChangeListener);
    mNodeFontName.addPropertyChangeListener(propertyChangeListener);
    mSetNodeFontName.layout(formBuilder);
    mNodeFontName.layout(formBuilder);
}
Also used : FontProperty(org.freeplane.core.resources.components.FontProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 17 with BooleanProperty

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

the class BorderColorAndColorMatchesEdgeControlGroup method addBorderColorMatchesEdgeColorControl.

public void addBorderColorMatchesEdgeColorControl(DefaultFormBuilder formBuilder) {
    mSetBorderColorMatchesEdgeColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mBorderColorMatchesEdgeColor = new BooleanProperty(BORDER_COLOR_MATCHES_EDGE_COLOR);
    borderColorMatchesEdgeColorChangeListener = new BorderColorMatchesEdgeColorListener(mSetBorderColorMatchesEdgeColor, mBorderColorMatchesEdgeColor);
    mSetBorderColorMatchesEdgeColor.addPropertyChangeListener(borderColorMatchesEdgeColorChangeListener);
    mBorderColorMatchesEdgeColor.addPropertyChangeListener(borderColorMatchesEdgeColorChangeListener);
    mBorderColorMatchesEdgeColor.addPropertyChangeListener(new PropertyChangeListener() {

        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            enableOrDisableBorderColorControls();
        }
    });
    mSetBorderColorMatchesEdgeColor.layout(formBuilder);
    mBorderColorMatchesEdgeColor.layout(formBuilder);
}
Also used : PropertyChangeEvent(java.beans.PropertyChangeEvent) PropertyChangeListener(java.beans.PropertyChangeListener) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 18 with BooleanProperty

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

the class BorderDashAndDashMatchesEdgeControlGroup method addBorderDashControl.

private void addBorderDashControl(DefaultFormBuilder formBuilder) {
    mSetBorderDash = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mBorderDash = ComboProperty.of(BORDER_DASH, DashVariant.class);
    borderDashListener = new BorderDashListener(mSetBorderDash, mBorderDash);
    mSetBorderDash.addPropertyChangeListener(borderDashListener);
    mBorderDash.addPropertyChangeListener(borderDashListener);
    mSetBorderDash.layout(formBuilder);
    mBorderDash.layout(formBuilder);
}
Also used : DashVariant(org.freeplane.features.DashVariant) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 19 with BooleanProperty

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

the class IconSizeControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetIconSize = new BooleanProperty(SET_RESOURCE);
    mIconSize = new QuantityProperty<LengthUnits>(ICON_SIZE, 0, 256, 4, LengthUnits.px);
    propertyChangeListener = new IconSizeChangeListener(mSetIconSize, mIconSize);
    mSetIconSize.addPropertyChangeListener(propertyChangeListener);
    mIconSize.addPropertyChangeListener(propertyChangeListener);
    mSetIconSize.layout(formBuilder);
    mIconSize.layout(formBuilder);
}
Also used : LengthUnits(org.freeplane.core.ui.LengthUnits) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 20 with BooleanProperty

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

the class MaxNodeWidthControlGroup method addControlGroup.

public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetMaxNodeWidth = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mMaxNodeWidth = new QuantityProperty<LengthUnits>(MAX_NODE_WIDTH, 0, 100000, 0.1, LengthUnits.px);
    propertyChangeListener = new MaxNodeWidthChangeListener(mSetMaxNodeWidth, mMaxNodeWidth);
    mSetMaxNodeWidth.addPropertyChangeListener(propertyChangeListener);
    mMaxNodeWidth.addPropertyChangeListener(propertyChangeListener);
    mSetMaxNodeWidth.layout(formBuilder);
    mMaxNodeWidth.layout(formBuilder);
}
Also used : LengthUnits(org.freeplane.core.ui.LengthUnits) 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