|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.swingui.RelationshipUI
public abstract class RelationshipUI
| Field Summary | |
|---|---|
static int |
CHILD_FACES_BOTTOM
|
static int |
CHILD_FACES_LEFT
|
static int |
CHILD_FACES_RIGHT
|
static int |
CHILD_FACES_TOP
|
static int |
CHILD_MASK
|
protected java.awt.Point |
fkConnectionPoint
This is the point where this relationship meets its FK table. |
static int |
NO_FACING_EDGES
|
protected int |
orientation
A bitmask of the constants (PARENT|CHILD)_FACES_(LEFT|RIGHT|TOP|BOTTOM). |
static int |
PARENT_FACES_BOTTOM
|
static int |
PARENT_FACES_LEFT
|
static int |
PARENT_FACES_RIGHT
|
static int |
PARENT_FACES_TOP
|
static int |
PARENT_MASK
|
protected java.awt.Point |
pkConnectionPoint
This is the point where this relationship meets its PK table. |
protected int |
snapRadius
The minimum number of pixels for a "kink" in the relationship line. |
static java.lang.String |
UI_CLASS_ID
|
| Constructor Summary | |
|---|---|
RelationshipUI()
|
|
| Method Summary | |
|---|---|
abstract void |
bestConnectionPoints()
Adjusts the UI's connection points to the default "best" position. |
abstract java.awt.Point |
closestEdgePoint(boolean onPkTable,
java.awt.Point p)
|
abstract boolean |
contains(java.awt.Point p)
Determines if the given point touches the visible part of this relationship. |
java.awt.Point |
getFkConnectionPoint()
|
int |
getOrientation()
Returns the current orientation of this relationship; that is, which sides of its PK table and its FK table it is attached to. |
java.awt.Point |
getPkConnectionPoint()
|
abstract java.awt.Point |
getPreferredLocation()
|
abstract java.awt.Shape |
getShape()
Returns the visible shape of this relationship's line. |
abstract int |
getShapeLength()
|
int |
getSnapRadius()
|
abstract boolean |
intersects(java.awt.Rectangle region)
Determines if the given rectangle is visibly touching this component. |
abstract boolean |
intersectsShape(java.awt.Shape s)
Returns true iff this relationship's visible line intersects any part of the given shape. |
abstract boolean |
isOverFkDecoration(java.awt.Point p)
|
abstract boolean |
isOverPkDecoration(java.awt.Point p)
|
void |
setFkConnectionPoint(java.awt.Point p)
|
void |
setOrientation(int o)
|
void |
setPkConnectionPoint(java.awt.Point p)
|
void |
setSnapRadius(int v)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ca.sqlpower.architect.swingui.PlayPenComponentUI |
|---|
getPreferredSize, installUI, paint, revalidate, uninstallUI |
| Field Detail |
|---|
public static final java.lang.String UI_CLASS_ID
protected int orientation
public static final int NO_FACING_EDGES
public static final int PARENT_FACES_RIGHT
public static final int PARENT_FACES_LEFT
public static final int PARENT_FACES_BOTTOM
public static final int PARENT_FACES_TOP
public static final int CHILD_FACES_RIGHT
public static final int CHILD_FACES_LEFT
public static final int CHILD_FACES_BOTTOM
public static final int CHILD_FACES_TOP
public static final int CHILD_MASK
public static final int PARENT_MASK
protected int snapRadius
protected java.awt.Point pkConnectionPoint
protected java.awt.Point fkConnectionPoint
| Constructor Detail |
|---|
public RelationshipUI()
| Method Detail |
|---|
public abstract void bestConnectionPoints()
public abstract java.awt.Point closestEdgePoint(boolean onPkTable,
java.awt.Point p)
public abstract java.awt.Point getPreferredLocation()
public abstract boolean isOverPkDecoration(java.awt.Point p)
public abstract boolean isOverFkDecoration(java.awt.Point p)
public int getSnapRadius()
public void setSnapRadius(int v)
public void setPkConnectionPoint(java.awt.Point p)
public java.awt.Point getPkConnectionPoint()
public void setOrientation(int o)
public void setFkConnectionPoint(java.awt.Point p)
public java.awt.Point getFkConnectionPoint()
public abstract boolean intersects(java.awt.Rectangle region)
region - The region to test.
public abstract boolean contains(java.awt.Point p)
contains in interface PlayPenComponentUIpublic abstract boolean intersectsShape(java.awt.Shape s)
s - The shape to test for intersection with.
public abstract java.awt.Shape getShape()
public abstract int getShapeLength()
public int getOrientation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||