Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.whiteboard.gef.actions.ChangeForegroundColorAction Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.whiteboard.gef.actions.ChangeForegroundColorAction:
de.fu_berlin.inf.dpp.whiteboard.gef.actions.ColorListener

List of all members.

Public Member Functions

 ChangeForegroundColorAction ()
void run ()
void updateColor (RGB foreGround, RGB backGround)

Static Public Attributes

static final String ACTION_ID = "foregroundColor"
static final String ACTION_TEXT = "Foreground Color"

Protected Member Functions

void finalize () throws Throwable

Detailed Description

Handles the action of changing foreground color. They are added in the WhiteboardEditor, WhiteboardView and im Standalone Package in the WhiteboardContextMenuProvider and Whiteboard ActionBarContributor

Author:
Christian

Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.whiteboard.gef.actions.ChangeForegroundColorAction.ChangeForegroundColorAction ( )

The Constructor sets the ID, displayed text and the displayed image. Don't know why but it has to be set twice, otherwise only a black image is seen.


Member Function Documentation

void de.fu_berlin.inf.dpp.whiteboard.gef.actions.ChangeForegroundColorAction.finalize ( ) throws Throwable [protected]
void de.fu_berlin.inf.dpp.whiteboard.gef.actions.ChangeForegroundColorAction.run ( )

Take care of the color change dialog and set the changed color. Furthermore it changes the displayed Image

void de.fu_berlin.inf.dpp.whiteboard.gef.actions.ChangeForegroundColorAction.updateColor ( RGB  foreGround,
RGB  backGround 
)

Usercolors has been changed. May be only 1 of those has been changed

Parameters:
foreGround
backGround

Implements de.fu_berlin.inf.dpp.whiteboard.gef.actions.ColorListener.


Member Data Documentation

 All Classes Namespaces Files Functions Variables Enumerations