Search in sources :

Example 21 with BooleanProperty

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

the class MinNodeWidthControlGroup method addControlGroup.

public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetMinNodeWidth = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mMinNodeWidth = new QuantityProperty<LengthUnits>(MIN_NODE_WIDTH, 0, 100000, 0.1, LengthUnits.px);
    propertyChangeListener = new MinNodeWidthChangeListener(mSetMinNodeWidth, mMinNodeWidth);
    mSetMinNodeWidth.addPropertyChangeListener(propertyChangeListener);
    mMinNodeWidth.addPropertyChangeListener(propertyChangeListener);
    mSetMinNodeWidth.layout(formBuilder);
    mMinNodeWidth.layout(formBuilder);
}
Also used : LengthUnits(org.freeplane.core.ui.LengthUnits) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 22 with BooleanProperty

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

the class NodeColorControlGroup method addControlGroup.

public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeColor = new ColorProperty(NODE_COLOR, ResourceController.getResourceController().getDefaultProperty(NODE_TEXT_COLOR));
    propertyChangeListener = new NodeColorChangeListener(mSetNodeColor, mNodeColor);
    mSetNodeColor.addPropertyChangeListener(propertyChangeListener);
    mNodeColor.addPropertyChangeListener(propertyChangeListener);
    mSetNodeColor.layout(formBuilder);
    mNodeColor.layout(formBuilder);
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) ColorProperty(org.freeplane.core.resources.components.ColorProperty)

Example 23 with BooleanProperty

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

the class NodeFontHyperLinkControlGroup method addControlGroup.

public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeFontHyperlink = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeFontHyperlink = new BooleanProperty(NODE_FONT_HYPERLINK);
    propertyChangeListener = new FontHyperlinkChangeListener(mSetNodeFontHyperlink, mNodeFontHyperlink);
    mSetNodeFontHyperlink.addPropertyChangeListener(propertyChangeListener);
    mNodeFontHyperlink.addPropertyChangeListener(propertyChangeListener);
    mSetNodeFontHyperlink.layout(formBuilder);
    mNodeFontHyperlink.layout(formBuilder);
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 24 with BooleanProperty

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

the class NodeHorizontalTextAlignmentControlGroup method addControlGroup.

public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeTextAlignment = new BooleanProperty(ControlGroup.SET_RESOURCE);
    final Vector<String> possibleTranslations = new Vector<String>(TEXT_ALIGNMENTS.length);
    for (int i = 0; i < TEXT_ALIGNMENTS.length; i++) {
        possibleTranslations.add(TextUtils.getText("TextAlignAction." + TEXT_ALIGNMENTS[i] + ".text"));
    }
    Vector<String> translations = possibleTranslations;
    mNodeTextAlignment = new ComboProperty(TEXT_ALIGNMENT, Arrays.asList(TEXT_ALIGNMENTS), translations);
    propertyChangeListener = new NodeTextAlignmentChangeListener(mSetNodeTextAlignment, mNodeTextAlignment);
    mSetNodeTextAlignment.addPropertyChangeListener(propertyChangeListener);
    mNodeTextAlignment.addPropertyChangeListener(propertyChangeListener);
    mSetNodeTextAlignment.layout(formBuilder);
    mNodeTextAlignment.layout(formBuilder);
}
Also used : ComboProperty(org.freeplane.core.resources.components.ComboProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) Vector(java.util.Vector)

Example 25 with BooleanProperty

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

the class NodeShapeControlGroup method addControlGroup.

public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeShape = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeShape = ComboProperty.of(NODE_SHAPE, NodeStyleModel.Shape.class);
    mShapeHorizontalMargin = new QuantityProperty<LengthUnits>(SHAPE_HORIZONTAL_MARGIN, 0, 1000, 0.1, LengthUnits.pt);
    mShapeVerticalMargin = new QuantityProperty<LengthUnits>(SHAPE_VERTICAL_MARGIN, 0, 1000, 0.1, LengthUnits.pt);
    mUniformShape = new BooleanProperty(UNIFORM_SHAPE);
    propertyChangeListener = new NodeShapeChangeListener(mSetNodeShape, mNodeShape, mShapeHorizontalMargin, mShapeVerticalMargin, mUniformShape);
    mSetNodeShape.addPropertyChangeListener(propertyChangeListener);
    mNodeShape.addPropertyChangeListener(propertyChangeListener);
    mShapeHorizontalMargin.addPropertyChangeListener(propertyChangeListener);
    mShapeVerticalMargin.addPropertyChangeListener(propertyChangeListener);
    mUniformShape.addPropertyChangeListener(propertyChangeListener);
    mSetNodeShape.layout(formBuilder);
    mNodeShape.layout(formBuilder);
    new NextColumnProperty(2).layout(formBuilder);
    mShapeHorizontalMargin.layout(formBuilder);
    new NextColumnProperty(2).layout(formBuilder);
    mShapeVerticalMargin.layout(formBuilder);
    new NextColumnProperty(2).layout(formBuilder);
    mUniformShape.layout(formBuilder);
}
Also used : LengthUnits(org.freeplane.core.ui.LengthUnits) Shape(org.freeplane.features.nodestyle.NodeStyleModel.Shape) NextColumnProperty(org.freeplane.core.resources.components.NextColumnProperty) 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