public class UiTopoLayout
extends java.lang.Object
Region
.
These instances include information about which geo-map or grid-layout should be displayed, along with zoom and offset parameters.
Constructor and Description |
---|
UiTopoLayout(UiTopoLayoutId id)
Created a new UI topology layout.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
geomap()
Returns the symbolic name for the geomap for this layout.
|
UiTopoLayout |
geomap(java.lang.String geomap)
Sets the name of the geomap for this layout.
|
UiTopoLayoutId |
id()
Returns the UI layout identifier.
|
boolean |
isRoot()
Returns true if this layout instance is at the top of the
hierarchy tree.
|
double |
offsetX()
Returns the x-offset value.
|
UiTopoLayout |
offsetX(double offsetX)
Sets the x-offset value.
|
double |
offsetY()
Returns the y-offset value.
|
UiTopoLayout |
offsetY(double offsetY)
Sets the y-offset value.
|
UiTopoLayoutId |
parent()
Returns the parent layout identifier.
|
UiTopoLayout |
parent(UiTopoLayoutId parentId)
Sets the identity of this layout's parent.
|
Region |
region()
Returns the backing region with which this layout is associated.
|
UiTopoLayout |
region(Region region)
Sets the backing region for this layout.
|
RegionId |
regionId()
Returns the identifier of the backing region.
|
double |
scale()
Returns the scale for the geomap / sprite image.
|
UiTopoLayout |
scale(double scale)
Sets the scale for the geomap / sprite image.
|
java.lang.String |
sprites()
Returns the symbolic name for the sprites definition for this layout.
|
UiTopoLayout |
sprites(java.lang.String sprites)
Sets the name of the sprites definition for this layout.
|
java.lang.String |
toString() |
public UiTopoLayout(UiTopoLayoutId id)
id
- layout identifierpublic boolean isRoot()
public UiTopoLayoutId id()
public java.lang.String toString()
toString
in class java.lang.Object
public UiTopoLayout region(Region region)
region
- the backing regionjava.lang.IllegalArgumentException
- if this is the root layoutpublic Region region()
public RegionId regionId()
public UiTopoLayout parent(UiTopoLayoutId parentId)
parentId
- parent layout identifierjava.lang.IllegalArgumentException
- if this instance is the root layoutpublic UiTopoLayoutId parent()
public UiTopoLayout geomap(java.lang.String geomap)
Since the geomap and sprites fields are mutually exclusive, this method will throw an exception if the sprites field is already set.
geomap
- the geomap namejava.lang.IllegalArgumentException
- if the sprites field is not nullpublic java.lang.String geomap()
public UiTopoLayout sprites(java.lang.String sprites)
Since the geomap and sprites fields are mutually exclusive, this method will throw an exception if the geomap field is already set.
sprites
- the sprites definition namejava.lang.IllegalArgumentException
- if the geomap field is not nullpublic java.lang.String sprites()
public UiTopoLayout scale(double scale)
scale
- the scalejava.lang.IllegalArgumentException
- if the value is out of boundspublic double scale()
public UiTopoLayout offsetX(double offsetX)
offsetX
- x-offsetpublic double offsetX()
public UiTopoLayout offsetY(double offsetY)
offsetY
- y-offsetpublic double offsetY()