public class OrientationPolicy extends Object
| Modifier and Type | Field and Description |
|---|---|
static OrientationPolicy |
ADAPTIVE
X labels may be horizontal or angled depending on crowding.
|
static OrientationPolicy |
ANGLED
All X labels are at an angle.
|
static OrientationPolicy |
HORIZONTAL
All X labels are horizontal.
|
| Constructor and Description |
|---|
OrientationPolicy(String name,
String description,
Orientation[] xorients,
Orientation[] yorients,
Orientation[] x2orients,
Orientation[] y2orients)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the description of this policy.
|
String |
getName()
Returns the name of this policy.
|
static OrientationPolicy[] |
getOptions()
Returns a list of the available options.
|
Orientation[] |
getOrientationsX()
Returns acceptable orientations for X axis labels,
in order of preference.
|
Orientation[] |
getOrientationsX2()
Returns acceptable orientations for secondary X axis labels,
in order of preference.
|
Orientation[] |
getOrientationsY()
Returns acceptable orientations for Y axis labels,
in order of preference.
|
Orientation[] |
getOrientationsY2()
Returns acceptable orientations for secondary Y axis labels,
in order of preference.
|
String |
toString() |
public static final OrientationPolicy HORIZONTAL
public static final OrientationPolicy ANGLED
public static final OrientationPolicy ADAPTIVE
public OrientationPolicy(String name, String description, Orientation[] xorients, Orientation[] yorients, Orientation[] x2orients, Orientation[] y2orients)
name - policy namedescription - short user-directed description of policyxorients - acceptable orientations for X axis labels,
in order of preferenceyorients - acceptable orientations for Y axis labels,
in order of preferencex2orients - acceptable orientations for secondary X axis labels,
in order of preferencey2orients - acceptable orientations for secondary Y axis labels,
in order of preferencepublic String getName()
public String getDescription()
public Orientation[] getOrientationsX()
public Orientation[] getOrientationsY()
public Orientation[] getOrientationsX2()
public Orientation[] getOrientationsY2()
public static OrientationPolicy[] getOptions()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.