edu.stanford.smi.protegex.layout
Class ImageGlyph
java.lang.Object
|
+--edu.stanford.smi.protegex.layout.ImageGlyph
- All Implemented Interfaces:
- Copyable, Glyph
- public final class ImageGlyph
- extends Object
- implements Glyph
Handles images, including animated ones. Does animation explicitly. Not
used.
- Author:
- William Grosso
Constructor Summary |
ImageGlyph(Image image,
int numberOfHorizontalFrames,
int numberOfVerticleFrames)
|
ImageGlyph(Image image,
int frameWidth,
int frameHeight,
int numberOfHorizontalFrames,
int numberOfVerticleFrames)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageGlyph
public ImageGlyph(Image image,
int numberOfHorizontalFrames,
int numberOfVerticleFrames)
ImageGlyph
public ImageGlyph(Image image,
int frameWidth,
int frameHeight,
int numberOfHorizontalFrames,
int numberOfVerticleFrames)
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 Parameterg
- 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
getFrameNumber
public int getFrameNumber()
getImage
public Image getImage()
getNumberOfFrames
public int getNumberOfFrames()
getPreferredHeight
public int getPreferredHeight()
- Specified by:
getPreferredHeight
in interface Glyph
getPreferredWidth
public int getPreferredWidth()
- Specified by:
getPreferredWidth
in interface Glyph
incrementFrameNumber
public void incrementFrameNumber()
setFrameNumber
public void setFrameNumber(int frameNumber)
setImage
public void setImage(Image image,
int frameWidth,
int frameHeight,
int numberOfHorizontalFrames,
int numberOfVerticleFrames)
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interface Glyph
Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.