Protege-2000 1.7

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

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

public class GlyphActorInstance
extends StandardGlyphActor
implements ActorInstance

Description of the Class

Author:
William Grosso

Field Summary
protected  edu.stanford.smi.protege.model.Instance _instance
           
protected  NodeState _nodeState
           
protected  Rectangle _textRectangle
           
protected  TextualOverlay _textRenderer
           
protected  DiagramWidget _widget
           
 
Fields inherited from class edu.stanford.smi.protegex.layout.StandardGlyphActor
_endingAttachment, _glyph, _startingAttachment
 
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
GlyphActorInstance(Glyph glyph, AnimationContext animationContext, ActorLocation location, ActorEventHandler eventHandler, ActorMovementHandler movementHandler, ActorControlPointHandler controlPointHandler, NodeState nodeState, DiagramWidget widget)
           
 
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)
           
 
Methods inherited from class edu.stanford.smi.protegex.layout.StandardGlyphActor
getBoundaryPointForLine, getEndingAttachment, getStartingAttachment, isWire, setEndingAttachment, 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

_instance

protected edu.stanford.smi.protege.model.Instance _instance

_textRenderer

protected TextualOverlay _textRenderer

_textRectangle

protected Rectangle _textRectangle

_nodeState

protected NodeState _nodeState

_widget

protected DiagramWidget _widget
Constructor Detail

GlyphActorInstance

public GlyphActorInstance(Glyph glyph,
                          AnimationContext animationContext,
                          ActorLocation location,
                          ActorEventHandler eventHandler,
                          ActorMovementHandler movementHandler,
                          ActorControlPointHandler controlPointHandler,
                          NodeState nodeState,
                          DiagramWidget widget)
Method Detail

copy

public Object copy()
Overrides:
copy in class StandardGlyphActor

draw

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

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

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.