Search in sources :

Example 31 with BooleanProperty

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

the class EdgeColorControlGroup method addControlGroup.

public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetEdgeColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mEdgeColor = new ColorProperty(EdgeColorControlGroup.EDGE_COLOR, ColorUtils.colorToString(EdgeController.STANDARD_EDGE_COLOR));
    propertyChangeListener = new EdgeColorChangeListener(mSetEdgeColor, mEdgeColor);
    mSetEdgeColor.addPropertyChangeListener(propertyChangeListener);
    mEdgeColor.addPropertyChangeListener(propertyChangeListener);
    mSetEdgeColor.layout(formBuilder);
    ;
    mEdgeColor.layout(formBuilder);
    ;
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) ColorProperty(org.freeplane.core.resources.components.ColorProperty)

Example 32 with BooleanProperty

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

the class FontSizeControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeFontSize = new BooleanProperty(ControlGroup.SET_RESOURCE);
    final List<String> sizesVector = new ArrayList<String>(Arrays.asList(MUIFactory.FONT_SIZES));
    mNodeFontSize = new ComboProperty(NODE_FONT_SIZE, sizesVector, sizesVector);
    mNodeFontSize.setEditable(true);
    propertyChangeListener = new FontSizeChangeListener(mSetNodeFontSize, mNodeFontSize);
    mSetNodeFontSize.addPropertyChangeListener(propertyChangeListener);
    mNodeFontSize.addPropertyChangeListener(propertyChangeListener);
    mSetNodeFontSize.layout(formBuilder);
    mNodeFontSize.layout(formBuilder);
}
Also used : ComboProperty(org.freeplane.core.resources.components.ComboProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) ArrayList(java.util.ArrayList)

Example 33 with BooleanProperty

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

the class FontStrikeThroughControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeFontStrikeThrough = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeFontStrikeThrough = new BooleanProperty(NODE_FONT_STRIKE_THROUGH);
    propertyChangeListener = new FontStrikeThroughChangeListener(mSetNodeFontStrikeThrough, mNodeFontStrikeThrough);
    mSetNodeFontStrikeThrough.addPropertyChangeListener(propertyChangeListener);
    mNodeFontStrikeThrough.addPropertyChangeListener(propertyChangeListener);
    mSetNodeFontStrikeThrough.layout(formBuilder);
    mNodeFontStrikeThrough.layout(formBuilder);
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 34 with BooleanProperty

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

the class FormatControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeFormat = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeFormat = new EditablePatternComboProperty(NODE_FORMAT, PatternFormat.getIdentityPatternFormat(), FormatController.getController().getAllFormats());
    propertyChangeListener = new NodeFormatChangeListener(mSetNodeFormat, mNodeFormat);
    mSetNodeFormat.addPropertyChangeListener(propertyChangeListener);
    mNodeFormat.addPropertyChangeListener(propertyChangeListener);
    mSetNodeFormat.layout(formBuilder);
    mNodeFormat.layout(formBuilder);
}
Also used : EditablePatternComboProperty(org.freeplane.features.styles.mindmapmode.EditablePatternComboProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 35 with BooleanProperty

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

the class NodeBackgroundColorControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeBackgroundColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeBackgroundColor = new ColorProperty(NODE_BACKGROUND_COLOR, ResourceController.getResourceController().getDefaultProperty(NODE_BACKGROUND_COLOR));
    propertyChangeListener = new BgColorChangeListener(mSetNodeBackgroundColor, mNodeBackgroundColor);
    mSetNodeBackgroundColor.addPropertyChangeListener(propertyChangeListener);
    mNodeBackgroundColor.addPropertyChangeListener(propertyChangeListener);
    mSetNodeBackgroundColor.layout(formBuilder);
    mNodeBackgroundColor.layout(formBuilder);
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) ColorProperty(org.freeplane.core.resources.components.ColorProperty)

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