use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class BorderColorAndColorMatchesEdgeControlGroup method addBorderColorControl.
private void addBorderColorControl(DefaultFormBuilder formBuilder) {
mSetBorderColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
mBorderColor = new ColorProperty(BORDER_COLOR, ColorUtils.colorToString(EdgeController.STANDARD_EDGE_COLOR));
borderColorListener = new BorderColorListener(mSetBorderColor, mBorderColor);
mSetBorderColor.addPropertyChangeListener(borderColorListener);
mBorderColor.addPropertyChangeListener(borderColorListener);
mSetBorderColor.layout(formBuilder);
mBorderColor.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class BorderDashAndDashMatchesEdgeControlGroup method addBorderDashMatchesEdgeDashControl.
public void addBorderDashMatchesEdgeDashControl(DefaultFormBuilder formBuilder) {
mSetBorderDashMatchesEdgeDash = new BooleanProperty(ControlGroup.SET_RESOURCE);
mBorderDashMatchesEdgeDash = new BooleanProperty(BORDER_DASH_MATCHES_EDGE_DASH);
borderDashMatchesEdgeDashChangeListener = new BorderDashMatchesEdgeDashListener(mSetBorderDashMatchesEdgeDash, mBorderDashMatchesEdgeDash);
mSetBorderDashMatchesEdgeDash.addPropertyChangeListener(borderDashMatchesEdgeDashChangeListener);
mBorderDashMatchesEdgeDash.addPropertyChangeListener(borderDashMatchesEdgeDashChangeListener);
mBorderDashMatchesEdgeDash.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
enableOrDisableBorderDashControls();
}
});
mSetBorderDashMatchesEdgeDash.layout(formBuilder);
mBorderDashMatchesEdgeDash.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class BorderWidthAndBorderWidthMatchesEdgeControlGroup method addBorderWidthControl.
private void addBorderWidthControl(DefaultFormBuilder formBuilder) {
mSetBorderWidth = new BooleanProperty(ControlGroup.SET_RESOURCE);
mBorderWidth = new QuantityProperty<LengthUnits>(BORDER_WIDTH, 0, 100000, 0.1, LengthUnits.px);
borderWidthListener = new BorderWidthListener(mSetBorderWidth, mBorderWidth);
mSetBorderWidth.addPropertyChangeListener(borderWidthListener);
mBorderWidth.addPropertyChangeListener(borderWidthListener);
mSetBorderWidth.layout(formBuilder);
mBorderWidth.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class BorderWidthAndBorderWidthMatchesEdgeControlGroup method addBorderWidthMatchesEdgeWidthControl.
public void addBorderWidthMatchesEdgeWidthControl(DefaultFormBuilder formBuilder) {
mSetBorderWidthMatchesEdgeWidth = new BooleanProperty(ControlGroup.SET_RESOURCE);
mBorderWidthMatchesEdgeWidth = new BooleanProperty(BORDER_WIDTH_MATCHES_EDGE_WIDTH);
borderWidthMatchesEdgeChangeListener = new BorderWidthMatchesEdgeWidthListener(mSetBorderWidthMatchesEdgeWidth, mBorderWidthMatchesEdgeWidth);
mSetBorderWidthMatchesEdgeWidth.addPropertyChangeListener(borderWidthMatchesEdgeChangeListener);
mBorderWidthMatchesEdgeWidth.addPropertyChangeListener(borderWidthMatchesEdgeChangeListener);
mBorderWidthMatchesEdgeWidth.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
enableOrDisableBorderWidthControls();
}
});
mSetBorderWidthMatchesEdgeWidth.layout(formBuilder);
mBorderWidthMatchesEdgeWidth.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class ChildDistanceControlGroup method addControlGroup.
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetChildDistance = new BooleanProperty(ControlGroup.SET_RESOURCE);
mChildDistance = new QuantityProperty<LengthUnits>(VERTICAL_CHILD_GAP, 0, 1000, 0.1, LengthUnits.px);
propertyChangeListener = new ChildDistanceChangeListener(mSetChildDistance, mChildDistance);
mSetChildDistance.addPropertyChangeListener(propertyChangeListener);
mChildDistance.addPropertyChangeListener(propertyChangeListener);
mSetChildDistance.layout(formBuilder);
mChildDistance.layout(formBuilder);
}
Aggregations