Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329522

Summary: Extend ColorConstant constructor to support "RRGGBB" color as a String
Product: [Modeling] Graphiti Reporter: sergej shafarenka <beworker>
Component: CoreAssignee: Project Inbox <graphiti-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: michael.wenz
Version: 0.7.0Flags: michael.wenz: indigo+
Target Milestone: 0.8.0   
Hardware: All   
OS: All   
Whiteboard: M4 theme_round_offs

Description sergej shafarenka CLA 2010-11-05 05:48:04 EDT
Build Identifier: M20100211-1343

It is much easier to use commonly adopted form "RRGGBB" of color definition when creating a new ColorConstant instance. 

Like this:

public ColorConstant(String hexColor) {
	this.red = ColorUtil.getRedFromHex(hexColor);
	this.green = ColorUtil.getGreenFromHex(hexColor);
	this.blue = ColorUtil.getBlueFromHex(hexColor);
}


Reproducible: Always

Steps to Reproduce:
NA as this is an enhancement request
Comment 1 Michael Wenz CLA 2010-11-15 07:49:01 EST
This functionality is already available in Graphiti 0.8.0

Michael
Comment 2 Michael Wenz CLA 2011-06-24 09:03:47 EDT
Part of Graphiti Indigo 0.8.0