Protege-2000 1.7

edu.stanford.smi.protegex.layout
Class AnimationContext

java.lang.Object
  |
  +--edu.stanford.smi.protegex.layout.AnimationContext
Direct Known Subclasses:
DiagramsAnimationContext, TilingAnimationFrame

public class AnimationContext
extends Object

Description of the Class

Author:
William Grosso

Field Summary
protected  AnimationContextMouseEventHandler _animationContextMouseEventHandler
           
protected  BackgroundManager _backgroundManager
           
protected  Rectangle _coordinateSystem
           
protected  Component _owner
           
protected  edu.stanford.smi.protegex.layout.AnimationContext.PaintAction _paintAction
           
protected  AnimationContextSelectionHandler _selectionHandler
           
protected  edu.stanford.smi.protegex.layout.AnimationContext.TickAction _tickAction
           
protected  ZOrder _zOrder
           
 
Constructor Summary
AnimationContext(boolean visibleToEvents, BackgroundManager backgroundManager, Rectangle coordinateSystem, Component owner, AnimationContextMouseEventHandler animationContextMouseEventHandler)
           
 
Method Summary
 void addActorToBottom(Actor actor)
           
 void addActorToTop(Actor actor)
           
 void addAnimationContextSelectionListener(AnimationContextSelectionListener newListener)
           
 Rectangle getActiveRectangle()
           
 Rectangle getActiveRectangle(Rectangle returnValue)
           
 Rectangle getCoordinateSystem()
           
 Rectangle getCoordinateSystem(Rectangle returnValue)
           
 Actor getLeadSelection()
           
 Component getOwner()
           
 Collection getSelectedActors()
           
 boolean getVisibleToEvents()
           
 ZOrder getZOrder()
           
 boolean isSingleSelection()
           
 void moveActorToBottom(Actor actor)
           
 void moveActorToTop(Actor actor)
           
 void paint(Graphics g)
           
 void processMouseEvent(MouseEvent e)
           
 void processMouseMotionEvent(MouseEvent e)
           
 void removeActor(Actor actor)
           
 void removeAnimationContextSelectionListener(AnimationContextSelectionListener oldListener)
           
 void selectActor(Actor actor)
           
 void setBackgroundManager(BackgroundManager backgroundManager)
           
 void setCoordinateSystem(Rectangle coordinateSystem)
           
 void setSelectedActor(Actor actor)
           
 void setVisibleToEvents(boolean visibleToEvents)
           
 void takeSnapshot(Graphics g)
           
 void unselectActor(Actor actor)
           
 boolean wantEvent(MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_zOrder

protected ZOrder _zOrder

_backgroundManager

protected BackgroundManager _backgroundManager

_coordinateSystem

protected Rectangle _coordinateSystem

_owner

protected Component _owner

_animationContextMouseEventHandler

protected AnimationContextMouseEventHandler _animationContextMouseEventHandler

_tickAction

protected edu.stanford.smi.protegex.layout.AnimationContext.TickAction _tickAction

_paintAction

protected edu.stanford.smi.protegex.layout.AnimationContext.PaintAction _paintAction

_selectionHandler

protected AnimationContextSelectionHandler _selectionHandler
Constructor Detail

AnimationContext

public AnimationContext(boolean visibleToEvents,
                        BackgroundManager backgroundManager,
                        Rectangle coordinateSystem,
                        Component owner,
                        AnimationContextMouseEventHandler animationContextMouseEventHandler)
Method Detail

addActorToBottom

public void addActorToBottom(Actor actor)

addActorToTop

public void addActorToTop(Actor actor)

addAnimationContextSelectionListener

public void addAnimationContextSelectionListener(AnimationContextSelectionListener newListener)

getActiveRectangle

public Rectangle getActiveRectangle()

getActiveRectangle

public Rectangle getActiveRectangle(Rectangle returnValue)

getCoordinateSystem

public Rectangle getCoordinateSystem()

getCoordinateSystem

public Rectangle getCoordinateSystem(Rectangle returnValue)

getLeadSelection

public Actor getLeadSelection()

getOwner

public Component getOwner()

getSelectedActors

public Collection getSelectedActors()

getVisibleToEvents

public boolean getVisibleToEvents()

getZOrder

public ZOrder getZOrder()

isSingleSelection

public boolean isSingleSelection()

moveActorToBottom

public void moveActorToBottom(Actor actor)

moveActorToTop

public void moveActorToTop(Actor actor)

paint

public void paint(Graphics g)

processMouseEvent

public void processMouseEvent(MouseEvent e)

processMouseMotionEvent

public void processMouseMotionEvent(MouseEvent e)

removeActor

public void removeActor(Actor actor)

removeAnimationContextSelectionListener

public void removeAnimationContextSelectionListener(AnimationContextSelectionListener oldListener)

selectActor

public void selectActor(Actor actor)

setBackgroundManager

public void setBackgroundManager(BackgroundManager backgroundManager)

setCoordinateSystem

public void setCoordinateSystem(Rectangle coordinateSystem)

setSelectedActor

public void setSelectedActor(Actor actor)

setVisibleToEvents

public void setVisibleToEvents(boolean visibleToEvents)

takeSnapshot

public void takeSnapshot(Graphics g)

unselectActor

public void unselectActor(Actor actor)

wantEvent

public boolean wantEvent(MouseEvent e)

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.