public void setAttribute(final Object userObject, final String value) { final NodeModel node = (NodeModel) userObject; NodeBorderModel.setBorderDashMatchesEdgeDash(node, Boolean.valueOf(value)); } };
public static void setBorderDashMatchesEdgeDash(final NodeModel node, final Boolean borderDashMatchesEdgeDash) { createNodeBorderModel(node).setBorderDashMatchesEdgeDash(borderDashMatchesEdgeDash); }
@Override public void act() { NodeBorderModel.setBorderDashMatchesEdgeDash(node, borderDashMatchesEdgeDash); final MapController mapController = getModeController().getMapController(); mapController.nodeChanged(node); }
@Override public void undo() { NodeBorderModel.setBorderDashMatchesEdgeDash(node, oldBorderDashMatchesEdgeDash); final MapController mapController = getModeController().getMapController(); mapController.nodeChanged(node); } };
public void copyTo(NodeBorderModel to) { if(borderWidthMatchesEdgeWidth != null) to.setBorderWidthMatchesEdgeWidth(borderWidthMatchesEdgeWidth); if(borderDashMatchesEdgeDash != null) to.setBorderDashMatchesEdgeDash(borderDashMatchesEdgeDash); if(borderWidth != null) to.setBorderWidth(borderWidth); if(borderColorMatchesEdgeColor != null) to.setBorderColorMatchesEdgeColor(borderColorMatchesEdgeColor); if(borderColor != null) to.setBorderColor(borderColor); } }
private void removeBorderData(Object key, NodeModel from, NodeModel which) { final NodeBorderModel whichData = which.getExtension(NodeBorderModel.class); if (whichData == null) { return; } final NodeBorderModel fromData = from.getExtension(NodeBorderModel.class); if (fromData == null) { return; } if (null != whichData.getBorderWidthMatchesEdgeWidth()) { fromData.setBorderWidthMatchesEdgeWidth(null); } if (null != whichData.getBorderWidth()) { fromData.setBorderWidth(null); } if (null != whichData.getBorderDashMatchesEdgeDash()) { fromData.setBorderDashMatchesEdgeDash(null); } if (null != whichData.getBorderDash()) { fromData.setBorderDash(null); } if (null != whichData.getBorderColorMatchesEdgeColor()) { fromData.setBorderColorMatchesEdgeColor(null); } if (null != whichData.getBorderColor()) { fromData.setBorderColor(null); } }