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