|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double
kaapo.gui.diagramview.HotSpot
public class HotSpot
This class describes the HotSpot. It is a small rectangle which user can grab and resize elements or move connecions' points.
Nested Class Summary | |
---|---|
static class |
HotSpot.HotSpotType
Enum of HotSpot types available. |
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D |
---|
Rectangle2D.Double, Rectangle2D.Float |
Field Summary | |
---|---|
static double |
HOTSPOT_SIZE
Size of the HotSpot used in pixels. |
Fields inherited from class java.awt.geom.Rectangle2D.Double |
---|
height, width, x, y |
Fields inherited from class java.awt.geom.Rectangle2D |
---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
Constructor Summary | |
---|---|
HotSpot(DiagramComponentWrapper dcw,
HotSpot.HotSpotType type,
Point2D location)
Creates a new HotSpot |
|
HotSpot(DiagramComponentWrapper dcw,
HotSpot.HotSpotType type,
Point2D location,
int pathIndex)
Creates a new HotSpot |
Method Summary | |
---|---|
DiagramComponentWrapper |
getDcw()
Gets the DiagramComponentWrapper of the HotSpot |
int |
getPathIndex()
Gets the pathIndex of the HotSpot |
HotSpot.HotSpotType |
getType()
Gets the type of the HotSpot |
void |
paint(Graphics2D g2)
Paints this HotSpot |
Methods inherited from class java.awt.geom.Rectangle2D.Double |
---|
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect, toString |
Methods inherited from class java.awt.geom.Rectangle2D |
---|
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union |
Methods inherited from class java.awt.geom.RectangularShape |
---|
clone, contains, contains, getBounds, 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 |
Field Detail |
---|
public static final double HOTSPOT_SIZE
Constructor Detail |
---|
public HotSpot(DiagramComponentWrapper dcw, HotSpot.HotSpotType type, Point2D location, int pathIndex)
dcw
- DiagramComponentWrapper this HotSpot is ontype
- Type of the actionlocation
- Location this HotSpot will be painted inpathIndex
- Connections pathIndex this HotSpot will handle withpublic HotSpot(DiagramComponentWrapper dcw, HotSpot.HotSpotType type, Point2D location)
dcw
- DiagramComponentWrapper this HotSpot is ontype
- Type of the actionlocation
- Location this HotSpot will be painted inMethod Detail |
---|
public void paint(Graphics2D g2)
g2
- Graphics2D contextpublic HotSpot.HotSpotType getType()
public int getPathIndex()
public DiagramComponentWrapper getDcw()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |