public class Spacer extends Object implements RenderLine
Constructor and Description |
---|
Spacer(int expand) |
Modifier and Type | Method and Description |
---|---|
int |
align()
How to align the content. -1 = left; 0 = center; 1 = right
|
int |
expand()
How much to expand the line around the real content.
|
int |
height()
The full hight of the real content (Size of the box for the content).
|
void |
render(Rectangle borders)
Render the real content.
|
int |
width()
The widht of the real content.
|
public int expand()
expand
in interface RenderLine
public int height()
height
in interface RenderLine
public void render(Rectangle borders)
render
in interface RenderLine
borders
- The borders allowed for rendering.public int align()
align
in interface RenderLine
public int width()
width
in interface RenderLine
Copyright © 2009–2018 JaProSt (Ulrich David). All rights reserved.