use of org.freeplane.core.resources.components.BooleanProperty 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);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class BorderColorAndColorMatchesEdgeControlGroup method addBorderColorMatchesEdgeColorControl.
public void addBorderColorMatchesEdgeColorControl(DefaultFormBuilder formBuilder) {
mSetBorderColorMatchesEdgeColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
mBorderColorMatchesEdgeColor = new BooleanProperty(BORDER_COLOR_MATCHES_EDGE_COLOR);
borderColorMatchesEdgeColorChangeListener = new BorderColorMatchesEdgeColorListener(mSetBorderColorMatchesEdgeColor, mBorderColorMatchesEdgeColor);
mSetBorderColorMatchesEdgeColor.addPropertyChangeListener(borderColorMatchesEdgeColorChangeListener);
mBorderColorMatchesEdgeColor.addPropertyChangeListener(borderColorMatchesEdgeColorChangeListener);
mBorderColorMatchesEdgeColor.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
enableOrDisableBorderColorControls();
}
});
mSetBorderColorMatchesEdgeColor.layout(formBuilder);
mBorderColorMatchesEdgeColor.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class BorderDashAndDashMatchesEdgeControlGroup method addBorderDashControl.
private void addBorderDashControl(DefaultFormBuilder formBuilder) {
mSetBorderDash = new BooleanProperty(ControlGroup.SET_RESOURCE);
mBorderDash = ComboProperty.of(BORDER_DASH, DashVariant.class);
borderDashListener = new BorderDashListener(mSetBorderDash, mBorderDash);
mSetBorderDash.addPropertyChangeListener(borderDashListener);
mBorderDash.addPropertyChangeListener(borderDashListener);
mSetBorderDash.layout(formBuilder);
mBorderDash.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class IconSizeControlGroup method addControlGroup.
@Override
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetIconSize = new BooleanProperty(SET_RESOURCE);
mIconSize = new QuantityProperty<LengthUnits>(ICON_SIZE, 0, 256, 4, LengthUnits.px);
propertyChangeListener = new IconSizeChangeListener(mSetIconSize, mIconSize);
mSetIconSize.addPropertyChangeListener(propertyChangeListener);
mIconSize.addPropertyChangeListener(propertyChangeListener);
mSetIconSize.layout(formBuilder);
mIconSize.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class MaxNodeWidthControlGroup method addControlGroup.
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetMaxNodeWidth = new BooleanProperty(ControlGroup.SET_RESOURCE);
mMaxNodeWidth = new QuantityProperty<LengthUnits>(MAX_NODE_WIDTH, 0, 100000, 0.1, LengthUnits.px);
propertyChangeListener = new MaxNodeWidthChangeListener(mSetMaxNodeWidth, mMaxNodeWidth);
mSetMaxNodeWidth.addPropertyChangeListener(propertyChangeListener);
mMaxNodeWidth.addPropertyChangeListener(propertyChangeListener);
mSetMaxNodeWidth.layout(formBuilder);
mMaxNodeWidth.layout(formBuilder);
}
Aggregations