Public Member Functions | Private Attributes | Static Private Attributes
edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo Class Reference

List of all members.

Public Member Functions

 ActionSelectHistoryInfo (Action a)
boolean checkHover (float x, float y)
void Draw (PApplet applet)
Action getAction ()
Vector2f getDimension ()
boolean IsHover ()
void setHover (boolean hover)
void setPosition (float x, float y, boolean isCurrent)

Private Attributes

Action action
Color currentBackgroundColor = backgroundColor
Color currentBorderColor = borderColor
Color currentTextColor = textColor
Vector2f dim
boolean draw = true
boolean isHover = false
Vector2f pos

Static Private Attributes

static final Color backgroundColor = new Color(30,30,30)
static final Color borderColor = new Color(80, 80, 80)
static final Color hoverBackgroundColor = new Color(50,50,50)
static final Color hoverBorderColor = new Color(100, 100, 100)
static final Color hoverTextColor = new Color(150,150,150)
static final float PADDING_LEFT_RIGHT = 10
static final Color textColor = new Color(80,80,80)

Detailed Description

Action Wrapper for placing an action into the click history. Also used for drawing the action in the history.

Author:
Stefan Profanter

Definition at line 17 of file ActionSelectHistoryInfo.java.


Constructor & Destructor Documentation

Constructor

Parameters:
aAction for which this wrapper is

Definition at line 73 of file ActionSelectHistoryInfo.java.


Member Function Documentation

boolean edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.checkHover ( float  x,
float  y 
) [inline]

Check if mouse coordinates x|y are over this history entry.

Parameters:
xx position of mouse
yy position of mouse
Returns:
true if position is over this entry

Definition at line 146 of file ActionSelectHistoryInfo.java.

Draw the history item on the given applet.

Parameters:
appletApplet to draw on.

Definition at line 162 of file ActionSelectHistoryInfo.java.

Get wrapping action

Returns:
action

Definition at line 106 of file ActionSelectHistoryInfo.java.

Get dimension of history entry

Returns:
dimenstion of history entry (including padding)

Definition at line 115 of file ActionSelectHistoryInfo.java.

Return if mouse is hovering over this entry.

Returns:
true if hovering.

Definition at line 190 of file ActionSelectHistoryInfo.java.

Set correct drawing colors if mouse is hovering over entry

Parameters:
hovertrue if mouse is hovering over this entry

Definition at line 124 of file ActionSelectHistoryInfo.java.

void edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.setPosition ( float  x,
float  y,
boolean  isCurrent 
) [inline]

Set position of the history entry.

Parameters:
xx position
yy position
isCurrentSet to true if this is last entry in history list (this represents the current drawn action)

Definition at line 85 of file ActionSelectHistoryInfo.java.


Member Data Documentation

Action for which this wrapper is

Definition at line 22 of file ActionSelectHistoryInfo.java.

final Color edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.backgroundColor = new Color(30,30,30) [static, private]

Definition at line 47 of file ActionSelectHistoryInfo.java.

final Color edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.borderColor = new Color(80, 80, 80) [static, private]

Default colors for drawing the history entry

Definition at line 46 of file ActionSelectHistoryInfo.java.

Definition at line 61 of file ActionSelectHistoryInfo.java.

Colors set according to current state (hovering/current or not)

Definition at line 60 of file ActionSelectHistoryInfo.java.

Definition at line 62 of file ActionSelectHistoryInfo.java.

Dimension of the history entry

Definition at line 41 of file ActionSelectHistoryInfo.java.

History may be longer than actual window width. If this action is out of view, draw is set to false. So it doesn't need to be drawn.

Definition at line 32 of file ActionSelectHistoryInfo.java.

final Color edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.hoverBackgroundColor = new Color(50,50,50) [static, private]

Definition at line 54 of file ActionSelectHistoryInfo.java.

final Color edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.hoverBorderColor = new Color(100, 100, 100) [static, private]

Colors used for drawing when mouse is hovering over this entry or this entry is current action

Definition at line 53 of file ActionSelectHistoryInfo.java.

final Color edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.hoverTextColor = new Color(150,150,150) [static, private]

Definition at line 55 of file ActionSelectHistoryInfo.java.

True if mouse is hovering over this history entry

Definition at line 26 of file ActionSelectHistoryInfo.java.

Text padding left and right

Definition at line 67 of file ActionSelectHistoryInfo.java.

Position of the history entry

Definition at line 37 of file ActionSelectHistoryInfo.java.

final Color edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.textColor = new Color(80,80,80) [static, private]

Definition at line 48 of file ActionSelectHistoryInfo.java.


The documentation for this class was generated from the following file:


mod_vis
Author(s): Moritz Tenorth, Jakob Engel
autogenerated on Sat Dec 28 2013 17:09:50