Search in sources :

Example 1 with FontProperty

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

the class StyleEditorPanel method addFontNameControl.

private void addFontNameControl(final List<IPropertyControl> controls) {
    mSetNodeFontName = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetNodeFontName);
    mNodeFontName = new FontProperty(StyleEditorPanel.NODE_FONT_NAME);
    controls.add(mNodeFontName);
    final FontNameChangeListener listener = new FontNameChangeListener(mSetNodeFontName, mNodeFontName);
    mSetNodeFontName.addPropertyChangeListener(listener);
    mNodeFontName.addPropertyChangeListener(listener);
    mNodeFontName.fireOnMouseClick();
}
Also used : FontProperty(org.freeplane.core.resources.components.FontProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Example 2 with FontProperty

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

the class FontNameControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetNodeFontName = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mNodeFontName = new FontProperty(NODE_FONT_NAME);
    propertyChangeListener = new FontNameChangeListener(mSetNodeFontName, mNodeFontName);
    mSetNodeFontName.addPropertyChangeListener(propertyChangeListener);
    mNodeFontName.addPropertyChangeListener(propertyChangeListener);
    mSetNodeFontName.layout(formBuilder);
    mNodeFontName.layout(formBuilder);
}
Also used : FontProperty(org.freeplane.core.resources.components.FontProperty) BooleanProperty(org.freeplane.core.resources.components.BooleanProperty)

Aggregations

BooleanProperty (org.freeplane.core.resources.components.BooleanProperty)2 FontProperty (org.freeplane.core.resources.components.FontProperty)2