Search in sources :

Example 6 with ColorProperty

use of org.freeplane.core.resources.components.ColorProperty 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 7 with ColorProperty

use of org.freeplane.core.resources.components.ColorProperty 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)

Example 8 with ColorProperty

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

the class StyleEditorPanel method addColorControl.

private void addColorControl(final List<IPropertyControl> controls) {
    mSetNodeColor = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeColor);
    mNodeColor = new ColorProperty(StyleEditorPanel.NODE_COLOR, ResourceController.getResourceController().getDefaultProperty(NODE_TEXT_COLOR));
    controls.add(mNodeColor);
    final ColorChangeListener listener = new ColorChangeListener(mSetNodeColor, mNodeColor);
    mSetNodeColor.addPropertyChangeListener(listener);
    mNodeColor.addPropertyChangeListener(listener);
    mNodeColor.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)8 ColorProperty (org.freeplane.core.resources.components.ColorProperty)8