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) |
Action Wrapper for placing an action into the click history. Also used for drawing the action in the history.
Definition at line 17 of file ActionSelectHistoryInfo.java.
edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.ActionSelectHistoryInfo | ( | Action | a | ) | [inline] |
Constructor
a | Action for which this wrapper is |
Definition at line 73 of file ActionSelectHistoryInfo.java.
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.
x | x position of mouse |
y | y position of mouse |
Definition at line 146 of file ActionSelectHistoryInfo.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.Draw | ( | PApplet | applet | ) | [inline] |
Draw the history item on the given applet.
applet | Applet to draw on. |
Definition at line 162 of file ActionSelectHistoryInfo.java.
Vector2f edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.getDimension | ( | ) | [inline] |
Get dimension of history entry
Definition at line 115 of file ActionSelectHistoryInfo.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.IsHover | ( | ) | [inline] |
Return if mouse is hovering over this entry.
Definition at line 190 of file ActionSelectHistoryInfo.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.setHover | ( | boolean | hover | ) | [inline] |
Set correct drawing colors if mouse is hovering over entry
hover | true 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.
x | x position |
y | y position |
isCurrent | Set to true if this is last entry in history list (this represents the current drawn action) |
Definition at line 85 of file ActionSelectHistoryInfo.java.
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.
Color edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.currentBackgroundColor = backgroundColor [private] |
Definition at line 61 of file ActionSelectHistoryInfo.java.
Color edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.currentBorderColor = borderColor [private] |
Colors set according to current state (hovering/current or not)
Definition at line 60 of file ActionSelectHistoryInfo.java.
Color edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.currentTextColor = textColor [private] |
Definition at line 62 of file ActionSelectHistoryInfo.java.
Vector2f edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.dim [private] |
Dimension of the history entry
Definition at line 41 of file ActionSelectHistoryInfo.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.draw = true [private] |
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.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.isHover = false [private] |
True if mouse is hovering over this history entry
Definition at line 26 of file ActionSelectHistoryInfo.java.
final float edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.PADDING_LEFT_RIGHT = 10 [static, private] |
Text padding left and right
Definition at line 67 of file ActionSelectHistoryInfo.java.
Vector2f edu.tum.cs.ias.knowrob.vis.actions.ActionSelectHistoryInfo.pos [private] |
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.