@NotThreadSafe public class CSSRect extends Object implements ICSSWriteable
| Constructor and Description |
|---|
CSSRect(CSSRect aOther)
Copy constructor
|
CSSRect(String sTop,
String sRight,
String sBottom,
String sLeft)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
String |
getBottom() |
String |
getLeft() |
String |
getRight() |
String |
getTop() |
int |
hashCode() |
CSSRect |
setBottom(String sBottom)
Set the bottom coordinate.
|
CSSRect |
setLeft(String sLeft)
Set the left coordinate.
|
CSSRect |
setRight(String sRight)
Set the right coordinate.
|
CSSRect |
setTop(String sTop)
Set the top coordinate.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSStringpublic CSSRect(@Nonnull CSSRect aOther)
aOther - The object to copy the data from. May not be null.public CSSRect(@Nonnull @Nonempty String sTop, @Nonnull @Nonempty String sRight, @Nonnull @Nonempty String sBottom, @Nonnull @Nonempty String sLeft)
sTop - Top coordinate. May neither be null nor empty.sRight - Tight coordinate. May neither be null nor empty.sBottom - Bottom coordinate. May neither be null nor empty.sLeft - Left coordinate. May neither be null nor empty.@Nonnull public CSSRect setTop(@Nonnull @Nonempty String sTop)
sTop - May neither be null nor empty.@Nonnull public CSSRect setRight(@Nonnull @Nonempty String sRight)
sRight - May neither be null nor empty.@Nonnull @Nonempty public String getBottom()
null nor empty.@Nonnull public CSSRect setBottom(@Nonnull @Nonempty String sBottom)
sBottom - May neither be null nor empty.@Nonnull public CSSRect setLeft(@Nonnull @Nonempty String sLeft)
sLeft - May neither be null nor empty.@Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
ICSSWriteablegetAsCSSString in interface ICSSWriteableaSettings - The settings to be used to format the output. May not be
null.nIndentLevel - The current indentation levelnull.Copyright © 2014–2018 Philip Helger. All rights reserved.