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

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 ColumnList

java.lang.Object
  extended by JQuickPlot.ColumnList

public class ColumnList
extends java.lang.Object

Represent a column List selection for a dots file


Field Summary
private  java.util.List _columnList
          A List of Columns
 
Constructor Summary
ColumnList()
          Default Constructor
 
Method Summary
 boolean add(Column column)
          Add a Column
 boolean addColumn(int column)
          Add a Column
 boolean addColumn(int column, java.lang.String title)
          Add a Column
 void display()
          Display the object
 Column get(int pos)
          get a column object from its position
 boolean isEmpty()
          check if the the Columns List is empty
static void main(java.lang.String[] args)
          Main for test purpose
static ColumnList parse(java.lang.String str)
          parse a string and return a Column List object
 int size()
          get the size of the Columns List
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_columnList

private java.util.List _columnList
A List of Columns

Constructor Detail

ColumnList

public ColumnList()
Default Constructor

Method Detail

addColumn

public boolean addColumn(int column,
                         java.lang.String title)
Add a Column

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

addColumn

public boolean addColumn(int column)
Add a Column

Parameters:
column - column Num

add

public boolean add(Column column)
Add a Column

Parameters:
column - Column object to add

get

public Column get(int pos)
get a column object from its position

Parameters:
pos - position in the Columns List

size

public int size()
get the size of the Columns List


isEmpty

public boolean isEmpty()
check if the the Columns List is empty


parse

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

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

display

public void display()
Display the object


main

public static void main(java.lang.String[] args)
Main for test purpose



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

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.

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