edu.iastate.metnet.metaomgraph.chart
Class RangeMarker

java.lang.Object
  extended by edu.iastate.metnet.metaomgraph.chart.RangeMarker
All Implemented Interfaces:
java.io.Serializable

public class RangeMarker
extends java.lang.Object
implements java.io.Serializable

Class that holds information about a sort beyond the order. Can be used to track ranges of data.

Author:
Nick Ransom
See Also:
Serialized Form

Field Summary
static int HORIZONTAL
           
static int VERTICAL
           
 
Constructor Summary
RangeMarker(int start, int end, java.lang.String label, int style)
           
RangeMarker(int start, int end, java.lang.String label, int style, java.awt.Color myColor)
          Constructor.
 
Method Summary
 java.awt.Color getColor()
           
 int getEnd()
           
 java.lang.String getLabel()
           
 int getStart()
           
 int getStyle()
           
 void setColor(java.awt.Color myColor)
           
 void setEnd(int end)
           
 void setLabel(java.lang.String label)
           
 void setStart(int start)
           
 void setStyle(int style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HORIZONTAL

public static int HORIZONTAL

VERTICAL

public static int VERTICAL
Constructor Detail

RangeMarker

public RangeMarker(int start,
                   int end,
                   java.lang.String label,
                   int style)

RangeMarker

public RangeMarker(int start,
                   int end,
                   java.lang.String label,
                   int style,
                   java.awt.Color myColor)
Constructor.

Parameters:
start - The start of a range
end - The end of a range
label - A label to associate with this range
Method Detail

getLabel

public java.lang.String getLabel()
Returns:
A label to associate with this range

getEnd

public int getEnd()
Returns:
The end of this range

getStart

public int getStart()
Returns:
The start of this range

getStyle

public int getStyle()

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color myColor)

setEnd

public void setEnd(int end)

setLabel

public void setLabel(java.lang.String label)

setStart

public void setStart(int start)

setStyle

public void setStyle(int style)