|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gishur.gui2.Alignment | +--gishur.gui2.MouseAlignment
An Alignment
class that aligns the target object relatively to the
mouse position.
Fields inherited from class gishur.gui2.Alignment |
BOTTOM, CENTER, LEFT, RIGHT, SOURCE, TARGET, TOP |
Constructor Summary | |
MouseAlignment(int x,
int y,
byte h_t_align,
byte v_t_align)
Constructs a new MouseAlignment . |
Method Summary | |
void |
align(DrawObject source,
Painter target)
Aligns the given target- Painter according to this
Alignment relatively to the given source-Painter . |
Methods inherited from class gishur.gui2.Alignment |
align, convertAlignmentToPercent, createCenterAlignment, createLeftTopAlignment, getReferencePoint, getReferencePoint, getX, getY, hSourceAlignment, hSourceAlignmentPercent, hTargetAlignment, hTargetAlignmentPercent, toString, vector, vSourceAlignment, vSourceAlignmentPercent, vTargetAlignment, vTargetAlignmentPercent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MouseAlignment(int x, int y, byte h_t_align, byte v_t_align)
MouseAlignment
. The point to align to is located
relatively to the source area or line as specified via the vertical
and horizontal alignment constants. An object will be aligned at the
specified distance vector from this point.x,y
- distance vectorh_t_align
- horizontal alignment constant (for the target object)v_t_align
- vertical alignment constant (for the target object)Method Detail |
public void align(DrawObject source, Painter target)
Painter
according to this
Alignment
relatively to the given source-Painter
.align
in class Alignment
source
- the source Painter
(already positioned)target
- the target Painter
to align
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |