Protege-2000 1.7

edu.stanford.smi.protegex.widget.diagram
Class WireActorInstance

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

public class WireActorInstance
extends StandardWireActor
implements ActorInstance

Description of the class

Author:
William Grosso

Field Summary
protected  Rectangle _textRectangle
           
protected  WireTextualOverlay _textRenderer
           
protected  WireGlyph _wireGlyph
           
protected  WireState _wireState
           
 
Fields inherited from class edu.stanford.smi.protegex.layout.StandardWireActor
_BEGINNING, _ENDING, _endingAttachment, _glyph, _scratchPoint, _startingAttachment, _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
WireActorInstance(WireGlyph glyph, AnimationContext animationContext, ActorLocation location, ActorEventHandler eventHandler, ActorMovementHandler movementHandler, ActorControlPointHandler controlPointHandler, DiagramWidget widget, WireState wireState)
           
 
Method Summary
 Object copy()
           
 Rectangle draw(Graphics g)
           
 edu.stanford.smi.protege.model.Instance getInstance()
           
 boolean isAlwaysDisplayText()
           
 void setAlwaysDisplayText(boolean alwaysDisplayText)
           
 void setInstance(edu.stanford.smi.protege.model.Instance instance)
           
 void setInstance(edu.stanford.smi.protege.model.Instance instance, boolean createAttachmentListener)
           
 
Methods inherited from class edu.stanford.smi.protegex.layout.StandardWireActor
getBeginningControlPoint, getBeginningPoint, getBoundaryPointForLine, getEndingAttachment, getEndingControlPoint, getEndingPoint, getStartingAttachment, isWire, setBeginningControlPoint, setBeginningPoint, setEndingAttachment, setEndingControlPoint, setEndingPoint, setStartingAttachment, setTitle, tick
 
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

_textRectangle

protected Rectangle _textRectangle

_textRenderer

protected WireTextualOverlay _textRenderer

_wireState

protected WireState _wireState

_wireGlyph

protected WireGlyph _wireGlyph
Constructor Detail

WireActorInstance

public WireActorInstance(WireGlyph glyph,
                         AnimationContext animationContext,
                         ActorLocation location,
                         ActorEventHandler eventHandler,
                         ActorMovementHandler movementHandler,
                         ActorControlPointHandler controlPointHandler,
                         DiagramWidget widget,
                         WireState wireState)
Method Detail

copy

public Object copy()
Overrides:
copy in class StandardWireActor

draw

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

getInstance

public edu.stanford.smi.protege.model.Instance getInstance()
Specified by:
getInstance in interface ActorInstance

isAlwaysDisplayText

public boolean isAlwaysDisplayText()
Specified by:
isAlwaysDisplayText in interface ActorInstance

setAlwaysDisplayText

public void setAlwaysDisplayText(boolean alwaysDisplayText)
Specified by:
setAlwaysDisplayText in interface ActorInstance

setInstance

public void setInstance(edu.stanford.smi.protege.model.Instance instance)
Specified by:
setInstance in interface ActorInstance

setInstance

public void setInstance(edu.stanford.smi.protege.model.Instance instance,
                        boolean createAttachmentListener)

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.