Search in sources :

Example 1 with ColorProperty

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

the class StyleEditorPanel method addEdgeColorControl.

private void addEdgeColorControl(final List<IPropertyControl> controls) {
    mSetEdgeColor = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetEdgeColor);
    mEdgeColor = new ColorProperty(StyleEditorPanel.EDGE_COLOR, ColorUtils.colorToString(EdgeController.STANDARD_EDGE_COLOR));
    controls.add(mEdgeColor);
    final EdgeColorChangeListener listener = new EdgeColorChangeListener(mSetEdgeColor, mEdgeColor);
    mSetEdgeColor.addPropertyChangeListener(listener);
    mEdgeColor.addPropertyChangeListener(listener);
    mEdgeColor.fireOnMouseClick();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) ColorProperty(org.freeplane.core.resources.components.ColorProperty)

Example 2 with ColorProperty

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

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

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

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