use of org.freeplane.features.styles.LogicalStyleController in project freeplane by freeplane.
the class NodeStyleController method getBorderColorMatchesEdgeColor.
public Boolean getBorderColorMatchesEdgeColor(NodeModel node) {
final MapModel map = node.getMap();
final LogicalStyleController styleController = LogicalStyleController.getController(modeController);
final Collection<IStyle> style = styleController.getStyles(node);
final Boolean borderColorMatchesEdgeColor = getBorderColorMatchesEdgeColor(map, style);
return borderColorMatchesEdgeColor;
}
use of org.freeplane.features.styles.LogicalStyleController in project freeplane by freeplane.
the class NodeStyleController method getBorderColor.
public Color getBorderColor(NodeModel node) {
final MapModel map = node.getMap();
final LogicalStyleController styleController = LogicalStyleController.getController(modeController);
final Collection<IStyle> style = styleController.getStyles(node);
final Color borderColor = getBorderColor(map, style);
return borderColor;
}
use of org.freeplane.features.styles.LogicalStyleController in project freeplane by freeplane.
the class NodeStyleController method getMaxWidth.
public Quantity<LengthUnits> getMaxWidth(NodeModel node) {
final MapModel map = node.getMap();
final LogicalStyleController styleController = LogicalStyleController.getController(modeController);
final Collection<IStyle> style = styleController.getStyles(node);
final Quantity<LengthUnits> maxTextWidth = getMaxNodeWidth(map, style);
return maxTextWidth;
}
use of org.freeplane.features.styles.LogicalStyleController in project freeplane by freeplane.
the class NodeStyleController method getBorderWidthMatchesEdgeWidth.
public Boolean getBorderWidthMatchesEdgeWidth(NodeModel node) {
final MapModel map = node.getMap();
final LogicalStyleController styleController = LogicalStyleController.getController(modeController);
final Collection<IStyle> style = styleController.getStyles(node);
final Boolean borderWidthMatchesEdgeWidth = getBorderWidthMatchesEdgeWidth(map, style);
return borderWidthMatchesEdgeWidth;
}
use of org.freeplane.features.styles.LogicalStyleController in project freeplane by freeplane.
the class MUIFactory method changeToolbar.
private void changeToolbar(final NodeModel node) {
final Controller controller = Controller.getCurrentController();
final MNodeStyleController styleController = (MNodeStyleController) controller.getModeController().getExtension(NodeStyleController.class);
selectFontSize(Integer.toString(styleController.getFontSize(node)));
selectFontName(styleController.getFontFamilyName(node));
final LogicalStyleController logicalStyleController = LogicalStyleController.getController();
ignoreChangeEvent = true;
styles.setSelectedItem(logicalStyleController.getFirstStyle(node));
ignoreChangeEvent = false;
}
Aggregations