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();
}
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();
}
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();
}
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();
}
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();
}
Aggregations