Constructor and Description |
---|
ContentBuilder() |
Modifier and Type | Method and Description |
---|---|
ContentBuilder |
align(Content.Align TXT_ALIGN)
Set the align of the text
|
ContentBuilder |
area(int ORIGIN_X,
int ORIGIN_Y,
int END_X,
int END_Y)
Set the area where the content is displayed
|
ContentBuilder |
area(javafx.scene.shape.Rectangle AREA)
Set the area where the content is displayed
|
ContentBuilder |
bmpName(java.lang.String BMP_NAME)
Set the name of the bmp image
|
Content |
build() |
ContentBuilder |
clear(java.lang.Boolean CLEAR)
Set the option to clean the screen after the effect
|
ContentBuilder |
color(Content.MatrixColor MATRIX_COLOR)
Set the matrix LED's color
|
static ContentBuilder |
create()
To define a matrixPanel content, please indicate:
type: IMAGE, bmpName: file name (and path)
type: TEXT, txtContent: Text string, font, font fontGap
|
ContentBuilder |
effect(Content.Effect EFFECT)
Set the effect to display animated content
|
ContentBuilder |
font(Content.MatrixFont FONT)
Set the font for the text
|
ContentBuilder |
fontGap(Content.Gap FONT_GAP)
Set the gap between characters
|
ContentBuilder |
lapse(java.lang.Integer TIME_LAPSE)
Set the time lapse of the animation
|
ContentBuilder |
order(Content.RotationOrder ORDER)
Set the order in which the contents are alternatated
|
ContentBuilder |
origin(int ORIGIN_X,
int ORIGIN_Y)
Set the point of origin of the content
|
ContentBuilder |
origin(javafx.geometry.Point2D ORIGIN)
Set the point of origin of the content
|
ContentBuilder |
pause(java.lang.Integer PAUSE)
Set the pause time after the effect
|
ContentBuilder |
postEffect(Content.PostEffect POST_EFFECT)
Set the action after the animation effect
|
ContentBuilder |
txtContent(java.lang.String TXT_CONTENT)
Set the text string
|
ContentBuilder |
type(Content.Type TYPE)
Set the content type
|
public static final ContentBuilder create()
and: area, origin, color, effect (and lapse), postEffect (and pause)
To alternate contents in the same area use order
public final ContentBuilder color(Content.MatrixColor MATRIX_COLOR)
MATRIX_COLOR
- Choose the matrix LED's color:
public final ContentBuilder type(Content.Type TYPE)
TYPE
- Choose the type of the content:
public final ContentBuilder origin(javafx.geometry.Point2D ORIGIN)
ORIGIN
- Insert a Point2D with the (int) X and Y coordinates, relative to the area
in which the content is displayed, measured from the left-top of it, to the right-bottom.area(int, int, int, int)
,
origin(int, int)
public final ContentBuilder origin(int ORIGIN_X, int ORIGIN_Y)
ORIGIN_X
- Insert the X coordinate, relative to the area
in which the content is displayed, measured from the left of it, to the right.ORIGIN_Y
- Insert the Y coordinate, relative to the area
in which the content is displayed, measured from the top of it, to the bottom.area(int, int, int, int)
,
origin(Point2D)
public final ContentBuilder area(javafx.scene.shape.Rectangle AREA)
AREA
- Insert a Rectangle with X,Y as the left-top coordinates, and W,H as the width and height
of the window in which the content will be displayed.
This area should be inside the bounds of the matrixPanel and should not overlap with other areas.
The very same area could be used to display two different contents, check order(RotationOrder).
area(int, int, int, int)
public final ContentBuilder area(int ORIGIN_X, int ORIGIN_Y, int END_X, int END_Y)
ORIGIN_X
- Insert the X left coordinate of the window in which the content is displayed.ORIGIN_Y
- Insert the Y top coordinate of the window in which the content is displayed.END_X
- Insert the X rigth coordinate of the window in which the content is displayed.END_Y
- Insert the Y bottom coordinate of the window in which the content is displayed.
This window should be inside the bounds of the matrixPanel and should not overlap with other areas.
The very same area could be used to display two different contents, check order(RotationOrder).
area(Rectangle)
public final ContentBuilder bmpName(java.lang.String BMP_NAME)
BMP_NAME
- Two options for a valid name of a BMP image, with or without ".bmp" extension:
type(Content.Type Content.Type.IMAGE)
public final ContentBuilder txtContent(java.lang.String TXT_CONTENT)
TXT_CONTENT
- Insert the string of text to be displayed, it will be showed in one line. In case
it is too long, a SCROLL effect is recommended.type(Content.Type Content.Type.TEXT)
public final ContentBuilder font(Content.MatrixFont FONT)
FONT
- Select the font for the text to be displayed. Several proportional dotted fonts are available,
all of them named with the Width and Height used for each character.
Check MatrixPanel to insert missing characters to the list.type(Content.Type Content.Type.TEXT)
public final ContentBuilder fontGap(Content.Gap FONT_GAP)
FONT_GAP
- Select the gap between the characters:
type(Content.Type Content.Type.TEXT)
public final ContentBuilder align(Content.Align TXT_ALIGN)
TXT_ALIGN
- Select how to align the string of text
In case of long string of text, to display the whole string select a Scroll effect opposite to the selected align.
type(Content.Type Content.Type.TEXT)
,
effect(Content.Effect)
public final ContentBuilder effect(Content.Effect EFFECT)
EFFECT
- Select the Effect to display animated content
The animation effect is repeted every lapse milliseconds.
To repeat the effect, choose a postEffect action.
align(Content.Align)
,
lapse(Integer)
,
postEffect(Content.PostEffect)
public final ContentBuilder postEffect(Content.PostEffect POST_EFFECT)
POST_EFFECT
- Select the action after the animation effect has finished:
effect(Content.Effect)
,
pause(Integer)
public final ContentBuilder pause(java.lang.Integer PAUSE)
PAUSE
- Insert the time in milliseconds that the content will be showed in its final position, before
the selected effect starts again, or the content is replaced by other in the same area (see order).postEffect(Content.PostEffect Content.PostEffect.PAUSE)
,
order(Content.RotationOrder)
public final ContentBuilder lapse(java.lang.Integer TIME_LAPSE)
TIME_LAPSE
- in terms of milliseconds, is the time lapse to perform the animation effect,
movement or blink of the whole content.effect(Content.Effect)
public final ContentBuilder order(Content.RotationOrder ORDER)
ORDER
- Select RotationOrder.Single for a unique content in its area.
In case two different contents should be displayed alternately in the very same area, select:
To erase the area before displaying the next content, select clear(true) to prevent mixing contents.
clear(Boolean)
public final ContentBuilder clear(java.lang.Boolean CLEAR)
CLEAR
- In case two different contents should be displayed alternately in the very same area, select
if the area should be erased before displaying the next content.order(Content.RotationOrder)