|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 LayoutInfopublic void setLayoutStage(LayoutStage newStage)
setLayoutStage in interface LayoutInfonewStage - new Layout Stage.public float getAscentHeight(LayoutStage stage)
getAscentHeight in interface LayoutInfostage - LayoutStage to get this information for (either
LayoutStage.STAGE1 or LayoutStage.STAGE2)
public float getDescentHeight(LayoutStage stage)
getDescentHeight in interface LayoutInfostage - LayoutStage to get this information for (either
LayoutStage.STAGE1 or LayoutStage.STAGE2)
public float getHorizontalCenterOffset(LayoutStage stage)
getHorizontalCenterOffset in interface LayoutInfostage - LayoutStage to get this information for (either
LayoutStage.STAGE1 or LayoutStage.STAGE2)
public float getPosX(LayoutStage stage)
getPosX in interface LayoutInfostage - LayoutStage to get this information for (either
LayoutStage.STAGE1 or LayoutStage.STAGE2)
public float getPosY(LayoutStage stage)
getPosY in interface LayoutInfostage - LayoutStage to get this information for (either
LayoutStage.STAGE1 or LayoutStage.STAGE2)
public float getWidth(LayoutStage stage)
getWidth in interface LayoutInfostage - LayoutStage to get this information for (either
LayoutStage.STAGE1 or LayoutStage.STAGE2)
public void moveTo(float x,
float y,
LayoutStage stage)
moveTo in interface LayoutInfox - 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 LayoutInfoascentHeight - 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 LayoutInfodescentHeight - 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 LayoutInfonewOffset - 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 LayoutInfowidth - new width.stage - LayoutStage to get this information for (either
LayoutStage.STAGE1 or LayoutStage.STAGE2)public void setGraphicsObject(GraphicsObject graphicsObject)
setGraphicsObject in interface LayoutInfographicsObject - the GraphicsObject to set.public List<GraphicsObject> getGraphicObjects()
getGraphicObjects in interface LayoutInfopublic float getStretchWidth()
getStretchWidth in interface LayoutInfopublic void setStretchWidth(float newStretchWidth)
setStretchWidth in interface LayoutInfonewStretchWidth - new stretch widthpublic float getStretchAscent()
getStretchAscent in interface LayoutInfopublic float getStretchDescent()
getStretchDescent in interface LayoutInfopublic void setStretchAscent(float newStretchAscent)
setStretchAscent in interface LayoutInfonewStretchAscent - new stretch ascentpublic void setStretchDescent(float newStretchDescent)
setStretchDescent in interface LayoutInfonewStretchDescent - new stretch descent
public void shiftVertically(float offsetY,
LayoutStage stage)
shiftVertically in interface LayoutInfooffsetY - offset to shift.stage - Stage to manipulate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||