Changeset 53 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/drawers/TimeSliceDrawer.java
- Timestamp:
- 08/09/2017 10:03:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/drawers/TimeSliceDrawer.java
r7 r53 96 96 } 97 97 } 98 99 /** 100 * Draw the events in this timeslice. If any exist, draw the slice event 101 * image. If the incident isn't collapsed, draw the event icons as well. 102 * 103 * @param g2d the graphics component 104 * @param slice the timeSlice to draw 105 * @param collapsed if true, don't draw the event icons 106 */ 107 public static void DrawScriptBuilderTimeSlice(Graphics2D g2d, TimeSlice slice) 108 { 109 // If this is an empty slice, return 110 if (slice.events.size() == 0) 111 { 112 return; 113 } 114 115 // Draw the slice event icon to show that there are events here 116 g2d.drawImage(getSliceEventImage(), slice.getX() 117 - ScriptBuilderGuiConstants.EVENT_ICON_WIDTH, 118 ScriptBuilderGuiConstants.TIMELINE_EVENT_ICON_MARGIN, null); 119 } 98 120 }
Note: See TracChangeset
for help on using the changeset viewer.
