Protege-2000 1.7

edu.stanford.smi.protegex.layout
Class Polygon

java.lang.Object
  |
  +--edu.stanford.smi.protegex.layout.AbstractShape
        |
        +--edu.stanford.smi.protegex.layout.Polygon
All Implemented Interfaces:
ActorShape
Direct Known Subclasses:
Diamond, Hexagon, LayoutRectangle, TrianglePointingDown, TrianglePointingLeft, TrianglePointingRight, TrianglePointingUp

public abstract class Polygon
extends AbstractShape

Description of the class

Author:
William Grosso

Field Summary
protected  ArrayList _intersectionPoints
           
protected  int[] xPoints
           
protected  int[] yPoints
           
 
Constructor Summary
Polygon()
           
 
Method Summary
protected abstract  void buildPolygon(Rectangle location)
           
 void drawBorder(Graphics g, Rectangle location)
           
 void drawFilledShape(Graphics g, Rectangle location)
           
 void drawShape(Graphics g, Rectangle location)
           
 Point getBoundaryPointOnLine(Line line, Rectangle shapeLocation)
           
 boolean intersectsLineUniquely(Line line, Rectangle shapeLocation)
           
 
Methods inherited from class edu.stanford.smi.protegex.layout.AbstractShape
drawHighlightedShape, drawShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xPoints

protected int[] xPoints

yPoints

protected int[] yPoints

_intersectionPoints

protected ArrayList _intersectionPoints
Constructor Detail

Polygon

public Polygon()
Method Detail

buildPolygon

protected abstract void buildPolygon(Rectangle location)

drawBorder

public void drawBorder(Graphics g,
                       Rectangle location)
Overrides:
drawBorder in class AbstractShape

drawFilledShape

public void drawFilledShape(Graphics g,
                            Rectangle location)
Overrides:
drawFilledShape in class AbstractShape

drawShape

public void drawShape(Graphics g,
                      Rectangle location)
Overrides:
drawShape in class AbstractShape

getBoundaryPointOnLine

public Point getBoundaryPointOnLine(Line line,
                                    Rectangle shapeLocation)

intersectsLineUniquely

public boolean intersectsLineUniquely(Line line,
                                      Rectangle shapeLocation)

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.