gumbo.visualize.data
Class DataFeedback

java.lang.Object
  |
  +--gumbo.interact.InteractorFeedback
        |
        +--gumbo.visualize.data.DataFeedback

public class DataFeedback
extends InteractorFeedback

Constants and utilities intended for use by data visualization interactors in providing interaction feedback presentations. The default implementation supports custom aspect models (see aspectColor).

Version:
$Revision: 1.1 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

Field Summary
static ClientColors ASPECT_COLORS
          Default aspect model colors.
static InteractorFeedback INSTANCE
          Default singleton instance.
 
Fields inherited from class gumbo.interact.InteractorFeedback
COLOR_ARMED, COLOR_ASPECT, COLOR_ASPECT_GROUP_OVER, COLOR_ASPECT_OVER, COLOR_CANCEL, COLOR_CANCEL_BG, COLOR_CAPTURE, COLOR_COMMAND, COLOR_COMMAND_ASPECT, COLOR_COMMAND_ASPECT_GROUP_OVER, COLOR_COMMAND_ASPECT_OVER, COLOR_COMMAND_GROUP_OVER, COLOR_COMMAND_OVER, COLOR_GROUP_OVER, COLOR_GROUP_OVER_BG, COLOR_NORMAL, COLOR_NORMAL_BG, COLOR_OVER, COLOR_OVER_BG
 
Constructor Summary
protected DataFeedback()
          Creates an instance.
 
Method Summary
 java.awt.Color aspectColor(InteractorState state)
          Default implementation: Sorts the AspectModelFlag flags, gets the front flag, and then gets the client data associated with the flag's aspect model.
 
Methods inherited from class gumbo.interact.InteractorFeedback
feedbackColor, textBackgroundColor, textForegroundColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final InteractorFeedback INSTANCE
Default singleton instance.


ASPECT_COLORS

public static final ClientColors ASPECT_COLORS
Default aspect model colors.

Constructor Detail

DataFeedback

protected DataFeedback()
Creates an instance.

Method Detail

aspectColor

public java.awt.Color aspectColor(InteractorState state)
Default implementation: Sorts the AspectModelFlag flags, gets the front flag, and then gets the client data associated with the flag's aspect model. If the client data is unknown, ASPECT_COLORS is used as the default aspect colors. Otherwise, if client data is a ClientData.Map containing COLORS_KEY, or it is a ClientColors or a Color (single color), the client data is used.

Overrides:
aspectColor in class InteractorFeedback
Returns:
The color. Null if no custom aspect flags are in the interactor state.