mev-4.0.01/source/org/tigr/graph/GraphTick.java

Code
Comments
Other
Rev Date Author Line
2 26 Feb 07 jari 1 /*
2 26 Feb 07 jari 2 Copyright @ 1999-2003, The Institute for Genomic Research (TIGR).
2 26 Feb 07 jari 3 All rights reserved.
2 26 Feb 07 jari 4 */
2 26 Feb 07 jari 5 /*
2 26 Feb 07 jari 6  * $RCSfile: GraphTick.java,v $
2 26 Feb 07 jari 7  * $Revision: 1.2 $
2 26 Feb 07 jari 8  * $Date: 2004/02/06 22:46:02 $
2 26 Feb 07 jari 9  * $Author: braisted $
2 26 Feb 07 jari 10  * $State: Exp $
2 26 Feb 07 jari 11  */
2 26 Feb 07 jari 12 package org.tigr.graph;
2 26 Feb 07 jari 13
2 26 Feb 07 jari 14 import java.awt.Color;
2 26 Feb 07 jari 15
2 26 Feb 07 jari 16 public class GraphTick extends GraphElement {
2 26 Feb 07 jari 17     private double location;
2 26 Feb 07 jari 18     private int height;
2 26 Feb 07 jari 19     private Color color;
2 26 Feb 07 jari 20     private int orientation;
2 26 Feb 07 jari 21     private int alignment;
2 26 Feb 07 jari 22     private String label;
2 26 Feb 07 jari 23     private Color labelColor;
2 26 Feb 07 jari 24     
2 26 Feb 07 jari 25     public GraphTick(double location, int height, Color color, int orientation, int alignment, String label, Color labelColor) {
2 26 Feb 07 jari 26   this.location = location;
2 26 Feb 07 jari 27   this.height = height;
2 26 Feb 07 jari 28   this.color = color;
2 26 Feb 07 jari 29   this.orientation = orientation;
2 26 Feb 07 jari 30   this.alignment = alignment;
2 26 Feb 07 jari 31   this.label = label;
2 26 Feb 07 jari 32   this.labelColor = labelColor;
2 26 Feb 07 jari 33     }
2 26 Feb 07 jari 34     
2 26 Feb 07 jari 35     public GraphTick(double location, int height, int orientation) {
2 26 Feb 07 jari 36   this.location = location;
2 26 Feb 07 jari 37   this.height = height;
2 26 Feb 07 jari 38   this.orientation = orientation;
2 26 Feb 07 jari 39   this.alignment = GC.C;
2 26 Feb 07 jari 40   this.color = Color.black;
2 26 Feb 07 jari 41   this.label = "";
2 26 Feb 07 jari 42   this.labelColor = Color.black;
2 26 Feb 07 jari 43     }
2 26 Feb 07 jari 44     
2 26 Feb 07 jari 45     public void setLocation(double location) {this.location = location;}
2 26 Feb 07 jari 46     public double getLocation() {return this.location;}
2 26 Feb 07 jari 47     public void setHeight(int height) {this.height = height;}
2 26 Feb 07 jari 48     public int getHeight() {return this.height;}
2 26 Feb 07 jari 49     public void setOrientation(int orientation) {this.orientation = orientation;}
2 26 Feb 07 jari 50     public int getOrientation() {return this.orientation;}
2 26 Feb 07 jari 51     public void setAlignment(int alignment) {this.alignment = alignment;}
2 26 Feb 07 jari 52     public int getAlignment() {return this.alignment;}
2 26 Feb 07 jari 53     public void setColor(Color color) {this.color = color;}
2 26 Feb 07 jari 54     public Color getColor() {return this.color;}
2 26 Feb 07 jari 55     public void setLabel(String label) {this.label = label;}
2 26 Feb 07 jari 56     public String getLabel() {return this.label;}
2 26 Feb 07 jari 57     public void setLabelColor(Color labelColor) {this.labelColor = labelColor;}
2 26 Feb 07 jari 58     public Color getLabelColor() {return this.labelColor;}
2 26 Feb 07 jari 59 }