Package uk.ac.starlink.ttools.plot2.task
Class ZoneSpec.LegendSpec
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.task.ZoneSpec.LegendSpec
-
- Enclosing class:
- ZoneSpec
public static class ZoneSpec.LegendSpec extends java.lang.Object
Specification for legend display options.
-
-
Constructor Summary
Constructors Constructor Description LegendSpec(boolean hasBorder, boolean isOpaque, float[] legPos)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
getPosition()
Returns fractional legend position.boolean
hasBorder()
Returns border flag.boolean
isOpaque()
Returns legend opacity.
-
-
-
Method Detail
-
hasBorder
public boolean hasBorder()
Returns border flag.- Returns:
- true for border, false for none
-
isOpaque
public boolean isOpaque()
Returns legend opacity.- Returns:
- true for opaque legend, false for transparent
-
getPosition
public float[] getPosition()
Returns fractional legend position.- Returns:
- 2-element x,y array for fractional internal legend position, null for external
-
-