anl.aida.data
Class AbstractCoordAxis

java.lang.Object
  extended by anl.aida.data.AbstractCoordAxis
All Implemented Interfaces:
CoordAxis
Direct Known Subclasses:
DefaultStringCoordAxis, RegularTimeAxis

public abstract class AbstractCoordAxis
extends java.lang.Object
implements CoordAxis

DefaultCoordinateAxis implementation.


Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> attributes
           
protected  AxisData data
           
 
Constructor Summary
AbstractCoordAxis(AxisData data)
           
 
Method Summary
 java.lang.String getAttribute(java.lang.String name)
          Gets the value of the named attribute.
 AxisType getAxisType()
          Gets the type of this axis.
 java.lang.String getDescription()
          Gets the description of this CoordAxis.
 java.lang.String getName()
          Gets the name of this CoordAxis.
 Range getRange()
          Gets the range of this axis.
 javax.measure.unit.Unit<?> getUnits()
          Gets the unit of measurement for this coordinate axis.
 boolean isCompatible(CoordAxis axis)
          Gets whether or not the this axis is compatible with the specified axis.
 void setAttribute(java.lang.String name, java.lang.String value)
          Sets the named attributes value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface anl.aida.data.CoordAxis
getValue, getValueAsString
 

Field Detail

data

protected AxisData data

attributes

protected java.util.Map<java.lang.String,java.lang.String> attributes
Constructor Detail

AbstractCoordAxis

public AbstractCoordAxis(AxisData data)
Parameters:
data -
Method Detail

getAxisType

public AxisType getAxisType()
Description copied from interface: CoordAxis
Gets the type of this axis.

Specified by:
getAxisType in interface CoordAxis
Returns:
the type of this axis.

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Description copied from interface: CoordAxis
Gets the value of the named attribute.

Specified by:
getAttribute in interface CoordAxis
Parameters:
name - the name of the attribute.
Returns:
the value of the named attribute or null if no such attribute is found.

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
Sets the named attributes value

Parameters:
name - the name of the attribute
value - the attribute value

getDescription

public java.lang.String getDescription()
Description copied from interface: CoordAxis
Gets the description of this CoordAxis.

Specified by:
getDescription in interface CoordAxis
Returns:
the description of this CoordAxis.

getName

public java.lang.String getName()
Description copied from interface: CoordAxis
Gets the name of this CoordAxis.

Specified by:
getName in interface CoordAxis
Returns:
the name of this CoordAxis.

getRange

public Range getRange()
Description copied from interface: CoordAxis
Gets the range of this axis.

Specified by:
getRange in interface CoordAxis
Returns:
the range of this axis.

getUnits

public javax.measure.unit.Unit<?> getUnits()
Description copied from interface: CoordAxis
Gets the unit of measurement for this coordinate axis.

Specified by:
getUnits in interface CoordAxis
Returns:
the unit of measurement for this coordinate axis.

isCompatible

public boolean isCompatible(CoordAxis axis)
Gets whether or not the this axis is compatible with the specified axis. Two axes are compatible if they can be used together in the same formula.

Specified by:
isCompatible in interface CoordAxis
Parameters:
axis - the axis to check for compatibility
Returns:
true if this axis is compatibilty with the other axis, otherise false.