use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class StyleEditorPanel method addMinNodeWidthControl.
private void addMinNodeWidthControl(final List<IPropertyControl> controls) {
mSetMinNodeWidth = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
controls.add(mSetMinNodeWidth);
mMinNodeWidth = new NumberProperty(StyleEditorPanel.MIN_NODE_WIDTH, 1, Integer.MAX_VALUE, 1);
controls.add(mMinNodeWidth);
final MinNodeWidthChangeListener listener = new MinNodeWidthChangeListener(mSetMinNodeWidth, mMinNodeWidth);
mSetMinNodeWidth.addPropertyChangeListener(listener);
mMinNodeWidth.addPropertyChangeListener(listener);
mMinNodeWidth.fireOnMouseClick();
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class StyleEditorPanel method addFontBoldControl.
private void addFontBoldControl(final List<IPropertyControl> controls) {
mSetNodeFontBold = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
controls.add(mSetNodeFontBold);
mNodeFontBold = new BooleanProperty(StyleEditorPanel.NODE_FONT_BOLD);
controls.add(mNodeFontBold);
final FontBoldChangeListener listener = new FontBoldChangeListener(mSetNodeFontBold, mNodeFontBold);
mSetNodeFontBold.addPropertyChangeListener(listener);
mNodeFontBold.addPropertyChangeListener(listener);
mNodeFontBold.fireOnMouseClick();
}
use of org.freeplane.core.resources.components.BooleanProperty 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();
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class StyleEditorPanel method addNodeShapeControl.
private void addNodeShapeControl(final List<IPropertyControl> controls) {
mSetNodeShape = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
controls.add(mSetNodeShape);
mNodeShape = new ComboProperty(StyleEditorPanel.NODE_SHAPE, new String[] { "fork", "bubble", "as_parent", "combined" });
controls.add(mNodeShape);
final NodeShapeChangeListener listener = new NodeShapeChangeListener(mSetNodeShape, mNodeShape);
mSetNodeShape.addPropertyChangeListener(listener);
mNodeShape.addPropertyChangeListener(listener);
mNodeShape.fireOnMouseClick();
}
Aggregations