Search in sources :

Example 36 with BooleanProperty

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

the class StyleEditorPanel method addMaxNodeWidthControl.

private void addMaxNodeWidthControl(final List<IPropertyControl> controls) {
    mSetMaxNodeWidth = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetMaxNodeWidth);
    mMaxNodeWidth = new NumberProperty(StyleEditorPanel.MAX_TEXT_WIDTH, 1, Integer.MAX_VALUE, 1);
    controls.add(mMaxNodeWidth);
    final MaxNodeWidthChangeListener listener = new MaxNodeWidthChangeListener(mSetMaxNodeWidth, mMaxNodeWidth);
    mSetMaxNodeWidth.addPropertyChangeListener(listener);
    mMaxNodeWidth.addPropertyChangeListener(listener);
    mMaxNodeWidth.fireOnMouseClick();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) NumberProperty(org.freeplane.core.resources.components.NumberProperty)

Example 37 with BooleanProperty

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

the class StyleEditorPanel method addFontSizeControl.

private void addFontSizeControl(final List<IPropertyControl> controls) {
    mSetNodeFontSize = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeFontSize);
    final List<String> sizesVector = new ArrayList<String>(Arrays.asList(MUIFactory.FONT_SIZES));
    mNodeFontSize = new ComboProperty(StyleEditorPanel.NODE_FONT_SIZE, sizesVector, sizesVector);
    mNodeFontSize.setEditable(true);
    controls.add(mNodeFontSize);
    final FontSizeChangeListener listener = new FontSizeChangeListener(mSetNodeFontSize, mNodeFontSize);
    mSetNodeFontSize.addPropertyChangeListener(listener);
    mNodeFontSize.addPropertyChangeListener(listener);
    mNodeFontSize.fireOnMouseClick();
}
Also used : ComboProperty(org.freeplane.core.resources.components.ComboProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) ArrayList(java.util.ArrayList)

Example 38 with BooleanProperty

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

the class StyleEditorPanel method addFormatControl.

private void addFormatControl(final List<IPropertyControl> controls) {
    mSetNodeFormat = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeFormat);
    mNodeFormat = new EditablePatternComboProperty(StyleEditorPanel.NODE_FORMAT, PatternFormat.getIdentityPatternFormat(), FormatController.getController().getAllFormats());
    controls.add(mNodeFormat);
    final NodeFormatChangeListener listener = new NodeFormatChangeListener(mSetNodeFormat, mNodeFormat);
    mSetNodeFormat.addPropertyChangeListener(listener);
    mNodeFormat.addPropertyChangeListener(listener);
    mNodeFormat.fireOnMouseClick();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 39 with BooleanProperty

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

the class StyleEditorPanel method addCloudColorControl.

private void addCloudColorControl(final List<IPropertyControl> controls) {
    mSetCloud = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetCloud);
    mCloudColor = new ColorProperty(StyleEditorPanel.CLOUD_COLOR, ResourceController.getResourceController().getDefaultProperty(CloudController.RESOURCES_CLOUD_COLOR));
    controls.add(mCloudColor);
    final CloudColorChangeListener listener = new CloudColorChangeListener(mSetCloud, mCloudColor);
    mSetCloud.addPropertyChangeListener(listener);
    mCloudColor.addPropertyChangeListener(listener);
    mCloudColor.fireOnMouseClick();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) ColorProperty(org.freeplane.core.resources.components.ColorProperty)

Example 40 with BooleanProperty

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

the class StyleEditorPanel method addBgColorControl.

private void addBgColorControl(final List<IPropertyControl> controls) {
    mSetNodeBackgroundColor = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeBackgroundColor);
    mNodeBackgroundColor = new ColorProperty(StyleEditorPanel.NODE_BACKGROUND_COLOR, ResourceController.getResourceController().getDefaultProperty(NODE_BACKGROUND_COLOR));
    controls.add(mNodeBackgroundColor);
    final BgColorChangeListener listener = new BgColorChangeListener(mSetNodeBackgroundColor, mNodeBackgroundColor);
    mSetNodeBackgroundColor.addPropertyChangeListener(listener);
    mNodeBackgroundColor.addPropertyChangeListener(listener);
    mNodeBackgroundColor.fireOnMouseClick();
}
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