Package uk.ac.starlink.ttools.plot2.task
Class ZoneSpec.LegendSpec
java.lang.Object
uk.ac.starlink.ttools.plot2.task.ZoneSpec.LegendSpec
- Enclosing class:
- ZoneSpec
Specification for legend display options.
-
Constructor Summary
ConstructorsConstructorDescriptionLegendSpec
(boolean hasBorder, boolean isOpaque, float[] legPos) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]
Returns fractional legend position.boolean
Returns border flag.boolean
isOpaque()
Returns legend opacity.
-
Constructor Details
-
LegendSpec
public LegendSpec(boolean hasBorder, boolean isOpaque, float[] legPos) Constructor.- Parameters:
hasBorder
- true if border is to be drawnisOpaque
- true for opaque backgroundlegPos
- 2-element x,y array for fractional internal legend position, null for external
-
-
Method Details
-
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
-