@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CaptionRectangle extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
CaptionRectangle() |
Modifier and Type | Method and Description |
---|---|
CaptionRectangle |
clone() |
boolean |
equals(Object obj) |
Double |
getHeight()
See the description in leftOffset.
|
Double |
getLeftOffset()
Applies only if you plan to convert these source captions to EBU-TT-D or TTML in an output.
|
Double |
getTopOffset()
See the description in leftOffset.
|
Double |
getWidth()
See the description in leftOffset.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHeight(Double height)
See the description in leftOffset.
|
void |
setLeftOffset(Double leftOffset)
Applies only if you plan to convert these source captions to EBU-TT-D or TTML in an output.
|
void |
setTopOffset(Double topOffset)
See the description in leftOffset.
|
void |
setWidth(Double width)
See the description in leftOffset.
|
String |
toString()
Returns a string representation of this object.
|
CaptionRectangle |
withHeight(Double height)
See the description in leftOffset.
|
CaptionRectangle |
withLeftOffset(Double leftOffset)
Applies only if you plan to convert these source captions to EBU-TT-D or TTML in an output.
|
CaptionRectangle |
withTopOffset(Double topOffset)
See the description in leftOffset.
|
CaptionRectangle |
withWidth(Double width)
See the description in leftOffset.
|
public void setHeight(Double height)
height
- See the description in leftOffset. For height, specify the entire height of the rectangle as a percentage
of the underlying frame height. For example, \"80\" means the rectangle height is 80% of the underlying
frame height. The topOffset and rectangleHeight must add up to 100% or less. This field corresponds to
tts:extent - Y in the TTML standard.public Double getHeight()
public CaptionRectangle withHeight(Double height)
height
- See the description in leftOffset. For height, specify the entire height of the rectangle as a percentage
of the underlying frame height. For example, \"80\" means the rectangle height is 80% of the underlying
frame height. The topOffset and rectangleHeight must add up to 100% or less. This field corresponds to
tts:extent - Y in the TTML standard.public void setLeftOffset(Double leftOffset)
leftOffset
- Applies only if you plan to convert these source captions to EBU-TT-D or TTML in an output. (Make sure to
leave the default if you don't have either of these formats in the output.) You can define a display
rectangle for the captions that is smaller than the underlying video frame. You define the rectangle by
specifying the position of the left edge, top edge, bottom edge, and right edge of the rectangle, all
within the underlying video frame. The units for the measurements are percentages. If you specify a value
for one of these fields, you must specify a value for all of them. For leftOffset, specify the position of
the left edge of the rectangle, as a percentage of the underlying frame width, and relative to the left
edge of the frame. For example, \"10\" means the measurement is 10% of the underlying frame width. The
rectangle left edge starts at that position from the left edge of the frame. This field corresponds to
tts:origin - X in the TTML standard.public Double getLeftOffset()
public CaptionRectangle withLeftOffset(Double leftOffset)
leftOffset
- Applies only if you plan to convert these source captions to EBU-TT-D or TTML in an output. (Make sure to
leave the default if you don't have either of these formats in the output.) You can define a display
rectangle for the captions that is smaller than the underlying video frame. You define the rectangle by
specifying the position of the left edge, top edge, bottom edge, and right edge of the rectangle, all
within the underlying video frame. The units for the measurements are percentages. If you specify a value
for one of these fields, you must specify a value for all of them. For leftOffset, specify the position of
the left edge of the rectangle, as a percentage of the underlying frame width, and relative to the left
edge of the frame. For example, \"10\" means the measurement is 10% of the underlying frame width. The
rectangle left edge starts at that position from the left edge of the frame. This field corresponds to
tts:origin - X in the TTML standard.public void setTopOffset(Double topOffset)
topOffset
- See the description in leftOffset. For topOffset, specify the position of the top edge of the rectangle,
as a percentage of the underlying frame height, and relative to the top edge of the frame. For example,
\"10\" means the measurement is 10% of the underlying frame height. The rectangle top edge starts at that
position from the top edge of the frame. This field corresponds to tts:origin - Y in the TTML standard.public Double getTopOffset()
public CaptionRectangle withTopOffset(Double topOffset)
topOffset
- See the description in leftOffset. For topOffset, specify the position of the top edge of the rectangle,
as a percentage of the underlying frame height, and relative to the top edge of the frame. For example,
\"10\" means the measurement is 10% of the underlying frame height. The rectangle top edge starts at that
position from the top edge of the frame. This field corresponds to tts:origin - Y in the TTML standard.public void setWidth(Double width)
width
- See the description in leftOffset. For width, specify the entire width of the rectangle as a percentage of
the underlying frame width. For example, \"80\" means the rectangle width is 80% of the underlying frame
width. The leftOffset and rectangleWidth must add up to 100% or less. This field corresponds to tts:extent
- X in the TTML standard.public Double getWidth()
public CaptionRectangle withWidth(Double width)
width
- See the description in leftOffset. For width, specify the entire width of the rectangle as a percentage of
the underlying frame width. For example, \"80\" means the rectangle width is 80% of the underlying frame
width. The leftOffset and rectangleWidth must add up to 100% or less. This field corresponds to tts:extent
- X in the TTML standard.public String toString()
toString
in class Object
Object.toString()
public CaptionRectangle clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.