Modifier and Type | Method and Description |
---|---|
void |
BatchRenderDevice.renderFont(RenderFont font,
String text,
int x,
int y,
Color color,
float sizeX,
float sizeY) |
void |
BatchRenderDevice.renderImage(RenderImage image,
int x,
int y,
int width,
int height,
Color c,
float scale) |
void |
BatchRenderDevice.renderImage(RenderImage image,
int x,
int y,
int w,
int h,
int srcX,
int srcY,
int srcW,
int srcH,
Color c,
float scale,
int centerX,
int centerY) |
void |
BatchRenderDevice.renderQuad(int x,
int y,
int width,
int height,
Color color) |
void |
BatchRenderDevice.renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft) |
Modifier and Type | Method and Description |
---|---|
void |
BatchRenderBackend.addQuad(float x,
float y,
float width,
float height,
Color color1,
Color color2,
Color color3,
Color color4,
float textureX,
float textureY,
float textureWidth,
float textureHeight)
Add a quad with the given coordinates to the current batch.
|
Modifier and Type | Method and Description |
---|---|
void |
StyleBuilder.backgroundColor(Color backgroundColor) |
void |
ElementBuilder.backgroundColor(Color backgroundColor) |
void |
StyleBuilder.color(Color color) |
void |
ElementBuilder.color(Color color) |
void |
StyleBuilder.selectionColor(Color color) |
void |
ElementBuilder.selectionColor(Color color) |
Modifier and Type | Method and Description |
---|---|
void |
NiftyRenderDeviceProxy.renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft) |
void |
NiftyRenderDeviceProxy.renderText(String text,
int x,
int y,
int selectionStart,
int selectionEnd,
Color c) |
void |
NiftyRenderDeviceProxy.setColor(Color colorParam) |
void |
NiftyRenderDeviceProxy.setColorIgnoreAlpha(Color color) |
Modifier and Type | Method and Description |
---|---|
Color |
TextRenderer.getColor() |
Modifier and Type | Method and Description |
---|---|
void |
TextRenderer.RenderFontNull.render(String text,
int x,
int y,
Color fontColor,
float size) |
void |
PanelRenderer.setBackgroundColor(Color newBackgroundColor)
set a background color.
|
void |
TextRenderer.setColor(Color newColor)
set color.
|
void |
TextRenderer.setTextSelectionColor(Color textSelectionColorParam)
set new text selection color.
|
Modifier and Type | Field and Description |
---|---|
static Color |
Convert.DEFAULT_COLOR |
Modifier and Type | Method and Description |
---|---|
Color |
Convert.color(String value) |
Modifier and Type | Method and Description |
---|---|
void |
NullRenderDevice.renderFont(RenderFont font,
String text,
int x,
int y,
Color fontColor,
float sizeX,
float sizeY) |
void |
NullRenderDevice.renderImage(RenderImage image,
int x,
int y,
int width,
int height,
Color color,
float imageScale) |
void |
NullRenderDevice.renderImage(RenderImage image,
int x,
int y,
int w,
int h,
int srcX,
int srcY,
int srcW,
int srcH,
Color color,
float scale,
int centerX,
int centerY) |
void |
NullRenderDevice.renderQuad(int x,
int y,
int width,
int height,
Color color) |
void |
NullRenderDevice.renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft) |
Modifier and Type | Method and Description |
---|---|
void |
NiftyImage.render(int x,
int y,
int width,
int height,
Color color,
float scale)
Render the image using the given Box to specify the render attributes.
|
void |
NiftyImageMode.render(RenderDevice renderDevice,
RenderImage renderImage,
int x,
int y,
int width,
int height,
Color color,
float scale)
Deprecated.
Render image.
|
void |
ScalingRenderDevice.renderFont(RenderFont font,
String text,
int x,
int y,
Color fontColor,
float sizeX,
float sizeY) |
void |
ScalingRenderDevice.renderImage(RenderImage image,
int x,
int y,
int width,
int height,
Color color,
float imageScale) |
void |
ScalingRenderDevice.renderImage(RenderImage image,
int x,
int y,
int w,
int h,
int srcX,
int srcY,
int srcW,
int srcH,
Color color,
float scale,
int centerX,
int centerY) |
void |
ScalingRenderDevice.renderQuad(int x,
int y,
int width,
int height,
Color color) |
void |
ScalingRenderDevice.renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft) |
void |
NiftyRenderEngineImpl.renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft) |
void |
NiftyRenderEngine.renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft)
Renders a quad with different colors at the quad vertices.
|
protected void |
NiftyRenderEngineImpl.renderSelectionText(String text,
int x,
int y,
Color textColor,
Color textSelectionColor,
float textSizeX,
float textSizeY,
int selectionStartParam,
int selectionEndParam)
Render a Text with some text selected.
|
void |
NiftyRenderEngineImpl.renderText(String text,
int x,
int y,
int selectionStart,
int selectionEnd,
Color textSelectionColor)
renderText.
|
void |
NiftyRenderEngine.renderText(String text,
int x,
int y,
int selectionStart,
int selectionEnd,
Color textSelectionColor)
renderText.
|
void |
NiftyRenderEngineImpl.setColor(Color colorParam) |
void |
NiftyRenderEngine.setColor(Color colorParam)
Set a new color.
|
void |
NiftyRenderEngineImpl.setColorIgnoreAlpha(Color newColor)
Set only the color component of the given color.
|
void |
NiftyRenderEngine.setColorIgnoreAlpha(Color color)
Set only the color component of the given color.
|
Modifier and Type | Method and Description |
---|---|
void |
ImageMode.render(RenderDevice renderDevice,
RenderImage renderImage,
int x,
int y,
int width,
int height,
Color color,
float scale)
Render image.
|
void |
CompoundImageMode.render(RenderDevice renderDevice,
RenderImage renderImage,
int x,
int y,
int width,
int height,
Color color,
float scale) |
Modifier and Type | Method and Description |
---|---|
void |
ResizeStrategy.render(RenderDevice renderDevice,
RenderImage image,
Box sourceArea,
int x,
int y,
int width,
int height,
Color color,
float scale) |
void |
RepeatStrategy.render(RenderDevice renderDevice,
RenderImage image,
Box sourceArea,
int x,
int y,
int width,
int height,
Color color,
float scale) |
void |
RenderStrategy.render(RenderDevice renderDevice,
RenderImage image,
Box sourceArea,
int x,
int y,
int width,
int height,
Color color,
float scale) |
void |
RenderDirectlyStrategy.render(RenderDevice renderDevice,
RenderImage image,
Box sourceArea,
int x,
int y,
int width,
int height,
Color color,
float scale) |
void |
NinePartResizeStrategy.render(RenderDevice device,
RenderImage image,
Box sourceArea,
int x,
int y,
int width,
int height,
Color color,
float scale) |
void |
ClampStrategy.render(RenderDevice renderDevice,
RenderImage image,
Box sourceArea,
int x,
int y,
int width,
int height,
Color color,
float scale) |
Modifier and Type | Method and Description |
---|---|
void |
RenderDevice.renderFont(RenderFont font,
String text,
int x,
int y,
Color fontColor,
float sizeX,
float sizeY)
Render the given text at the given position.
|
void |
RenderDevice.renderImage(RenderImage image,
int x,
int y,
int width,
int height,
Color color,
float imageScale)
Render the image.
|
void |
RenderDevice.renderImage(RenderImage image,
int x,
int y,
int w,
int h,
int srcX,
int srcY,
int srcW,
int srcH,
Color color,
float scale,
int centerX,
int centerY)
Render a sub image of this image.
|
void |
RenderDevice.renderQuad(int x,
int y,
int width,
int height,
Color color)
Render a quad.
|
void |
RenderDevice.renderQuad(int x,
int y,
int width,
int height,
Color topLeft,
Color topRight,
Color bottomRight,
Color bottomLeft)
Render a quad with different colors at the vertices.
|
Modifier and Type | Field and Description |
---|---|
static Color |
Color.BLACK
a black color.
|
static Color |
Color.NONE
the default empty color.
|
static Color |
Color.WHITE
a white color.
|
Modifier and Type | Method and Description |
---|---|
Color |
ColorValueParser.getColor() |
static Color |
Color.randomColor() |
Color |
Color.setAlpha(float newColorAlpha)
Set color alpha.
|
Modifier and Type | Method and Description |
---|---|
void |
Color.linear(Color start,
Color end,
float t)
linear interpolate between the start color and the end color and updates this color.
|
void |
Color.mutiply(Color color,
float factor)
Multiply all components with the given factor.
|
Constructor and Description |
---|
Color(Color colorParam) |
Color(Color newColor,
float newAlpha)
Create a color from another color, using the given alpha value.
|
Modifier and Type | Method and Description |
---|---|
Color |
Attributes.getAsColor(String name) |
Copyright © 2013. All Rights Reserved.