|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.niffty.LogicalPlacement
A LogicalPlacement tag has horizontal, vertical and proximity values. Note that these are not screen pixels but values like "left" and "right".
Field Summary | |
static int |
ABOVE
|
static int |
BELOW
|
static int |
CENTERED
|
static int |
DEFAULT
|
static int |
LEFT
|
static int |
NOTE_SIDE
|
static int |
OFFSET_SLIGHTLY
|
static int |
RIGHT
|
static int |
STEM_SIDE
|
static int |
TOUCHING
|
Constructor Summary | |
LogicalPlacement()
Creates new LogicalPlacement with zero horizontal, vertical and proximity |
|
LogicalPlacement(int horizontal,
int vertical,
int proximity)
Creates new LogicalPlacement with the given horizontal, vertical and proximity |
Method Summary | |
int |
getHorizontal()
Return the horizontal value which is DEFAULT, LEFT, RIGHT, STEM_SIDE, NOTE_SIDE or CENTERED |
int |
getProximity()
Return the proximity value which is DEFAULT, TOUCHING, OFFSET_SLIGHTLY. |
int |
getVertical()
Return the vertical value which is DEFAULT, ABOVE, BELOW, STEM_SIDE, NOTE_SIDE or CENTERED. |
java.lang.String |
toString()
Returns string as "(horizontal:value, vertical:value, proximity:value)" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT
public static final int STEM_SIDE
public static final int NOTE_SIDE
public static final int CENTERED
public static final int LEFT
public static final int RIGHT
public static final int ABOVE
public static final int BELOW
public static final int TOUCHING
public static final int OFFSET_SLIGHTLY
Constructor Detail |
public LogicalPlacement()
public LogicalPlacement(int horizontal, int vertical, int proximity)
horizontal
- horizontal placement. Must be DEFAULT, LEFT, RIGHT, STEM_SIDE, NOTE_SIDE or CENTERED.vertical
- vertical placement. Must be DEFAULT, ABOVE, BELOW, STEM_SIDE, NOTE_SIDE or CENTERED.proximity
- proximity. Must be DEFAULT, TOUCHING, OFFSET_SLIGHTLY.Method Detail |
public int getHorizontal()
public int getVertical()
public int getProximity()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |