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

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

public final class TimeTicsWidget
extends org.netbeans.api.visual.widget.Widget

This widget shows long axis with time tics in the scene so user has better idea when did something happen.

It has space on the left TLWidget.LEFT_MARGIN pixels long.

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  long totalTime
          Total time this widget should show, in ms
 
Constructor Summary
TimeTicsWidget(org.netbeans.api.visual.widget.Scene scene)
           
 
Method Summary
protected  Rectangle calculateClientArea()
           
protected  void paintWidget()
           
 void setTime(long newTime)
          Change length of the widget according to time interval.
 
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

totalTime

protected long totalTime
Total time this widget should show, in ms

Constructor Detail

TimeTicsWidget

public TimeTicsWidget(org.netbeans.api.visual.widget.Scene scene)
Method Detail

calculateClientArea

protected Rectangle calculateClientArea()
Overrides:
calculateClientArea in class org.netbeans.api.visual.widget.Widget

paintWidget

protected void paintWidget()
Overrides:
paintWidget in class org.netbeans.api.visual.widget.Widget

setTime

public void setTime(long newTime)
Change length of the widget according to time interval.

Parameters:
newTime - total time that this widget will show, in ms


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