edu.stanford.smi.protegex.layout
Interface ActorFacade
- All Superinterfaces:
- Copyable
- All Known Subinterfaces:
- Actor
- public interface ActorFacade
- extends Copyable
An actor is a loose conglomeration of behaviors, centered around the notion
of a sprite. It aggregates most functionality (along the lines of "hot spot"
analysis. The chief pieces of functionality lurk in: ActorLocation
ActorEventHandler ActorMovementHandler ActorControlPointHandler A Glyph An
ActorEventBroadcaster In addition, actors can be attached to other actors.
The semantics are: If A is attached to B then B's location helps to
determine A's location (but not necessarily vice-versa) Actors also know
about their AnimationFrame (the frame in which they are displayed).
Unfortunately, Actors have an absolutely huge interface, because they act as
a facade to their aggregated objects. There's a lot of methods here and most
of the implementations are truly trivial.
- Author:
- William Grosso
Methods inherited from interface edu.stanford.smi.protegex.layout.Copyable |
copy |
draw
public Rectangle draw(Graphics g)
getAnimationContext
public AnimationContext getAnimationContext()
getBoundaryPointForLine
public Point getBoundaryPointForLine(Line line)
getLocation
public ActorLocation getLocation()
isInside
public boolean isInside(Rectangle location)
isLocatedAt
public boolean isLocatedAt(Point location)
isWire
public boolean isWire()
move
public void move(int x,
int y)
setAnimationContext
public void setAnimationContext(AnimationContext animationFrame)
setControlPointHandler
public void setControlPointHandler(ActorControlPointHandler controlPointHandler)
setCoordinateSystem
public void setCoordinateSystem(Rectangle rectangle)
setEventHandler
public void setEventHandler(ActorEventHandler eventHandler)
setLocation
public void setLocation(ActorLocation location)
setMovementHandler
public void setMovementHandler(ActorMovementHandler movementHandler)
setTitle
public void setTitle(String title)
translate
public void translate(int x,
int y)
Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.