uk.ac.ic.doc.automed.gui
Class Rhombus

java.lang.Object
  |
  +--java.awt.geom.RectangularShape
        |
        +--java.awt.geom.Rectangle2D
              |
              +--java.awt.Rectangle
                    |
                    +--uk.ac.ic.doc.automed.gui.Rhombus
All Implemented Interfaces:
java.lang.Cloneable, uk.ac.ic.doc.automed.gui.SchemaShape, java.io.Serializable, java.awt.Shape

public class Rhombus
extends java.awt.Rectangle
implements uk.ac.ic.doc.automed.gui.SchemaShape

See Also:
Serialized Form

Field Summary
static int HORIZONTAL_EXT
           
static int NO_EXT
           
static int VERTICAL_EXT
           
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
Rhombus()
           
 
Method Summary
 boolean contains(java.awt.Point p)
           
 void draw()
           
 java.awt.Rectangle getBoundingBox()
           
 java.awt.Point getEdgePosition(java.awt.Point p)
           
 java.awt.Point getEntityEdgePosition(java.awt.Point p)
           
 java.awt.Point getGenEdgePosition()
           
 java.awt.Point getSpecEdgePosition()
           
 Rhombus setBgColour(java.lang.String colour)
           
 Rhombus setExtend(int extend)
           
 Rhombus setFgColour(java.lang.String colour)
           
 Rhombus setFontColour(java.lang.String colour)
           
 Rhombus setFontName(java.lang.String name)
           
 Rhombus setFontSize(int size)
           
 Rhombus setFontStyle(int style)
           
 Rhombus setGraphics(java.awt.Graphics g)
           
 Rhombus setHeight(int height)
           
 Rhombus setShapeLocation(java.awt.Point location)
           
 Rhombus setStyle(java.lang.String style)
           
 Rhombus setText(java.lang.String text)
           
 Rhombus setTextLocation(java.lang.String location)
           
 Rhombus setWidth(int width)
           
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Field Detail

NO_EXT

public static final int NO_EXT
See Also:
Constant Field Values

HORIZONTAL_EXT

public static final int HORIZONTAL_EXT
See Also:
Constant Field Values

VERTICAL_EXT

public static final int VERTICAL_EXT
See Also:
Constant Field Values
Constructor Detail

Rhombus

public Rhombus()
Method Detail

setStyle

public Rhombus setStyle(java.lang.String style)

setBgColour

public Rhombus setBgColour(java.lang.String colour)

setFgColour

public Rhombus setFgColour(java.lang.String colour)

setText

public Rhombus setText(java.lang.String text)

setFontName

public Rhombus setFontName(java.lang.String name)

setFontSize

public Rhombus setFontSize(int size)

setFontStyle

public Rhombus setFontStyle(int style)

setFontColour

public Rhombus setFontColour(java.lang.String colour)

setTextLocation

public Rhombus setTextLocation(java.lang.String location)

setShapeLocation

public Rhombus setShapeLocation(java.awt.Point location)

setWidth

public Rhombus setWidth(int width)

setHeight

public Rhombus setHeight(int height)

setExtend

public Rhombus setExtend(int extend)

setGraphics

public Rhombus setGraphics(java.awt.Graphics g)

getEdgePosition

public java.awt.Point getEdgePosition(java.awt.Point p)
                               throws GUIException
GUIException

getEntityEdgePosition

public java.awt.Point getEntityEdgePosition(java.awt.Point p)
                                     throws GUIException
GUIException

getGenEdgePosition

public java.awt.Point getGenEdgePosition()
                                  throws GUIException
GUIException

getSpecEdgePosition

public java.awt.Point getSpecEdgePosition()
                                   throws GUIException
GUIException

draw

public void draw()

getBoundingBox

public java.awt.Rectangle getBoundingBox()
Specified by:
getBoundingBox in interface uk.ac.ic.doc.automed.gui.SchemaShape

contains

public boolean contains(java.awt.Point p)
Specified by:
contains in interface uk.ac.ic.doc.automed.gui.SchemaShape
Overrides:
contains in class java.awt.Rectangle