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
| 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 |
| 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 |
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
Rhombus
public Rhombus()
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