cz.cuni.amis.nb.pogamut.unreal.timeline.widgets
Class LogCategoryWidget

Package class diagram package LogCategoryWidget
java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by cz.cuni.amis.nb.pogamut.unreal.timeline.widgets.TLWidget
          extended by cz.cuni.amis.nb.pogamut.unreal.timeline.widgets.AxisWidget
              extended by cz.cuni.amis.nb.pogamut.unreal.timeline.widgets.LogCategoryWidget
All Implemented Interfaces:
TLLogRecorder.TLLogRecorderListener, Accessible

public class LogCategoryWidget
extends AxisWidget
implements TLLogRecorder.TLLogRecorderListener

This widget represents one of logs from the entity in timeline window. It consists from axis that is marking when was timeline first and last aware of agent (=when was agent active, same length as axis of entity). On the axis are squares that represent log messages (one time event in the log). To see text of message, use tooltip. Under axis are boxwidgets representing log events.

Author:
Honza
See Also:
LogMessageWidget, LogEventWidget

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Widget.Dependency
 
Field Summary
 
Fields inherited from class cz.cuni.amis.nb.pogamut.unreal.timeline.widgets.AxisWidget
nameWidget, stripWidget, TEXT_HEIGHT, TOP_MARGIN, zoom
 
Fields inherited from class cz.cuni.amis.nb.pogamut.unreal.timeline.widgets.TLWidget
entity, LEFT_MARGIN, zoomFactor
 
Constructor Summary
protected LogCategoryWidget(TLScene scene, TLLogRecorder logRecorder)
           
 
Method Summary
 void onNewLogEvent(LogEvent newEvent)
           
 void onNewLogMessage(LogMessage newMessage)
           
 void updateWidget()
          Update location of axis, name and log messages and events.
 
Methods inherited from class cz.cuni.amis.nb.pogamut.unreal.timeline.widgets.AxisWidget
getEntity, getStripHeight, updateStripRange
 
Methods inherited from class cz.cuni.amis.nb.pogamut.unreal.timeline.widgets.TLWidget
getEntityTimeframe, getOffsetFromStart, getStartOffset, getTimeframeLength, getTimeframeLength
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addDependency, addChild, addChild, addChild, addChild, addChildren, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getChildConstraint, getChildren, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isEnabled, isHitAt, isCheckClipping, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeDependency, removeFromParent, removeChild, removeChildren, removeChildren, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setCheckClipping, setChildConstraint, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogCategoryWidget

protected LogCategoryWidget(TLScene scene,
                            TLLogRecorder logRecorder)
Method Detail

updateWidget

public void updateWidget()
Update location of axis, name and log messages and events.

Overrides:
updateWidget in class AxisWidget

onNewLogEvent

public void onNewLogEvent(LogEvent newEvent)
Specified by:
onNewLogEvent in interface TLLogRecorder.TLLogRecorderListener

onNewLogMessage

public void onNewLogMessage(LogMessage newMessage)
Specified by:
onNewLogMessage in interface TLLogRecorder.TLLogRecorderListener


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.