T
- The type of colors.@Beta public static class ICombinedPanel.Impl<T> extends Object implements ICombinedPanel<T>
ICombinedPanel
. Useful to combine
things. If you're a new user, you likely would prefer the more specific
implementation using libGDX, GroupCombinedPanel, instead.ICombinedPanel.Impl<T>, ICombinedPanel.What
Modifier and Type | Field and Description |
---|---|
protected ISquidPanel<T> |
bg |
protected ISquidPanel<T> |
fg |
protected int |
height |
protected int |
width |
Constructor and Description |
---|
Impl(ISquidPanel<T> bg,
ISquidPanel<T> fg,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
fill(ICombinedPanel.What what,
T color) |
boolean |
hasActiveAnimations() |
void |
put(int x,
int y,
char c,
T bgc,
T fgc)
Puts
c at (x, y), using fgc for c and bgc
for the background. |
void |
put(int x,
int y,
String s,
T bgc,
T fgc)
Put
cs at (x,y) using bgc for the background and
fgc for the foreground. |
void |
put(int x,
int y,
T bgc,
IColoredString<T> cs)
Put
cs at (x,y) using bgc for the background. |
void |
putBG(int x,
int y,
T color)
Puts the color
c at (x, y) . |
void |
putFG(int x,
int y,
char c)
Puts the character
c at (x, y) . |
void |
putFG(int x,
int y,
char c,
T color)
Puts the character
c at (x, y) with some color . |
void |
putFG(int x,
int y,
IColoredString<T> cs)
Puts the given string horizontally with the first character at the given
offset.
|
void |
putFG(int x,
int y,
String string,
T foreground)
Puts the given string horizontally with the first character at the given
offset.
|
void |
setColorCenter(IColorCenter<T> icc)
Changes the underlying
IColorCenter . |
protected final ISquidPanel<T> bg
protected final ISquidPanel<T> fg
protected final int width
protected final int height
public Impl(ISquidPanel<T> bg, ISquidPanel<T> fg, int width, int height)
bg
- The backing background panel.fg
- The backing foreground panel.width
- The width of this panel, used for #fillBG(Object)
(so that it fills within [0, width)
).height
- The height of this panel, used for #fillBG(Object)
(so that it fills within [0, height)
).IllegalStateException
- In various cases of errors regarding sizes of panels.public void putFG(int x, int y, char c)
ICombinedPanel
c
at (x, y)
.putFG
in interface ICombinedPanel<T>
public void putFG(int x, int y, char c, T color)
ICombinedPanel
c
at (x, y)
with some color
.putFG
in interface ICombinedPanel<T>
public void putFG(int x, int y, String string, T foreground)
ICombinedPanel
putFG
in interface ICombinedPanel<T>
x
- the x coordinate of the first charactery
- the y coordinate of the first characterstring
- the characters to be displayedforeground
- the color to draw the characterspublic void putFG(int x, int y, IColoredString<T> cs)
ICombinedPanel
putFG
in interface ICombinedPanel<T>
x
- the x coordinate of the first charactery
- the y coordinate of the first charactercs
- the text to be displayed, with its color.public void putBG(int x, int y, T color)
ICombinedPanel
c
at (x, y)
.putBG
in interface ICombinedPanel<T>
public void put(int x, int y, char c, T bgc, T fgc)
ICombinedPanel
c
at (x, y), using fgc
for c
and bgc
for the background.put
in interface ICombinedPanel<T>
public void put(int x, int y, T bgc, IColoredString<T> cs)
ICombinedPanel
cs
at (x,y) using bgc
for the background.put
in interface ICombinedPanel<T>
public void put(int x, int y, String s, T bgc, T fgc)
ICombinedPanel
cs
at (x,y) using bgc
for the background and
fgc
for the foreground.put
in interface ICombinedPanel<T>
public void fill(ICombinedPanel.What what, T color)
fill
in interface ICombinedPanel<T>
what
- What to fillcolor
- The color to put within this panel.public boolean hasActiveAnimations()
hasActiveAnimations
in interface ICombinedPanel<T>
public void setColorCenter(IColorCenter<T> icc)
ICombinedPanel
IColorCenter
.setColorCenter
in interface ICombinedPanel<T>
Copyright © 2012–2016. All rights reserved.