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

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

public abstract class TLWidget
extends org.netbeans.api.visual.widget.Widget

Ancestor fo all widgets in timeline.

Author:
Honza

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Widget.Dependency
 
Field Summary
protected  TLEntity entity
           
static int LEFT_MARGIN
           
static int zoomFactor
          How many milisec equals one pixel
 
Constructor Summary
protected TLWidget(org.netbeans.api.visual.widget.Scene scene, TLEntity entity)
           
 
Method Summary
protected  long getEntityTimeframe()
           
protected  int getOffsetFromStart(long ms)
          Get offset from the start of the entity this widget represents to the passed ms.
protected  int getStartOffset()
          Get offset from the start of db to start of entity this widget belongs to.
protected  int getTimeframeLength(long delta)
           
protected  int getTimeframeLength(long startTS, long endTS)
           
 
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
 

Field Detail

zoomFactor

public static final int zoomFactor
How many milisec equals one pixel

See Also:
Constant Field Values

LEFT_MARGIN

public static final int LEFT_MARGIN
See Also:
Constant Field Values

entity

protected TLEntity entity
Constructor Detail

TLWidget

protected TLWidget(org.netbeans.api.visual.widget.Scene scene,
                   TLEntity entity)
Method Detail

getStartOffset

protected final int getStartOffset()
Get offset from the start of db to start of entity this widget belongs to.

Returns:

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)

getEntityTimeframe

protected final long getEntityTimeframe()


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