org.rosuda.ibase.toolkit
Class MapSegmentTools

java.lang.Object
  extended by org.rosuda.ibase.toolkit.MapSegmentTools

public class MapSegmentTools
extends java.lang.Object

this class provides a few toolkit-specific tools for handling MapSegments


Constructor Summary
MapSegmentTools()
           
 
Method Summary
static int[] transViaAxisX(MapSegment ms, int id, Axis a)
          transform X coordinates of a MapSegment according to the specified Axis and return the result.
static int[] transViaAxisY(MapSegment ms, int id, Axis a)
          transform Y coordinates of a MapSegment according to the specified Axis and return the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapSegmentTools

public MapSegmentTools()
Method Detail

transViaAxisX

public static int[] transViaAxisX(MapSegment ms,
                                  int id,
                                  Axis a)
transform X coordinates of a MapSegment according to the specified Axis and return the result.

Parameters:
ms - map segment to transform
id - which segment entry to transform
axis - to be used for transformation
Returns:
transformed X axis as an array of integers

transViaAxisY

public static int[] transViaAxisY(MapSegment ms,
                                  int id,
                                  Axis a)
transform Y coordinates of a MapSegment according to the specified Axis and return the result.

Parameters:
ms - map segment to transform
id - which segment entry to transform
axis - to be used for transformation
Returns:
transformed Y axis as an array of integers