use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class MinNodeWidthControlGroup method addControlGroup.
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetMinNodeWidth = new BooleanProperty(ControlGroup.SET_RESOURCE);
mMinNodeWidth = new QuantityProperty<LengthUnits>(MIN_NODE_WIDTH, 0, 100000, 0.1, LengthUnits.px);
propertyChangeListener = new MinNodeWidthChangeListener(mSetMinNodeWidth, mMinNodeWidth);
mSetMinNodeWidth.addPropertyChangeListener(propertyChangeListener);
mMinNodeWidth.addPropertyChangeListener(propertyChangeListener);
mSetMinNodeWidth.layout(formBuilder);
mMinNodeWidth.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class NodeColorControlGroup method addControlGroup.
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetNodeColor = new BooleanProperty(ControlGroup.SET_RESOURCE);
mNodeColor = new ColorProperty(NODE_COLOR, ResourceController.getResourceController().getDefaultProperty(NODE_TEXT_COLOR));
propertyChangeListener = new NodeColorChangeListener(mSetNodeColor, mNodeColor);
mSetNodeColor.addPropertyChangeListener(propertyChangeListener);
mNodeColor.addPropertyChangeListener(propertyChangeListener);
mSetNodeColor.layout(formBuilder);
mNodeColor.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class NodeFontHyperLinkControlGroup method addControlGroup.
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetNodeFontHyperlink = new BooleanProperty(ControlGroup.SET_RESOURCE);
mNodeFontHyperlink = new BooleanProperty(NODE_FONT_HYPERLINK);
propertyChangeListener = new FontHyperlinkChangeListener(mSetNodeFontHyperlink, mNodeFontHyperlink);
mSetNodeFontHyperlink.addPropertyChangeListener(propertyChangeListener);
mNodeFontHyperlink.addPropertyChangeListener(propertyChangeListener);
mSetNodeFontHyperlink.layout(formBuilder);
mNodeFontHyperlink.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class NodeHorizontalTextAlignmentControlGroup method addControlGroup.
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetNodeTextAlignment = new BooleanProperty(ControlGroup.SET_RESOURCE);
final Vector<String> possibleTranslations = new Vector<String>(TEXT_ALIGNMENTS.length);
for (int i = 0; i < TEXT_ALIGNMENTS.length; i++) {
possibleTranslations.add(TextUtils.getText("TextAlignAction." + TEXT_ALIGNMENTS[i] + ".text"));
}
Vector<String> translations = possibleTranslations;
mNodeTextAlignment = new ComboProperty(TEXT_ALIGNMENT, Arrays.asList(TEXT_ALIGNMENTS), translations);
propertyChangeListener = new NodeTextAlignmentChangeListener(mSetNodeTextAlignment, mNodeTextAlignment);
mSetNodeTextAlignment.addPropertyChangeListener(propertyChangeListener);
mNodeTextAlignment.addPropertyChangeListener(propertyChangeListener);
mSetNodeTextAlignment.layout(formBuilder);
mNodeTextAlignment.layout(formBuilder);
}
use of org.freeplane.core.resources.components.BooleanProperty in project freeplane by freeplane.
the class NodeShapeControlGroup method addControlGroup.
public void addControlGroup(DefaultFormBuilder formBuilder) {
mSetNodeShape = new BooleanProperty(ControlGroup.SET_RESOURCE);
mNodeShape = ComboProperty.of(NODE_SHAPE, NodeStyleModel.Shape.class);
mShapeHorizontalMargin = new QuantityProperty<LengthUnits>(SHAPE_HORIZONTAL_MARGIN, 0, 1000, 0.1, LengthUnits.pt);
mShapeVerticalMargin = new QuantityProperty<LengthUnits>(SHAPE_VERTICAL_MARGIN, 0, 1000, 0.1, LengthUnits.pt);
mUniformShape = new BooleanProperty(UNIFORM_SHAPE);
propertyChangeListener = new NodeShapeChangeListener(mSetNodeShape, mNodeShape, mShapeHorizontalMargin, mShapeVerticalMargin, mUniformShape);
mSetNodeShape.addPropertyChangeListener(propertyChangeListener);
mNodeShape.addPropertyChangeListener(propertyChangeListener);
mShapeHorizontalMargin.addPropertyChangeListener(propertyChangeListener);
mShapeVerticalMargin.addPropertyChangeListener(propertyChangeListener);
mUniformShape.addPropertyChangeListener(propertyChangeListener);
mSetNodeShape.layout(formBuilder);
mNodeShape.layout(formBuilder);
new NextColumnProperty(2).layout(formBuilder);
mShapeHorizontalMargin.layout(formBuilder);
new NextColumnProperty(2).layout(formBuilder);
mShapeVerticalMargin.layout(formBuilder);
new NextColumnProperty(2).layout(formBuilder);
mUniformShape.layout(formBuilder);
}
Aggregations