|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.modeler.figures.generic.CircleConstants
public class CircleConstants
Constants describing circle sections. There are three types of constants: The orthogonal constants (RIGHT/BOTTOM/LEFT/TOP) are the simplest ones. The quarter constants (QUARTER_*) are aliases of the orthogonal constants above and are used to desribe the circle quarters that are oriented in these directions. The EIGTH_* constants divide the circle in eight directions.
| Field Summary | |
|---|---|
static int |
EIGHTH_E
E (right) |
static int |
EIGHTH_N
N (top) |
static int |
EIGHTH_NE
NE (top left) |
static int |
EIGHTH_NW
NW (top left) |
static int |
EIGHTH_S
S (bottom) |
static int |
EIGHTH_SE
SE (bottom right) |
static int |
EIGHTH_SW
SW (bottom left) |
static int |
EIGHTH_W
W (left) |
| Method Summary | |
|---|---|
static int |
determineEighth(double angle,
java.awt.Rectangle rect)
Determines the eighth from a given angle. |
static Orientation |
determineOrientation(double angle,
java.awt.Rectangle rect)
Determines the orientation from a given angle. |
static Quarter |
determineQuarter(double angle,
java.awt.Rectangle rect)
Determines the quarter from a given angle. |
static double |
normalizeAngle(double angle)
Normalizes an angle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int EIGHTH_E
public static final int EIGHTH_SE
public static final int EIGHTH_S
public static final int EIGHTH_SW
public static final int EIGHTH_W
public static final int EIGHTH_NW
public static final int EIGHTH_N
public static final int EIGHTH_NE
| Method Detail |
|---|
public static double normalizeAngle(double angle)
angle - Angle to normalize
public static int determineEighth(double angle,
java.awt.Rectangle rect)
angle - Angle to checkrect - Display box of the object in the center
public static Quarter determineQuarter(double angle,
java.awt.Rectangle rect)
angle - Angle to checkrect - Display box of the object in the center
Quarter.SE/Quarter.SW/Quarter.NW/Quarter.NE
public static Orientation determineOrientation(double angle,
java.awt.Rectangle rect)
angle - Angle to checkrect - Display box of the object in the center
Orientation.RIGHT/Orientation.BOTTOM/Orientation.LEFT/Orientation.TOP
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||