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

Package class diagram package LogEventWidget
java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by org.netbeans.api.visual.widget.LabelWidget
          extended by cz.cuni.amis.nb.pogamut.unreal.timeline.widgets.LogEventWidget
All Implemented Interfaces:
Accessible

public class LogEventWidget
extends org.netbeans.api.visual.widget.LabelWidget

Widget representing Log event. Shape of this widget is box and color is same as is color of entity. LogEvent is a event that took some time from the start to end. There is also LogMessage for instant events. This widget is part of LogCategoryWidget shown in as slot under the category axis.

Author:
Honza
See Also:
LogCategoryWidget

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.LabelWidget
org.netbeans.api.visual.widget.LabelWidget.Alignment, org.netbeans.api.visual.widget.LabelWidget.Orientation, org.netbeans.api.visual.widget.LabelWidget.VerticalAlignment
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Widget.Dependency
 
Field Summary
static int height
           
protected  int LEFT_MARGIN
           
protected  int zoomFactor
           
 
Constructor Summary
LogEventWidget(LogCategoryWidget logAxisWidget, LogEvent logEvent)
           
 
Method Summary
protected  int getOffsetFromStart(long ms)
          Get offset from the start of the entity this widget represents to the passed ms.
protected  int getStartOffset()
           
protected  int getTimeframeLength(long delta)
           
protected  int getTimeframeLength(long startTS, long endTS)
           
 void updateLocation()
          Update location and range
 
Methods inherited from class org.netbeans.api.visual.widget.LabelWidget
calculateClientArea, getAlignment, getLabel, getOrientation, getVerticalAlignment, isPaintAsDisabled, isUseGlyphVector, paintWidget, setAlignment, setLabel, setOrientation, setPaintAsDisabled, setUseGlyphVector, setVerticalAlignment
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addDependency, addChild, addChild, addChild, addChild, addChildren, bringToBack, bringToFront, 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, 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
 

Field Detail

height

public static final int height
See Also:
Constant Field Values

zoomFactor

protected final int zoomFactor
See Also:
Constant Field Values

LEFT_MARGIN

protected final int LEFT_MARGIN
See Also:
Constant Field Values
Constructor Detail

LogEventWidget

public LogEventWidget(LogCategoryWidget logAxisWidget,
                      LogEvent logEvent)
Method Detail

updateLocation

public void updateLocation()
Update location and range


getStartOffset

protected final int getStartOffset()

getOffsetFromStart

protected final int getOffsetFromStart(long ms)
Get offset from the start of the entity this widget represents to the passed ms.

Parameters:
ms -
Returns:

getTimeframeLength

protected final int getTimeframeLength(long startTS,
                                       long endTS)

getTimeframeLength

protected final int getTimeframeLength(long delta)


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