Search in sources :

Example 1 with NumberProperty

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

the class StyleEditorPanel method addEdgeWidthControl.

private void addEdgeWidthControl(final List<IPropertyControl> controls) {
    mSetEdgeWidth = new BooleanProperty(StyleEditorPanel.SET_RESOURCE);
    controls.add(mSetEdgeWidth);
    mEdgeWidth = new NumberProperty(StyleEditorPanel.EDGE_WIDTH, 0, 100, 1);
    controls.add(mEdgeWidth);
    final EdgeWidthChangeListener listener = new EdgeWidthChangeListener(mSetEdgeWidth, mEdgeWidth);
    mSetEdgeWidth.addPropertyChangeListener(listener);
    mEdgeWidth.addPropertyChangeListener(listener);
    mEdgeWidth.fireOnMouseClick();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) NumberProperty(org.freeplane.core.resources.components.NumberProperty)

Example 2 with NumberProperty

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

the class EdgeWidthControlGroup method addControlGroup.

@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
    mSetEdgeWidth = new BooleanProperty(ControlGroup.SET_RESOURCE);
    mEdgeWidth = new NumberProperty(EDGE_WIDTH, 0, 100, 1);
    propertyChangeListener = new EdgeWidthChangeListener(mSetEdgeWidth, mEdgeWidth);
    mSetEdgeWidth.addPropertyChangeListener(propertyChangeListener);
    mEdgeWidth.addPropertyChangeListener(propertyChangeListener);
    mSetEdgeWidth.layout(formBuilder);
    mEdgeWidth.layout(formBuilder);
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) NumberProperty(org.freeplane.core.resources.components.NumberProperty)

Example 3 with NumberProperty

use of org.freeplane.core.resources.components.NumberProperty 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();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) NumberProperty(org.freeplane.core.resources.components.NumberProperty)

Example 4 with NumberProperty

use of org.freeplane.core.resources.components.NumberProperty 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();
}
Also used : BooleanProperty(org.freeplane.core.resources.components.BooleanProperty) NumberProperty(org.freeplane.core.resources.components.NumberProperty)

Aggregations

BooleanProperty (org.freeplane.core.resources.components.BooleanProperty)4 NumberProperty (org.freeplane.core.resources.components.NumberProperty)4