Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329522 - Extend ColorConstant constructor to support "RRGGBB" color as a String
Summary: Extend ColorConstant constructor to support "RRGGBB" color as a String
Status: CLOSED FIXED
Alias: None
Product: Graphiti
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 0.8.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: M4 theme_round_offs
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-05 05:48 EDT by sergej shafarenka CLA
Modified: 2011-06-24 09:03 EDT (History)
1 user (show)

See Also:
michael.wenz: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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