Protege-2000 1.7

edu.stanford.smi.protegex.layout
Class StandardWireActor

java.lang.Object
  |
  +--edu.stanford.smi.protegex.layout.AbstractActor
        |
        +--edu.stanford.smi.protegex.layout.StandardWireActor
All Implemented Interfaces:
Actor, ActorControlPointHandler, ActorDelegate, ActorEventBroadcaster, ActorEventHandler, ActorFacade, ActorMovementHandler, Copyable
Direct Known Subclasses:
WireActorInstance

public class StandardWireActor
extends AbstractActor

Description of the Class

Author:
William Grosso

Field Summary
protected  int _BEGINNING
           
protected  int _ENDING
           
protected  ActorAttachment _endingAttachment
           
protected  WireGlyph _glyph
           
protected  Point _scratchPoint
           
protected  ActorAttachment _startingAttachment
           
protected  Line _underlyingLine
           
 
Fields inherited from class edu.stanford.smi.protegex.layout.AbstractActor
_animationContext, _broadcaster, _controlPointHandler, _eventHandler, _lastDrawingLocation, _location, _movementHandler
 
Fields inherited from interface edu.stanford.smi.protegex.layout.ActorMovementHandler
ZERO_VELOCITY
 
Constructor Summary
StandardWireActor(WireGlyph glyph, AnimationContext animationContext, ActorLocation location, ActorEventHandler eventHandler, ActorMovementHandler movementHandler, ActorControlPointHandler controlPointHandler)
           
 
Method Summary
 Object copy()
           
 Rectangle draw(Graphics g)
           
 int getBeginningControlPoint()
           
 Point getBeginningPoint()
           
 Point getBoundaryPointForLine(Line line)
           
 ActorAttachment getEndingAttachment()
           
 int getEndingControlPoint()
           
 Point getEndingPoint()
           
 ActorAttachment getStartingAttachment()
           
 boolean isWire()
           
 void setBeginningControlPoint(int BEGINNING)
           
 void setBeginningPoint(Point pt)
           
 void setEndingAttachment(ActorAttachment attachment)
           
 void setEndingControlPoint(int ENDING)
           
 void setEndingPoint(Point pt)
           
 void setStartingAttachment(ActorAttachment attachment)
           
 void setTitle(String title)
           
 void tick(int currentTime)
           
 
Methods inherited from class edu.stanford.smi.protegex.layout.AbstractActor
addActorListener, broadcastActorDoubleClickedEvent, broadcastActorMovedEvent, broadcastActorResizedEvent, broadcastActorSelectedEvent, broadcastActorStartedMovingEvent, broadcastActorStoppedMovingEvent, canPerformIncrementalDrag, collidesWithActor, collideWithActor, getActor, getAnimationContext, getBounces, getControlPoint, getControlPointForPoint, getIsDraggable, getIsDragging, getIsResizable, getIsResizing, getIsSelectable, getIsSelected, getLocation, getMinimumSize, getPrecision, getXVelocity, getYVelocity, isInside, isLocatedAt, move, moveControlPoint, processClick, processDrag, processIncrementalDrag, processMousePress, processMouseRelease, removeActorListener, setActor, setAnimationContext, setBounces, setControlPointHandler, setCoordinateSystem, setEventHandler, setIsDraggable, setIsResizable, setIsSelectable, setIsSelected, setLocation, setMinimumSize, setMovementHandler, setPrecision, setXVelocity, setYVelocity, translate, translateControlPoint, wantEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_glyph

protected WireGlyph _glyph

_scratchPoint

protected Point _scratchPoint

_underlyingLine

protected Line _underlyingLine

_startingAttachment

protected ActorAttachment _startingAttachment

_endingAttachment

protected ActorAttachment _endingAttachment

_BEGINNING

protected int _BEGINNING

_ENDING

protected int _ENDING
Constructor Detail

StandardWireActor

public StandardWireActor(WireGlyph glyph,
                         AnimationContext animationContext,
                         ActorLocation location,
                         ActorEventHandler eventHandler,
                         ActorMovementHandler movementHandler,
                         ActorControlPointHandler controlPointHandler)
Method Detail

copy

public Object copy()
Overrides:
copy in class AbstractActor

draw

public Rectangle draw(Graphics g)
Overrides:
draw in class AbstractActor

getBeginningControlPoint

public int getBeginningControlPoint()

getBeginningPoint

public Point getBeginningPoint()

getBoundaryPointForLine

public Point getBoundaryPointForLine(Line line)

getEndingAttachment

public ActorAttachment getEndingAttachment()

getEndingControlPoint

public int getEndingControlPoint()

getEndingPoint

public Point getEndingPoint()

getStartingAttachment

public ActorAttachment getStartingAttachment()

isWire

public boolean isWire()
Overrides:
isWire in class AbstractActor

setBeginningControlPoint

public void setBeginningControlPoint(int BEGINNING)

setBeginningPoint

public void setBeginningPoint(Point pt)

setEndingAttachment

public void setEndingAttachment(ActorAttachment attachment)

setEndingControlPoint

public void setEndingControlPoint(int ENDING)

setEndingPoint

public void setEndingPoint(Point pt)

setStartingAttachment

public void setStartingAttachment(ActorAttachment attachment)

setTitle

public void setTitle(String title)
Overrides:
setTitle in class AbstractActor

tick

public void tick(int currentTime)
Overrides:
tick in class AbstractActor

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.