/**
* Set the border color format Node
* @param DNodeContainer currentNode
* @param Color
* @return
*/
public static boolean resetBorderColorStyle(AbstractDNode currentNode, RGB color) {
if ((currentNode != null) && (color != null)) {
Style style = getCurrentStyle(currentNode);
if (style instanceof BorderedStyle) {
BorderedStyle bStyle = (BorderedStyle) style;
RGBValues vColor = convertRGBtoRGBValues(color);
if (!isSameColor(vColor, bStyle.getBorderColor())) {
bStyle.setBorderColor(vColor);
ShapeUtil.removeCustomisation(style, new EStructuralFeature[] { DiagramPackage.Literals.BORDERED_STYLE__BORDER_COLOR });
getStyleHelper(currentNode).refreshStyle(style);
return true;
}
}
}
return false;
}
ShapeUtil.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:time4sys
作者:
评论列表
文章目录