Indicates an alignment of an object relative to the scale. In the descriptions below 'outbound' refers to an element's outer outline, 'inbound' refers to an element's inner outline and 'center' refers to an element's center, that is, the middle of the inbound and outbound.
Namespace: com.mindfusion.charting.components.gauges
File: com.mindfusion.charting.components.gauges
Java Copy Code |
---|
public enum Alignment |
Member name | Description | |
---|---|---|
CenterInside |
Specifies that the outbound of an object is aligned with the center of the scale. |
|
CenterOutside |
Specifies that the inbound of an object is aligned with the center of the scale. |
|
InnerCenter |
Specifies that the center of an object is aligned with the inbound of the scale. |
|
InnerInside |
Specifies that the outbound of an object is aligned with the inbound of the scale. |
|
InnerOutside |
Specifies that the inbound of an object is aligned with the inbound of the scale. |
|
OuterCenter |
Specifies that the center of an object is aligned with the outbound of the scale. |
|
OuterInside |
Specifies that the outbound of an object is aligned with the outbound of the scale. |
|
OuterOutside |
Specifies that the inbound of an object is aligned with the outbound of the scale. |
|
TrueCenter |
Specifies that the center of an object is aligned with the center of the scale. |
The following scheme illustrates all possible alignment modes:
The pale blue lane at the background represents an oval scale, the orange line represents the center of the scale and the green objects are the elements being aligned to the scale using different alignment modes. The center of each element is illustrated in light green color. The alignment modes used for each of the elements in the scheme is specified below:
The position of the aligned elements can be further adjusted through their offset. The offset of the different element types is specified through a different property. For example for Range objects, it is specified through the Offset property and for ticks and labels it is specified respectively by the TickOffset and LabelOffset properties of the corresponding TickSettings class.