Protege-2000 1.7

edu.stanford.smi.protegex.layout
Interface Glyph

All Superinterfaces:
Copyable
All Known Implementing Classes:
IconGlyph, ImageGlyph, WireGlyph

public interface Glyph
extends Copyable

Author:
William Grosso

Method Summary
 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 setTitle(String str)
           
 
Methods inherited from interface edu.stanford.smi.protegex.layout.Copyable
copy
 

Method Detail

displayImage

public void displayImage(ActorLocation location,
                         Graphics g)

displayImage

public void displayImage(Rectangle location,
                         Graphics g)
draw the largest possible scaled version of the shape in the rectangle
Parameters:
location - Description of Parameter
g - Description of Parameter

displaySelectedImage

public void displaySelectedImage(ActorLocation location,
                                 Graphics g)

displaySelectedImage

public void displaySelectedImage(Rectangle location,
                                 Graphics g)

getBoundaryPointForLine

public Point getBoundaryPointForLine(Line line)
get intersection of line with glyph. Returns null if more than one
Parameters:
line - Description of Parameter
Returns:
The BoundaryPointForLine value

getPreferredHeight

public int getPreferredHeight()

getPreferredWidth

public int getPreferredWidth()

setTitle

public void setTitle(String str)

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.