Classes | |
enum | HighlightType |
Public Member Functions | |
ActionDrawInformation (Action parent) | |
Action | checkClick (float x, float y) |
Action | checkClickExpand (float x, float y) |
ActionDrawInformation | checkHover (float x, float y, ActionDrawInformation found) |
Action | checkPosOverInboundConnector (float mouse_x, float mouse_y) |
Action | checkPosOverOutboundConnector (float mouse_x, float mouse_y) |
void | clearHightlight () |
void | drawExtendedBox (PApplet applet, Vector2f position, Vector2f drawOffset) |
void | drawSimpleBox (PApplet applet, Vector2f position, Vector2f drawOffset, float minHeight) |
void | drawSimpleBox (PApplet applet, Vector2f position, Vector2f drawOffset, float minHeight, boolean drawExpandBox) |
Rectangle | getBoundingBox () |
Vector2f | getExtendedBoxDimension () |
HighlightType | getHighlight () |
Vector2f | getInboundConnectorPos () |
float | getNameBoxHeight () |
float | getNameWidth () |
Vector2f | getOutboundConnectorPos () |
Vector2f | getSimpleBoxDimension () |
float | getTextHeight () |
boolean | highlightSubsequence (String identifier, boolean expand) |
boolean | highlightSubsequence (Action seq, boolean expand) |
boolean | IsHover () |
void | notifyModified () |
void | recalculateDimensions (PApplet applet) |
void | setHightlight (HighlightType h) |
boolean | updateHover (float x, float y) |
Public Attributes | |
Vector2f | globalPosOffset |
Vector2f | localPosOffset |
Vector2f | position |
Static Public Attributes | |
static final Vector2f | CONNECTOR_DIM = new Vector2f(50f, 7f) |
static final float | EXPAND_BOX_HEIGHT = 18f |
static final float | INNER_CONTENT_PADDING = 10f |
static final float | LINE_HEIGHT = 1.5f |
static final float | MAIN_BOX_PADDING = 15f |
static final float | SEQUENCE_BOX_PADDING = 10f |
Private Member Functions | |
ActionDrawInformation | checkHoverExpand (float mouse_x, float mouse_y, boolean hasExpandButton, float sequenceBoxHeight, boolean parentExpanded) |
ActionDrawInformation | checkHoverExtendedSequence (float x, float y, Action currAction, ActionDrawInformation found) |
void | drawBorderAndTitle (PApplet applet, Vector2f position, Vector2f dimension) |
void | drawProperties (PApplet applet, Vector2f position) |
void | drawSequence (PApplet applet, Vector2f position, Vector2f drawOffset, boolean isExpandedBox) |
void | notifyModifiedSubsequences (Action a) |
void | setHover (boolean hover) |
void | setHoverExpand (boolean hover) |
Static Private Member Functions | |
static void | checkAndAddSizeOfExpandedSequence (PApplet applet, Vector2f currentSequenceBoxSize, Action currAction) |
Private Attributes | |
Action | action |
Rectangle | boundingBoxExtended = new Rectangle(0,0,0,0) |
Rectangle | boundingBoxSimple = new Rectangle(0,0,0,0) |
float | boxOffsetLeft |
Color | currentBackgroundBrightColor = backgroundBrightColor |
Color | currentBackgroundColor = backgroundColor |
Color | currentBorderColor = borderColor |
Color | currentExpandBackgroundColor = arrowExpandBackgroundColor |
Color | currentExpandBorderColor = arrowExpandBorderColor |
Color | currentTextColor = textColor |
boolean | drawnAsSimple |
boolean | hasExpandButton = false |
HighlightType | highlight = HighlightType.NOT_HIGHTLIGHTED |
boolean | isHover = false |
float | maxKeyWidth |
float | maxSubsequenceHeight = 0 |
float | maxValueWidth |
float | nameWidth |
boolean | needsRecalculation = true |
float | propertiesHeight |
Vector2f | sequenceBoxDimension = new Vector2f() |
float | textHeight |
Static Private Attributes | |
static final Color | arrowBackgroundColor = new Color(51,105,192,230) |
static final Color | arrowBorderColor = new Color(27, 56, 102) |
static final Color | arrowExpandBackgroundColor = new Color(125,67,67,230) |
static final Color | arrowExpandBorderColor = new Color(94, 61, 61) |
static final Color | backgroundBrightColor = new Color(50,50,50) |
static final Color | backgroundColor = new Color(30,30,30) |
static final Color | borderColor = new Color(100, 100, 100) |
static final float | currentStroke = 1.5f |
static final float | defaultStroke = 1f |
static final Color | highlightBorderColor = new Color(103,134,85) |
static final Color | highlightBrightBorderColor = new Color(167,217,137) |
static final Color | hoverArrowExpandBackgroundColor = new Color(190,141,141,230) |
static final Color | hoverArrowExpandBorderColor = new Color(190, 123, 123) |
static final Color | hoverBackgroundBrightColor = new Color(100,100,100) |
static final Color | hoverBackgroundColor = new Color(60,60,60) |
static final Color | hoverBorderColor = new Color(200, 200, 200) |
static final Color | hoverTextColor = new Color(255,255,255) |
static final Color | textColor = new Color(240,240,240) |
This class is used in an Action class for saving parameters used during draw of the action. For example this stores the position/size of the action box.
There are two different drawing types:
Definition at line 28 of file ActionDrawInformation.java.
edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.ActionDrawInformation | ( | Action | parent | ) | [inline] |
Constructor
parent | Parent action for which this draw infos are |
Definition at line 301 of file ActionDrawInformation.java.
static void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.checkAndAddSizeOfExpandedSequence | ( | PApplet | applet, |
Vector2f | currentSequenceBoxSize, | ||
Action | currAction | ||
) | [inline, static, private] |
Needed for calculating the total size of the sequence box. Adds the size of an expanded box to the current calculated size
applet | Applet to draw on |
currentSequenceBoxSize | currently calculated size. If a child-sequence is expanded then it's size will be added to this. |
currAction | current action for which the subsequences should be checked |
Definition at line 388 of file ActionDrawInformation.java.
Action edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.checkClick | ( | float | x, |
float | y | ||
) | [inline] |
Check if mouse click on position x|y was intended for an action.
x | x coordinate of mouse |
y | y coordinate of mouse |
Definition at line 1133 of file ActionDrawInformation.java.
Action edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.checkClickExpand | ( | float | x, |
float | y | ||
) | [inline] |
Check if mouse click on position x|y was intended for an expand button.
x | x coordinate of mouse |
y | y coordinate of mouse |
Definition at line 1148 of file ActionDrawInformation.java.
ActionDrawInformation edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.checkHover | ( | float | x, |
float | y, | ||
ActionDrawInformation | found | ||
) | [inline] |
Check if mouse position x|y is over this action
x | x coordinate of mouse |
y | y coordinate of mouse |
foundInParent | set to true if aleady a matching box was found, so only setHover(false) is needed to call |
Definition at line 926 of file ActionDrawInformation.java.
ActionDrawInformation edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.checkHoverExpand | ( | float | mouse_x, |
float | mouse_y, | ||
boolean | hasExpandButton, | ||
float | sequenceBoxHeight, | ||
boolean | parentExpanded | ||
) | [inline, private] |
Check if mouse position x|y is over an expand arrow
mouse_x | x coordinate of mouse |
mouse_y | y coordinate of mouse |
sequenceExpandHeight | set to 0 for direct call. Only used for recursing |
Definition at line 1019 of file ActionDrawInformation.java.
ActionDrawInformation edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.checkHoverExtendedSequence | ( | float | x, |
float | y, | ||
Action | currAction, | ||
ActionDrawInformation | found | ||
) | [inline, private] |
Check if x|y coordinate is on a currently visible subsequence (also expanded ones)
x | x coordinate |
y | y coordinate |
currAction | current action to check |
found | set to an action if already one action found and the others only need to be resetted. |
Definition at line 894 of file ActionDrawInformation.java.
Action edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.checkPosOverInboundConnector | ( | float | mouse_x, |
float | mouse_y | ||
) | [inline] |
Check if mouse position is inside inbound connector
mouse_x | x coordinate of mouse |
mouse_y | y coordinate of mouse |
Definition at line 1077 of file ActionDrawInformation.java.
Action edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.checkPosOverOutboundConnector | ( | float | mouse_x, |
float | mouse_y | ||
) | [inline] |
Check if mouse position is inside outbound connector
mouse_x | x coordinate of mouse |
mouse_y | y coordinate of mouse |
Definition at line 1099 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.clearHightlight | ( | ) | [inline] |
Clear the highlight status of the action (set it to NOT_HIGHLIGHTED). Also clear the hightlight on all the children.
Definition at line 1210 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.drawBorderAndTitle | ( | PApplet | applet, |
Vector2f | position, | ||
Vector2f | dimension | ||
) | [inline, private] |
Draw border and title of the action with given dimension at given position
applet | Applet to draw on |
position | position where to draw the box |
dimension | dimension of the box to draw |
Definition at line 519 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.drawExtendedBox | ( | PApplet | applet, |
Vector2f | position, | ||
Vector2f | drawOffset | ||
) | [inline] |
Draw the extended action box which contains properties and subsequences. Also parent and child actions will be drawn.
applet | Applet to draw on. |
position | Upper left corner where to begin to draw. If the action has parent action(s) it will be the position of the first parent box. If none parent actions are present, this will be the upper left corner of the extended box. |
Definition at line 800 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.drawProperties | ( | PApplet | applet, |
Vector2f | position | ||
) | [inline, private] |
Draw the action properties beginning at the given position.
applet | Applet to draw on |
position | The upper left position to begin the drawing |
Definition at line 537 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.drawSequence | ( | PApplet | applet, |
Vector2f | position, | ||
Vector2f | drawOffset, | ||
boolean | isExpandedBox | ||
) | [inline, private] |
Draw the parent boxes of this action. These are located over the action box
applet | Applet to draw on |
position | start position where to begin to draw |
applet | Applet to draw on |
position | start position where to begin to draw |
applet | Applet to draw on |
parentPoints | Connection points of parent actions |
childPoints | Connection points of child actions Draw the subsequence boxes of current action. |
applet | Applet to draw on |
position | Start position (upper left corner) |
Definition at line 712 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.drawSimpleBox | ( | PApplet | applet, |
Vector2f | position, | ||
Vector2f | drawOffset, | ||
float | minHeight | ||
) | [inline] |
Draw the simple box. Contains title and properties
applet | Applet to draw on |
position | Position where to draw the box |
minHeight | minimum height of the box. |
Definition at line 559 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.drawSimpleBox | ( | PApplet | applet, |
Vector2f | position, | ||
Vector2f | drawOffset, | ||
float | minHeight, | ||
boolean | drawExpandBox | ||
) | [inline] |
Draw the simple box. Contains title and properties
applet | Applet to draw on |
position | Position where to draw the box |
minHeight | minimum height of the box. |
Definition at line 570 of file ActionDrawInformation.java.
Rectangle edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.getBoundingBox | ( | ) | [inline] |
Get the bounding box of currently drawn action. If drawn as simple, the simple bounding box is returned, otherwise the extended bounding box.
Definition at line 1180 of file ActionDrawInformation.java.
Vector2f edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.getExtendedBoxDimension | ( | ) | [inline] |
Get dimension of the extended box. The extended box contains title, properties and subsequences
Definition at line 372 of file ActionDrawInformation.java.
Get the highlight status of the action
Definition at line 1192 of file ActionDrawInformation.java.
Vector2f edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.getInboundConnectorPos | ( | ) | [inline] |
Definition at line 1327 of file ActionDrawInformation.java.
float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.getNameBoxHeight | ( | ) | [inline] |
Height of title box of the action
Definition at line 335 of file ActionDrawInformation.java.
float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.getNameWidth | ( | ) | [inline] |
Get width of name in pixels.
Definition at line 344 of file ActionDrawInformation.java.
Vector2f edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.getOutboundConnectorPos | ( | ) | [inline] |
Definition at line 1321 of file ActionDrawInformation.java.
Vector2f edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.getSimpleBoxDimension | ( | ) | [inline] |
Get dimension of the simple box. The simple box contains only title and properties
Definition at line 354 of file ActionDrawInformation.java.
float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.getTextHeight | ( | ) | [inline] |
Get height of drawing text
Definition at line 1161 of file ActionDrawInformation.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.highlightSubsequence | ( | String | identifier, |
boolean | expand | ||
) | [inline] |
Search for a subsequence with the given identifier and highlight it (and also it's parents). If expand is true, all sequences will be expanded so that the highlighted sequence is visible.
identifier | Prolog identifier of the action to highlight |
expand | expand all parent actions |
Definition at line 1244 of file ActionDrawInformation.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.highlightSubsequence | ( | Action | seq, |
boolean | expand | ||
) | [inline] |
Search for the subsequence seq
and highlight it (and also it's parents). If expand is true, all sequences will be expanded so that the highlighted sequence is visible.
seq | The action to highlight |
expand | expand all parent actions |
Definition at line 1286 of file ActionDrawInformation.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.IsHover | ( | ) | [inline] |
Get action state if mouse is hovering over this action.
Definition at line 1170 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.notifyModified | ( | ) | [inline] |
Call this if action properties/subsequences/parents/children changed. This tells the class to recalculate the dimensions of all boxes
Definition at line 325 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.notifyModifiedSubsequences | ( | Action | a | ) | [inline, private] |
Notify all subsequences that something has changed and recalculation is needed
a |
Definition at line 313 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.recalculateDimensions | ( | PApplet | applet | ) | [inline] |
Recalculate the dimension of simple/extended box. Only executed if needsRecalculation is set to true (notifyModified called)
applet | Applet used to draw the action. Only used for text calculation. Because width of text is dependent on current text setting |
Definition at line 406 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.setHightlight | ( | HighlightType | h | ) | [inline] |
Set the highlight status of the action
h | status to set |
Definition at line 1201 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.setHover | ( | boolean | hover | ) | [inline, private] |
Set the correct colors when hovering over action. If mouse if over action, the hover* colors will be used to draw it.
hover | If true use hover* colors, otherwise use normal colors |
Definition at line 850 of file ActionDrawInformation.java.
void edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.setHoverExpand | ( | boolean | hover | ) | [inline, private] |
Set the correct colors when hovering over expand arrow. If mouse if over expand arrow, the hover* colors will be used to draw it.
hover | If true use hover* colors, otherwise use normal colors |
Definition at line 873 of file ActionDrawInformation.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.updateHover | ( | float | x, |
float | y | ||
) | [inline] |
Update color of action for current mouse position.
x | x coordinate of mouse |
y | y coordinate of mouse |
Definition at line 1121 of file ActionDrawInformation.java.
parent action of this draw info
Definition at line 194 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.arrowBackgroundColor = new Color(51,105,192,230) [static, private] |
Background color of arrow between sequence boxes
Definition at line 110 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.arrowBorderColor = new Color(27, 56, 102) [static, private] |
Border color of arrow between sequence boxes
Definition at line 106 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.arrowExpandBackgroundColor = new Color(125,67,67,230) [static, private] |
Background color of arrow expanding box
Definition at line 118 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.arrowExpandBorderColor = new Color(94, 61, 61) [static, private] |
Border color of arrow for expanding box
Definition at line 114 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.backgroundBrightColor = new Color(50,50,50) [static, private] |
Default background color for subsequence box
Definition at line 82 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.backgroundColor = new Color(30,30,30) [static, private] |
Default background color for boxes
Definition at line 78 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.borderColor = new Color(100, 100, 100) [static, private] |
Default border color for boxes
Definition at line 74 of file ActionDrawInformation.java.
Rectangle edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.boundingBoxExtended = new Rectangle(0,0,0,0) [private] |
Position and dimension of Expanded and Simple box
Definition at line 292 of file ActionDrawInformation.java.
Rectangle edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.boundingBoxSimple = new Rectangle(0,0,0,0) [private] |
Definition at line 293 of file ActionDrawInformation.java.
Maximum box height over all parent actions of this action. Used to draw all parents with same height Maximum box height over all child actions of this action. Used to draw all parents with same height X position of parent boxes X position of child boxes If parent or child boxes are wider than the extended box, the extended box must be shifted a bit to the right. This shift indicates the following variable.
Definition at line 255 of file ActionDrawInformation.java.
final Vector2f edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.CONNECTOR_DIM = new Vector2f(50f, 7f) [static] |
Dimensions of the box-connectors
Definition at line 55 of file ActionDrawInformation.java.
Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.currentBackgroundBrightColor = backgroundBrightColor [private] |
Definition at line 182 of file ActionDrawInformation.java.
Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.currentBackgroundColor = backgroundColor [private] |
Definition at line 181 of file ActionDrawInformation.java.
Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.currentBorderColor = borderColor [private] |
Following colors are set to default colors if not hovering
Definition at line 180 of file ActionDrawInformation.java.
Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.currentExpandBackgroundColor = arrowExpandBackgroundColor [private] |
Definition at line 189 of file ActionDrawInformation.java.
Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.currentExpandBorderColor = arrowExpandBorderColor [private] |
Following colors are set to default colors if not hovering over expand box
Definition at line 188 of file ActionDrawInformation.java.
final float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.currentStroke = 1.5f [static, private] |
line/border width of current action
Definition at line 64 of file ActionDrawInformation.java.
Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.currentTextColor = textColor [private] |
Definition at line 183 of file ActionDrawInformation.java.
final float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.defaultStroke = 1f [static, private] |
Default line/border width
Definition at line 60 of file ActionDrawInformation.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.drawnAsSimple [private] |
Used for intern calculation such as if mouse is hovering. Indicates if drawSimpleBox or drawExtendedBox was used to draw this action.
Definition at line 175 of file ActionDrawInformation.java.
final float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.EXPAND_BOX_HEIGHT = 18f [static] |
total height of the expand box under a subsequence box
Definition at line 50 of file ActionDrawInformation.java.
global position offset (canvas has been dragged)
Definition at line 285 of file ActionDrawInformation.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.hasExpandButton = false [private] |
Set to true if this action has additional subsequences which can be expanded.
Definition at line 270 of file ActionDrawInformation.java.
HighlightType edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.highlight = HighlightType.NOT_HIGHTLIGHTED [private] |
Highlight state of current action
Definition at line 165 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.highlightBorderColor = new Color(103,134,85) [static, private] |
Border color of parents of highlighted action
Definition at line 130 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.highlightBrightBorderColor = new Color(167,217,137) [static, private] |
Border color of hightlighted action
Definition at line 134 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.hoverArrowExpandBackgroundColor = new Color(190,141,141,230) [static, private] |
Background color of arrow expanding box
Definition at line 126 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.hoverArrowExpandBorderColor = new Color(190, 123, 123) [static, private] |
Border color of arrow for expanding box
Definition at line 122 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.hoverBackgroundBrightColor = new Color(100,100,100) [static, private] |
background color for subsequence box when hovering
Definition at line 98 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.hoverBackgroundColor = new Color(60,60,60) [static, private] |
background color for boxes when hovering
Definition at line 94 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.hoverBorderColor = new Color(200, 200, 200) [static, private] |
border color for boxes when hovering
Definition at line 90 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.hoverTextColor = new Color(255,255,255) [static, private] |
text color when hovering
Definition at line 102 of file ActionDrawInformation.java.
final float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.INNER_CONTENT_PADDING = 10f [static] |
Padding between sections of the action. E.g. between properties and subsequence box
Definition at line 38 of file ActionDrawInformation.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.isHover = false [private] |
True if mouse if hovering over this action
Definition at line 205 of file ActionDrawInformation.java.
final float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.LINE_HEIGHT = 1.5f [static] |
Text line height
Definition at line 33 of file ActionDrawInformation.java.
action-specific position offset (action has been dragged selectively)
Definition at line 280 of file ActionDrawInformation.java.
final float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.MAIN_BOX_PADDING = 15f [static] |
Padding between main box border and content
Definition at line 42 of file ActionDrawInformation.java.
Maximum width over all key texts, used to align properties text
Definition at line 215 of file ActionDrawInformation.java.
float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.maxSubsequenceHeight = 0 [private] |
Height for all actions in the sequence box
Definition at line 265 of file ActionDrawInformation.java.
Maximum width over all value texts, used to calculate max box width
Definition at line 219 of file ActionDrawInformation.java.
Width of the name text, used to calculate max box width
Definition at line 210 of file ActionDrawInformation.java.
boolean edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.needsRecalculation = true [private] |
set to true if parameters need a recalculation. This is the case if properties/subactions/... have changed
Definition at line 200 of file ActionDrawInformation.java.
current position to draw the main box of the action
Definition at line 275 of file ActionDrawInformation.java.
Height of properties all together. Used to calculate max box height
Definition at line 223 of file ActionDrawInformation.java.
final float edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.SEQUENCE_BOX_PADDING = 10f [static] |
Padding around a single sequence box in the subsequence box
Definition at line 46 of file ActionDrawInformation.java.
Vector2f edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.sequenceBoxDimension = new Vector2f() [private] |
Size of the sequence box containing the subsequences of an action.
Definition at line 260 of file ActionDrawInformation.java.
final Color edu.tum.cs.ias.knowrob.vis.actions.ActionDrawInformation.textColor = new Color(240,240,240) [static, private] |
Default text color
Definition at line 86 of file ActionDrawInformation.java.
Height of a single text line. Used for calculating text positions
Definition at line 228 of file ActionDrawInformation.java.