Modifier and Type | Field and Description |
---|---|
int |
cx
Center of the last layed out position.
|
int |
cy
Center of the last layed out position.
|
int |
sx
Width of last layed out position.
|
int |
sy
Height of last layed out position.
|
int |
x0
Upper left corner X of last layed out position.
|
int |
x1
Lower right corner X of last layed out position.
|
int |
y0
Upper left corner Y of last layed out position.
|
int |
y1
Lower right corner Y of last layed out position.
|
Constructor and Description |
---|
SimplePane(int sx,
int sy)
Construct.
|
SimplePane(int sx,
int sy,
Halign halign,
Valign valign)
Construct.
|
SimplePane(int sx,
int sy,
Halign halign,
Valign valign,
Paint paintOrNull)
Construct.
|
SimplePane(Supplier<AreaSpec> areaSpec,
Paint paintOrNull)
Construct.
|
Modifier and Type | Method and Description |
---|---|
AreaSpec |
areaSpec()
Requested area specification.
|
int |
cx()
X coordinate of center.
|
int |
cy()
Y coordinate of center.
|
Range |
horizontal()
Horizontal range.
|
void |
layout(Area area)
Layout into an allocated area.
|
Px2d |
p0()
Upper left corner.
|
Px2d |
p1()
Lower right corner (inclusive!).
|
void |
paint(Renderer rendering)
Delegate to painting callback.
|
Px2d |
pc()
Center point.
|
Px2d |
pLeftCenter() |
Px2d |
pLowerCenter() |
Px2d |
pLowerLeft() |
Px2d |
pLowerRight() |
Px2d |
pRightCenter() |
Px2d |
pUpperCenter() |
Px2d |
pUpperLeft() |
Px2d |
pUpperRight() |
Area |
shrink(int px)
Shrink.
|
Px2d |
size()
Size.
|
int |
sx()
Horizontal size.
|
int |
sy()
Vertical size.
|
String |
toString() |
Area |
translate(int x,
int y)
Translate.
|
Area |
translate(Px2d v)
Translate.
|
Range |
vertical()
Vertical range.
|
int |
x0()
X coordinate of upper left corner.
|
int |
x1()
X coordinate of lower right corner (inclusive!).
|
int |
y0()
Y coordinate of upper left corner.
|
int |
y1()
Y coordinate of lower right corner (inclusive!).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invokeLayout
public int x0
public int y0
public int x1
public int y1
public int sx
public int sy
public int cx
public int cy
public SimplePane(Supplier<AreaSpec> areaSpec, Paint paintOrNull)
areaSpec
- Area specification supplierpaintOrNull
- Painting callbackpublic SimplePane(int sx, int sy, Halign halign, Valign valign, Paint paintOrNull)
sx
- Minimal X sizesy
- Minimal Y sizehalign
- Horizontal alignment in parent areavalign
- Vertical alignment in parent areapaintOrNull
- Painting callback or null
.public SimplePane(int sx, int sy, Halign halign, Valign valign)
sx
- Minimal X sizesy
- Minimal Y sizehalign
- Horizontal alignment in parent areavalign
- Vertical alignment in parent areapublic SimplePane(int sx, int sy)
sx
- Minimal X sizesy
- Minimal Y sizepublic AreaSpec areaSpec()
SubPane
public void layout(Area area)
SubPane
Area
is the 2D region which is available for the implementing class to place
itself. Placement (horizontal/vertical alignment) is done by the implementing class.layout
in interface SubPane
area
- Parent area which can be used by this pane. Layout is expected to be able to accordance
SubPane.areaSpec()
.public void paint(Renderer rendering)
rendering
- Rendererpublic Range horizontal()
Area
horizontal
in interface Area
public int x0()
Area
public int y0()
Area
public int x1()
Area
public int y1()
Area
public int sx()
Area
public int sy()
Area
public int cx()
Area
public int cy()
Area
public Px2d pUpperLeft()
pUpperLeft
in interface Area
public Px2d pUpperRight()
pUpperRight
in interface Area
public Px2d pLowerLeft()
pLowerLeft
in interface Area
public Px2d pLowerRight()
pLowerRight
in interface Area
public Px2d pLeftCenter()
pLeftCenter
in interface Area
public Px2d pRightCenter()
pRightCenter
in interface Area
public Px2d pUpperCenter()
pUpperCenter
in interface Area
public Px2d pLowerCenter()
pLowerCenter
in interface Area