Search in sources :

Example 26 with BooleanProperty

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

the class BorderColorAndColorMatchesEdgeControlGroup method addBorderColorControl.

private void addBorderColorControl(DefaultFormBuilder formBuilder) {
    mSetBorderColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mBorderColor = new ColorProperty(BORDER_COLOR, ColorUtils.colorToString(EdgeController.STANDARD_EDGE_COLOR));
    borderColorListener = new BorderColorListener(mSetBorderColor, mBorderColor);
    mSetBorderColor.addPropertyChangeListener(borderColorListener);
    mBorderColor.addPropertyChangeListener(borderColorListener);
    mSetBorderColor.layout(formBuilder);
    mBorderColor.layout(formBuilder);
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) ColorProperty(org.freeplane.core.resources.components.ColorProperty)

Example 27 with BooleanProperty

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

the class BorderDashAndDashMatchesEdgeControlGroup method addBorderDashMatchesEdgeDashControl.

public void addBorderDashMatchesEdgeDashControl(DefaultFormBuilder formBuilder) {
    mSetBorderDashMatchesEdgeDash = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mBorderDashMatchesEdgeDash = new BooleanProperty(BORDER_DASH_MATCHES_EDGE_DASH);
    borderDashMatchesEdgeDashChangeListener = new BorderDashMatchesEdgeDashListener(mSetBorderDashMatchesEdgeDash, mBorderDashMatchesEdgeDash);
    mSetBorderDashMatchesEdgeDash.addPropertyChangeListener(borderDashMatchesEdgeDashChangeListener);
    mBorderDashMatchesEdgeDash.addPropertyChangeListener(borderDashMatchesEdgeDashChangeListener);
    mBorderDashMatchesEdgeDash.addPropertyChangeListener(new PropertyChangeListener() {

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

Example 28 with BooleanProperty

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

the class BorderWidthAndBorderWidthMatchesEdgeControlGroup method addBorderWidthControl.

private void addBorderWidthControl(DefaultFormBuilder formBuilder) {
    mSetBorderWidth = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mBorderWidth = new QuantityProperty<LengthUnits>(BORDER_WIDTH, 0, 100000, 0.1, LengthUnits.px);
    borderWidthListener = new BorderWidthListener(mSetBorderWidth, mBorderWidth);
    mSetBorderWidth.addPropertyChangeListener(borderWidthListener);
    mBorderWidth.addPropertyChangeListener(borderWidthListener);
    mSetBorderWidth.layout(formBuilder);
    mBorderWidth.layout(formBuilder);
}
Also used : LengthUnits(org.freeplane.core.ui.LengthUnits) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 29 with BooleanProperty

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

the class BorderWidthAndBorderWidthMatchesEdgeControlGroup method addBorderWidthMatchesEdgeWidthControl.

public void addBorderWidthMatchesEdgeWidthControl(DefaultFormBuilder formBuilder) {
    mSetBorderWidthMatchesEdgeWidth = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mBorderWidthMatchesEdgeWidth = new BooleanProperty(BORDER_WIDTH_MATCHES_EDGE_WIDTH);
    borderWidthMatchesEdgeChangeListener = new BorderWidthMatchesEdgeWidthListener(mSetBorderWidthMatchesEdgeWidth, mBorderWidthMatchesEdgeWidth);
    mSetBorderWidthMatchesEdgeWidth.addPropertyChangeListener(borderWidthMatchesEdgeChangeListener);
    mBorderWidthMatchesEdgeWidth.addPropertyChangeListener(borderWidthMatchesEdgeChangeListener);
    mBorderWidthMatchesEdgeWidth.addPropertyChangeListener(new PropertyChangeListener() {

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

Example 30 with BooleanProperty

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

the class ChildDistanceControlGroup method addControlGroup.

public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetChildDistance = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mChildDistance = new QuantityProperty<LengthUnits>(VERTICAL_CHILD_GAP, 0, 1000, 0.1, LengthUnits.px);
    propertyChangeListener = new ChildDistanceChangeListener(mSetChildDistance, mChildDistance);
    mSetChildDistance.addPropertyChangeListener(propertyChangeListener);
    mChildDistance.addPropertyChangeListener(propertyChangeListener);
    mSetChildDistance.layout(formBuilder);
    mChildDistance.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