|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jeuclid.layout.LayoutInfoImpl
public class LayoutInfoImpl
Constructor Summary | |
---|---|
LayoutInfoImpl()
Default Constructor. |
Method Summary | |
---|---|
float |
getAscentHeight(LayoutStage stage)
Returns the current height of the upper part of this component from the baseline. |
float |
getDescentHeight(LayoutStage stage)
Returns the current height of the lower part of this component from the baseline. |
List<GraphicsObject> |
getGraphicObjects()
|
float |
getHorizontalCenterOffset(LayoutStage stage)
Retrieve the X-position of the horizontal center of the content. |
LayoutStage |
getLayoutStage()
The LayoutStage this element represents. |
float |
getPosX(LayoutStage stage)
Retrieve the X position of this element relative to its parent. |
float |
getPosY(LayoutStage stage)
Retrieve the Y position of this element relative to its parent. |
float |
getStretchAscent()
Retrieve the stretch ascent if set, or STAGE1.ascent if unset. |
float |
getStretchDescent()
Retrieve the stretch descent if set, or STAGE1.descent if unset. |
float |
getStretchWidth()
Retrieve the stretch width if set, or STAGE1.width if unset. |
float |
getWidth(LayoutStage stage)
Returns the current width of this element. |
void |
moveTo(float x,
float y,
LayoutStage stage)
Move this element to the given position relative to its parent. |
void |
setAscentHeight(float ascentHeight,
LayoutStage stage)
|
void |
setDescentHeight(float descentHeight,
LayoutStage stage)
|
void |
setGraphicsObject(GraphicsObject graphicsObject)
|
void |
setHorizontalCenterOffset(float newOffset,
LayoutStage stage)
|
void |
setLayoutStage(LayoutStage newStage)
|
void |
setStretchAscent(float newStretchAscent)
Set the stretch ascent for children. |
void |
setStretchDescent(float newStretchDescent)
Set the stretch descent for children. |
void |
setStretchWidth(float newStretchWidth)
Set the stretch width for children, or < 0 if children should be horizontally unstretched. |
void |
setWidth(float width,
LayoutStage stage)
|
void |
shiftVertically(float offsetY,
LayoutStage stage)
Shift vertically by given offset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutInfoImpl()
Method Detail |
---|
public LayoutStage getLayoutStage()
LayoutStage
this element represents. The information will
not be complete until the final LayoutStage (LayoutStage.STAGE2
) has been reached.
getLayoutStage
in interface LayoutInfo
public void setLayoutStage(LayoutStage newStage)
setLayoutStage
in interface LayoutInfo
newStage
- new Layout Stage.public float getAscentHeight(LayoutStage stage)
getAscentHeight
in interface LayoutInfo
stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)
public float getDescentHeight(LayoutStage stage)
getDescentHeight
in interface LayoutInfo
stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)
public float getHorizontalCenterOffset(LayoutStage stage)
getHorizontalCenterOffset
in interface LayoutInfo
stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)
public float getPosX(LayoutStage stage)
getPosX
in interface LayoutInfo
stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)
public float getPosY(LayoutStage stage)
getPosY
in interface LayoutInfo
stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)
public float getWidth(LayoutStage stage)
getWidth
in interface LayoutInfo
stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)
public void moveTo(float x, float y, LayoutStage stage)
moveTo
in interface LayoutInfo
x
- new X positiony
- new Y positionstage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)public void setAscentHeight(float ascentHeight, LayoutStage stage)
setAscentHeight
in interface LayoutInfo
ascentHeight
- new ascentHeight.stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)public void setDescentHeight(float descentHeight, LayoutStage stage)
setDescentHeight
in interface LayoutInfo
descentHeight
- new descentHeight.stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)public void setHorizontalCenterOffset(float newOffset, LayoutStage stage)
setHorizontalCenterOffset
in interface LayoutInfo
newOffset
- new horizontal offset.stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)public void setWidth(float width, LayoutStage stage)
setWidth
in interface LayoutInfo
width
- new width.stage
- LayoutStage
to get this information for (either
LayoutStage.STAGE1
or LayoutStage.STAGE2
)public void setGraphicsObject(GraphicsObject graphicsObject)
setGraphicsObject
in interface LayoutInfo
graphicsObject
- the GraphicsObject to set.public List<GraphicsObject> getGraphicObjects()
getGraphicObjects
in interface LayoutInfo
public float getStretchWidth()
getStretchWidth
in interface LayoutInfo
public void setStretchWidth(float newStretchWidth)
setStretchWidth
in interface LayoutInfo
newStretchWidth
- new stretch widthpublic float getStretchAscent()
getStretchAscent
in interface LayoutInfo
public float getStretchDescent()
getStretchDescent
in interface LayoutInfo
public void setStretchAscent(float newStretchAscent)
setStretchAscent
in interface LayoutInfo
newStretchAscent
- new stretch ascentpublic void setStretchDescent(float newStretchDescent)
setStretchDescent
in interface LayoutInfo
newStretchDescent
- new stretch descentpublic void shiftVertically(float offsetY, LayoutStage stage)
shiftVertically
in interface LayoutInfo
offsetY
- offset to shift.stage
- Stage to manipulate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |