Class SetTextGDIPlusProperties.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sources.SetTextGDIPlusProperties.Builder
-
- Enclosing class:
- SetTextGDIPlusProperties
public static class SetTextGDIPlusProperties.Builder extends BaseBuilder
-
-
Constructor Summary
Constructors Constructor Description Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetTextGDIPlusProperties.Request
batchMessage()
Batch the message to the OBS Studio instance.Optional<String>
getAlign()
Text Alignment ("left", "center", "right").Optional<Integer>
getBkColor()
Background color.Optional<Integer>
getBkOpacity()
Background opacity (0-100).Optional<Integer>
getChatlogLines()
Chat log lines.Optional<Integer>
getColor()
Text color.Optional<Integer>
getExtentsCx()
Extents cx.Optional<Integer>
getExtentsCy()
Extents cy.Optional<String>
getFile()
File path name.Optional<SetTextGDIPlusProperties.Font>
getFont()
Holds data for the font.Optional<Integer>
getGradientColor()
Gradient color.Optional<Float>
getGradientDir()
Gradient direction.Optional<Integer>
getGradientOpacity()
Gradient opacity (0-100).Optional<Integer>
getOutlineColor()
Outline color.Optional<Integer>
getOutlineOpacity()
Outline opacity (0-100).Optional<Integer>
getOutlineSize()
Outline size.String
getSource()
Name of the source.Optional<String>
getText()
Text content to be displayed.Optional<String>
getValign()
Text vertical alignment ("top", "center", "bottom").Optional<Boolean>
isChatlog()
Chat log.Optional<Boolean>
isExtents()
Extents wrap.Optional<Boolean>
isGradient()
Gradient enabled.Optional<Boolean>
isOutline()
Outline.Optional<Boolean>
isReadFromFile()
Read text from the specified file.Optional<Boolean>
isRender()
Visibility of the scene item.Optional<Boolean>
isVertical()
Vertical text enabled.void
sendMessage(Consumer<SetTextGDIPlusProperties.Response> consumer)
Send the message to the OBS Studio instance.void
setAlign(String align)
Text Alignment ("left", "center", "right").void
setBkColor(int bkColor)
Background color.void
setBkOpacity(int bkOpacity)
Background opacity (0-100).void
setChatlog(boolean chatlog)
Chat log.void
setChatlogLines(int chatlogLines)
Chat log lines.void
setColor(int color)
Text color.void
setExtents(boolean extents)
Extents wrap.void
setExtentsCx(int extentsCx)
Extents cx.void
setExtentsCy(int extentsCy)
Extents cy.void
setFile(String file)
File path name.void
setFont(SetTextGDIPlusProperties.Font font)
Holds data for the font.void
setGradient(boolean gradient)
Gradient enabled.void
setGradientColor(int gradientColor)
Gradient color.void
setGradientDir(float gradientDir)
Gradient direction.void
setGradientOpacity(int gradientOpacity)
Gradient opacity (0-100).void
setOutline(boolean outline)
Outline.void
setOutlineColor(int outlineColor)
Outline color.void
setOutlineOpacity(int outlineOpacity)
Outline opacity (0-100).void
setOutlineSize(int outlineSize)
Outline size.void
setReadFromFile(boolean readFromFile)
Read text from the specified file.void
setRender(boolean render)
Visibility of the scene item.void
setSource(String source)
Name of the source.void
setText(String text)
Text content to be displayed.void
setValign(String valign)
Text vertical alignment ("top", "center", "bottom").void
setVertical(boolean vertical)
Vertical text enabled.-
Methods inherited from class nl.harm27.obs.websocket.api.base.BaseBuilder
batchMessage, getNewMessageId, sendMessage
-
-
-
-
Constructor Detail
-
Builder
public Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getSource
public String getSource()
Name of the source.
-
setSource
public void setSource(String source)
Name of the source.
-
setAlign
public void setAlign(String align)
Text Alignment ("left", "center", "right").
-
setBkColor
public void setBkColor(int bkColor)
Background color.
-
setBkOpacity
public void setBkOpacity(int bkOpacity)
Background opacity (0-100).
-
setChatlog
public void setChatlog(boolean chatlog)
Chat log.
-
setChatlogLines
public void setChatlogLines(int chatlogLines)
Chat log lines.
-
setColor
public void setColor(int color)
Text color.
-
setExtents
public void setExtents(boolean extents)
Extents wrap.
-
setExtentsCx
public void setExtentsCx(int extentsCx)
Extents cx.
-
setExtentsCy
public void setExtentsCy(int extentsCy)
Extents cy.
-
setFile
public void setFile(String file)
File path name.
-
setReadFromFile
public void setReadFromFile(boolean readFromFile)
Read text from the specified file.
-
getFont
public Optional<SetTextGDIPlusProperties.Font> getFont()
Holds data for the font. Ex: `"font": { "face": "Arial", "flags": 0, "size": 150, "style": "" }`
-
setFont
public void setFont(SetTextGDIPlusProperties.Font font)
Holds data for the font. Ex: `"font": { "face": "Arial", "flags": 0, "size": 150, "style": "" }`
-
setGradient
public void setGradient(boolean gradient)
Gradient enabled.
-
setGradientColor
public void setGradientColor(int gradientColor)
Gradient color.
-
setGradientDir
public void setGradientDir(float gradientDir)
Gradient direction.
-
setGradientOpacity
public void setGradientOpacity(int gradientOpacity)
Gradient opacity (0-100).
-
setOutline
public void setOutline(boolean outline)
Outline.
-
setOutlineColor
public void setOutlineColor(int outlineColor)
Outline color.
-
setOutlineSize
public void setOutlineSize(int outlineSize)
Outline size.
-
setOutlineOpacity
public void setOutlineOpacity(int outlineOpacity)
Outline opacity (0-100).
-
setText
public void setText(String text)
Text content to be displayed.
-
setValign
public void setValign(String valign)
Text vertical alignment ("top", "center", "bottom").
-
setVertical
public void setVertical(boolean vertical)
Vertical text enabled.
-
setRender
public void setRender(boolean render)
Visibility of the scene item.
-
sendMessage
public void sendMessage(Consumer<SetTextGDIPlusProperties.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetTextGDIPlusProperties.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-