##################################################################

JQuickPlot - Java Quick XY Plots

Copyright (C) 2008 Frederic Roudaut


This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation; version 2.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

###################################################################

JQuickPlot
Class Column

java.lang.Object
  extended by JQuickPlot.Column

public class Column
extends java.lang.Object

Represent a column selection for a dots file


Field Summary
private  int _column
          column Num
private  java.lang.String _title
          column title to display in the legend
 
Constructor Summary
Column()
          Default Constructor
Column(int column)
          Constructor
Column(int column, java.lang.String title)
          Constructor
 
Method Summary
 void display()
          Display the object
 int getColumn()
          return the column num
 java.lang.String getTitle()
          return the title
 boolean isTitleEmpty()
          check is there is a title not equals to ""
 boolean isValid()
          check is the column num is valid
static Column parse(java.lang.String str)
          parse a string and return a Column object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_column

private int _column
column Num


_title

private java.lang.String _title
column title to display in the legend

Constructor Detail

Column

Column(int column,
       java.lang.String title)
Constructor

Parameters:
column - column Num
title - column title to display in the legend

Column

Column(int column)
Constructor

Parameters:
column - column Num

Column

Column()
Default Constructor

Method Detail

getColumn

public int getColumn()
return the column num


getTitle

public java.lang.String getTitle()
return the title


isTitleEmpty

public boolean isTitleEmpty()
check is there is a title not equals to ""


isValid

public boolean isValid()
check is the column num is valid


display

public void display()
Display the object


parse

public static Column parse(java.lang.String str)
parse a string and return a Column object

Parameters:
str - the string to parse (use the form columnNum:title)


##################################################################

JQuickPlot - Java Quick XY Plots

Copyright (C) 2008 Frederic Roudaut


This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation; version 2.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

###################################################################