Class FixedAxisFactory1D
- java.lang.Object
-
- com.metsci.glimpse.core.axis.factory.FixedAxisFactory1D
-
- All Implemented Interfaces:
AxisFactory1D
public class FixedAxisFactory1D extends Object implements AxisFactory1D
An AxisFactory1D which provides unlinked axis copies which are set to an explicit min and max value.- Author:
- ulman
-
-
Constructor Summary
Constructors Constructor Description FixedAxisFactory1D(double min, double max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Axis1DnewAxis(GlimpseTargetStack stack, Axis1D axis)Creates a copy of the provided axis which is valid for the given GlimpseTargetStack.
-
-
-
Method Detail
-
newAxis
public Axis1D newAxis(GlimpseTargetStack stack, Axis1D axis)
Description copied from interface:AxisFactory1DCreates a copy of the provided axis which is valid for the given GlimpseTargetStack.Normally, this method simply calls Axis1D.clone( ) which returns a copied axis linked to the original. However, other implementations of AxisFactory may have different behavior (perhaps not linking the original and copy, or setting the copy to a fixed size).
The GlimpseTargetStack argument may be used if the axis which is created should be different depending on where the axis is being used. Most normal implementations can ignore this.
- Specified by:
newAxisin interfaceAxisFactory1D- Parameters:
stack- the context in which the axis is being usedaxis- the original/parent axis- Returns:
- a new Axis1D which will be used when the original axis is used in the context described by the GlimpseTargetStack argument
-
-