|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGaLayoutService
The interface IGaLayoutService provides convenient services for the calculation and change of the size and/or location of graphics algorithm. This makes it easier to write layout features.
| Method Summary | |
|---|---|
IDimension |
calculateSize(GraphicsAlgorithm ga)
Calculates the size of the given graphics algorithm. |
IDimension |
calculateSize(GraphicsAlgorithm ga,
boolean considerLineWidth)
Calculates the size of the given graphics algorithm. |
void |
setHeight(GraphicsAlgorithm ga,
int height)
Sets the height of the given graphics algorithm. |
void |
setLocation(GraphicsAlgorithm ga,
int x,
int y)
Sets the location of the given graphics algorithm. |
void |
setLocation(GraphicsAlgorithm ga,
int x,
int y,
boolean avoidNegativeCoordinates)
Sets the location of the given graphics algorithm. |
void |
setLocationAndSize(GraphicsAlgorithm ga,
int x,
int y,
int width,
int height)
Sets location and size of the given graphics algorithm. |
void |
setLocationAndSize(GraphicsAlgorithm ga,
int x,
int y,
int width,
int height,
boolean avoidNegativeCoordinates)
Sets location and size of the given graphics algorithm. |
void |
setSize(GraphicsAlgorithm ga,
int width,
int height)
Sets the size of the given graphics algorithm. |
void |
setWidth(GraphicsAlgorithm ga,
int width)
Sets the width of the given graphics algorithm. |
| Method Detail |
|---|
IDimension calculateSize(GraphicsAlgorithm ga)
ga - graphics algorithm
IDimension calculateSize(GraphicsAlgorithm ga,
boolean considerLineWidth)
ga - graphics algorithmconsiderLineWidth - if TRUE, the line width will be considered in the dimension
void setHeight(GraphicsAlgorithm ga,
int height)
ga - graphics algorithmheight - the new height
void setLocationAndSize(GraphicsAlgorithm ga,
int x,
int y,
int width,
int height)
ga - graphics algorithmx - the new x coordinatey - the new y coordinatewidth - the new widthheight - the new height
void setLocationAndSize(GraphicsAlgorithm ga,
int x,
int y,
int width,
int height,
boolean avoidNegativeCoordinates)
ga - graphics algorithmx - the new x coordinatey - the new y coordinatewidth - the new widthheight - the new heightavoidNegativeCoordinates - if TRUE, a negative coordinate will automatically set to 0.
void setLocation(GraphicsAlgorithm ga,
int x,
int y)
ga - graphics algorithmx - the new x coordinatey - the new y coordinate
void setLocation(GraphicsAlgorithm ga,
int x,
int y,
boolean avoidNegativeCoordinates)
ga - graphics algorithmx - the new x coordinatey - the new y coordinateavoidNegativeCoordinates - if TRUE, a negative coordinate will automatically set to 0.
void setSize(GraphicsAlgorithm ga,
int width,
int height)
ga - graphics algorithmwidth - the new widthheight - the new height
void setWidth(GraphicsAlgorithm ga,
int width)
ga - graphics algorithmwidth - the new width
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||