Protege-2000 1.7

edu.stanford.smi.protegex.layout
Class WireGlyph

java.lang.Object
  |
  +--edu.stanford.smi.protegex.layout.WireGlyph
All Implemented Interfaces:
Copyable, Glyph

public class WireGlyph
extends Object
implements Glyph

Description of the class

Author:
William Grosso

Field Summary
protected  Color _color
           
protected  String _endingArrow
           
protected  boolean _endingArrowIsConnected
           
protected  Point _endingPoint
           
protected  String _startingArrow
           
protected  boolean _startingArrowIsConnected
           
protected  Point _startingPoint
           
protected  String _title
           
protected  String _wireType
           
protected  int BEGINNING
           
protected  int ENDING
           
 
Constructor Summary
WireGlyph(String wireType, Color color, String startingArrow, String endingArrow, String title, boolean startingArrowIsConnected, boolean endingArrowIsConnected)
           
 
Method Summary
 Object copy()
           
 void displayImage(ActorLocation location, Graphics g)
           
 void displayImage(Rectangle location, Graphics g)
          draw the largest possible scaled version of the shape in the rectangle
 void displaySelectedImage(ActorLocation location, Graphics g)
           
 void displaySelectedImage(Rectangle location, Graphics g)
           
 Point getBoundaryPointForLine(Line line)
          get intersection of line with glyph.
 int getPreferredHeight()
           
 int getPreferredWidth()
           
 void setEndingArrowIsConnected(boolean endingArrowIsConnected)
           
 void setEndingPoint(Point endingPoint)
           
 void setStartingArrowIsConnected(boolean startingArrowIsConnected)
           
 void setStartingPoint(Point startingPoint)
           
 void setTitle(String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_wireType

protected String _wireType

_startingArrow

protected String _startingArrow

_endingArrow

protected String _endingArrow

_title

protected String _title

_color

protected Color _color

_startingPoint

protected Point _startingPoint

_endingPoint

protected Point _endingPoint

_startingArrowIsConnected

protected boolean _startingArrowIsConnected

_endingArrowIsConnected

protected boolean _endingArrowIsConnected

BEGINNING

protected int BEGINNING

ENDING

protected int ENDING
Constructor Detail

WireGlyph

public WireGlyph(String wireType,
                 Color color,
                 String startingArrow,
                 String endingArrow,
                 String title,
                 boolean startingArrowIsConnected,
                 boolean endingArrowIsConnected)
Method Detail

copy

public Object copy()
Specified by:
copy in interface Copyable

displayImage

public void displayImage(ActorLocation location,
                         Graphics g)
Specified by:
displayImage in interface Glyph

displayImage

public void displayImage(Rectangle location,
                         Graphics g)
Description copied from interface: Glyph
draw the largest possible scaled version of the shape in the rectangle
Specified by:
displayImage in interface Glyph
Following copied from interface: edu.stanford.smi.protegex.layout.Glyph
Parameters:
location - Description of Parameter
g - Description of Parameter

displaySelectedImage

public void displaySelectedImage(ActorLocation location,
                                 Graphics g)
Specified by:
displaySelectedImage in interface Glyph

displaySelectedImage

public void displaySelectedImage(Rectangle location,
                                 Graphics g)
Specified by:
displaySelectedImage in interface Glyph

getBoundaryPointForLine

public Point getBoundaryPointForLine(Line line)
Description copied from interface: Glyph
get intersection of line with glyph. Returns null if more than one
Specified by:
getBoundaryPointForLine in interface Glyph
Following copied from interface: edu.stanford.smi.protegex.layout.Glyph
Parameters:
line - Description of Parameter
Returns:
The BoundaryPointForLine value

getPreferredHeight

public int getPreferredHeight()
Specified by:
getPreferredHeight in interface Glyph

getPreferredWidth

public int getPreferredWidth()
Specified by:
getPreferredWidth in interface Glyph

setEndingArrowIsConnected

public void setEndingArrowIsConnected(boolean endingArrowIsConnected)

setEndingPoint

public void setEndingPoint(Point endingPoint)

setStartingArrowIsConnected

public void setStartingArrowIsConnected(boolean startingArrowIsConnected)

setStartingPoint

public void setStartingPoint(Point startingPoint)

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface Glyph

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.