Search in sources :

Example 1 with LogicalStyleController

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;
}
Also used : IStyle(org.freeplane.features.styles.IStyle) LogicalStyleController(org.freeplane.features.styles.LogicalStyleController) MapModel(org.freeplane.features.map.MapModel)

Example 2 with LogicalStyleController

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;
}
Also used : IStyle(org.freeplane.features.styles.IStyle) LogicalStyleController(org.freeplane.features.styles.LogicalStyleController) Color(java.awt.Color) MapModel(org.freeplane.features.map.MapModel)

Example 3 with LogicalStyleController

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;
}
Also used : IStyle(org.freeplane.features.styles.IStyle) LengthUnits(org.freeplane.core.ui.LengthUnits) LogicalStyleController(org.freeplane.features.styles.LogicalStyleController) MapModel(org.freeplane.features.map.MapModel)

Example 4 with LogicalStyleController

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;
}
Also used : IStyle(org.freeplane.features.styles.IStyle) LogicalStyleController(org.freeplane.features.styles.LogicalStyleController) MapModel(org.freeplane.features.map.MapModel)

Example 5 with LogicalStyleController

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;
}
Also used : MNodeStyleController(org.freeplane.features.nodestyle.mindmapmode.MNodeStyleController) MNodeStyleController(org.freeplane.features.nodestyle.mindmapmode.MNodeStyleController) NodeStyleController(org.freeplane.features.nodestyle.NodeStyleController) LogicalStyleController(org.freeplane.features.styles.LogicalStyleController) LogicalStyleController(org.freeplane.features.styles.LogicalStyleController) Controller(org.freeplane.features.mode.Controller) ModeController(org.freeplane.features.mode.ModeController) MNodeStyleController(org.freeplane.features.nodestyle.mindmapmode.MNodeStyleController) NodeStyleController(org.freeplane.features.nodestyle.NodeStyleController)

Aggregations

LogicalStyleController (org.freeplane.features.styles.LogicalStyleController)17 MapModel (org.freeplane.features.map.MapModel)10 IStyle (org.freeplane.features.styles.IStyle)10 Controller (org.freeplane.features.mode.Controller)7 NodeStyleController (org.freeplane.features.nodestyle.NodeStyleController)6 CloudController (org.freeplane.features.cloud.CloudController)5 EdgeController (org.freeplane.features.edge.EdgeController)5 LinkController (org.freeplane.features.link.LinkController)5 LocationController (org.freeplane.features.nodelocation.LocationController)5 JPopupMenu (javax.swing.JPopupMenu)4 FreeplaneToolBar (org.freeplane.core.ui.components.FreeplaneToolBar)4 AttributeController (org.freeplane.features.attribute.AttributeController)4 ClipboardController (org.freeplane.features.clipboard.ClipboardController)4 FilterController (org.freeplane.features.filter.FilterController)4 IconController (org.freeplane.features.icon.IconController)4 MMapController (org.freeplane.features.map.mindmapmode.MMapController)4 MNodeStyleController (org.freeplane.features.nodestyle.mindmapmode.MNodeStyleController)4 NoteController (org.freeplane.features.note.NoteController)4 MLogicalStyleController (org.freeplane.features.styles.mindmapmode.MLogicalStyleController)4 ViewController (org.freeplane.features.ui.ViewController)4