You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(95) |
Sep
(42) |
Oct
(2) |
Nov
(7) |
Dec
(6) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
|
Feb
(34) |
Mar
|
Apr
|
May
(64) |
Jun
(113) |
Jul
(60) |
Aug
(9) |
Sep
(6) |
Oct
(20) |
Nov
(11) |
Dec
|
|
From: <nat...@us...> - 2003-08-09 19:01:09
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/samples In directory sc8-pr-cvs1:/tmp/cvs-serv25733/samples Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/samples added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:07:28
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/axisChart
In directory sc8-pr-cvs1:/tmp/cvs-serv3404/tabs/axisChart
Added Files:
AxisChartTabs.java
Log Message:
initial revision
--- NEW FILE: AxisChartTabs.java ---
/***************************************************************************************
* File Info: $Id: AxisChartTabs.java,v 1.1 2003/08/09 17:07:23 nathaniel_auvil Exp $
*
* Description:
*
* Last Reviewed: NEVER
* Maintainer: Nathaniel Auvil
* Copyright: <copyright.icore>
***************************************************************************************/
package org.krysalis.jcharts.designer.tabs.axisChart;
import org.krysalis.jcharts.designer.tabs.TopLevelTabs;
import javax.swing.*;
public class AxisChartTabs extends JTabbedPane {
private TopLevelTabs topLevelTabs;
/*******************************************************************************
*
* @param topLevelTabs
******************************************************************************/
public AxisChartTabs( TopLevelTabs topLevelTabs ) {
this.topLevelTabs= topLevelTabs;
this.topLevelTabs.addTab( "Axis Charts", this );
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:07:28
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/allChart
In directory sc8-pr-cvs1:/tmp/cvs-serv3404/tabs/allChart
Added Files:
AllChartTabs.java ChartPropertiesTab.java
Log Message:
initial revision
--- NEW FILE: AllChartTabs.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.tabs.allChart;
import org.krysalis.jcharts.designer.tabs.TopLevelTabs;
import javax.swing.*;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: AllChartTabs.java,v 1.1 2003/08/09 17:07:22 nathaniel_auvil Exp $
************************************************************************************/
public class AllChartTabs extends JTabbedPane {
private TopLevelTabs topLevelTabs;
private ChartPropertiesTab allChartTabPanel;
/*******************************************************************************
*
* @param topLevelTabs
******************************************************************************/
public AllChartTabs( TopLevelTabs topLevelTabs ) {
this.topLevelTabs= topLevelTabs;
this.topLevelTabs.addTab( "All Charts", this );
this.allChartTabPanel= new ChartPropertiesTab( this );
}
public ChartPropertiesTab getAllChartTabPanel()
{
return allChartTabPanel;
}
}
--- NEW FILE: ChartPropertiesTab.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.tabs.allChart;
import org.krysalis.jcharts.designer.common.font.FontChooser;
import org.krysalis.jcharts.designer.common.stroke.StrokeChooser;
import org.krysalis.jcharts.designer.exceptions.DesignerException;
import org.krysalis.jcharts.properties.ChartProperties;
import javax.swing.*;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: ChartPropertiesTab.java,v 1.1 2003/08/09 17:07:22 nathaniel_auvil Exp $
************************************************************************************/
public class ChartPropertiesTab extends JPanel
{
private AllChartTabs allChartTabs;
private FontChooser titleFont;
private StrokeChooser borderStroke;
/************************************************************************************
*
* @param allChartTabs
***********************************************************************************/
public ChartPropertiesTab( AllChartTabs allChartTabs )
{
super();
this.allChartTabs = allChartTabs;
allChartTabs.addTab( "Chart Properties", this );
this.titleFont= new org.krysalis.jcharts.designer.common.font.FontChooser( "Title Font" );
this.add( this.titleFont );
this.borderStroke= new org.krysalis.jcharts.designer.common.stroke.StrokeChooser( "Border Stroke" );
this.add( this.borderStroke );
}
public void updateChartProperties( org.krysalis.jcharts.properties.ChartProperties chartProperties ) throws DesignerException
{
chartProperties.setTitleFont( this.titleFont.getChartFont() );
}
}
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/nonAxisChart
In directory sc8-pr-cvs1:/tmp/cvs-serv3404/tabs/nonAxisChart
Added Files:
NonAxisChartDataTab.java NonAxisChartTabs.java
PieChartTab.java
Log Message:
initial revision
--- NEW FILE: NonAxisChartDataTab.java ---
/***************************************************************************************
* File Info: $Id: NonAxisChartDataTab.java,v 1.1 2003/08/09 17:07:23 nathaniel_auvil Exp $
*
* Description:
*
* Last Reviewed: NEVER
* Maintainer: Nathaniel Auvil
* Copyright: <copyright.icore>
***************************************************************************************/
package org.krysalis.jcharts.designer.tabs.nonAxisChart;
import javax.swing.*;
public class NonAxisChartDataTab extends JPanel {
private NonAxisChartTabs nonAxisChartTab;
/*******************************************************************************
*
* @param nonAxisChartTab
*******************************************************************************/
public NonAxisChartDataTab( NonAxisChartTabs nonAxisChartTab ) {
this.nonAxisChartTab= nonAxisChartTab;
nonAxisChartTab.addTab( "Data Set", this );
//this.add( new FontChooser( "Title Font" ) );
}
}
--- NEW FILE: NonAxisChartTabs.java ---
/***************************************************************************************
* File Info: $Id: NonAxisChartTabs.java,v 1.1 2003/08/09 17:07:23 nathaniel_auvil Exp $
*
* Description:
*
* Last Reviewed: NEVER
* Maintainer: Nathaniel Auvil
* Copyright: <copyright.icore>
***************************************************************************************/
package org.krysalis.jcharts.designer.tabs.nonAxisChart;
import org.krysalis.jcharts.designer.tabs.TopLevelTabs;
import javax.swing.*;
public class NonAxisChartTabs extends JTabbedPane {
private TopLevelTabs topLevelTabs;
private NonAxisChartDataTab nonAxisChartDataTab;
private PieChartTab pieChartTab;
/*******************************************************************************
*
* @param topLevelTabs
*******************************************************************************/
public NonAxisChartTabs( TopLevelTabs topLevelTabs ) {
this.topLevelTabs= topLevelTabs;
this.topLevelTabs.addTab( "Non Axis Charts", this );
this.nonAxisChartDataTab= new NonAxisChartDataTab( this );
this.pieChartTab= new PieChartTab( this );
}
}
--- NEW FILE: PieChartTab.java ---
/***************************************************************************************
* File Info: $Id: PieChartTab.java,v 1.1 2003/08/09 17:07:23 nathaniel_auvil Exp $
*
* Description:
*
* Last Reviewed: NEVER
* Maintainer: Nathaniel Auvil
* Copyright: <copyright.icore>
***************************************************************************************/
package org.krysalis.jcharts.designer.tabs.nonAxisChart;
import org.krysalis.jcharts.designer.common.font.FontChooser;
import org.krysalis.jcharts.designer.common.stroke.StrokeChooser;
import javax.swing.*;
public class PieChartTab extends JPanel {
private NonAxisChartTabs nonAxisChartTab;
private StrokeChooser borderStroke;
/*******************************************************************************
*
* @param nonAxisChartTab
*******************************************************************************/
public PieChartTab( NonAxisChartTabs nonAxisChartTab ) {
this.nonAxisChartTab= nonAxisChartTab;
nonAxisChartTab.addTab( "Pie Chart", this );
this.borderStroke= new StrokeChooser( "Border Stroke" );
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:07:27
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/menuBar
In directory sc8-pr-cvs1:/tmp/cvs-serv3404/menuBar
Added Files:
DesignerMenuBar.java
Log Message:
initial revision
--- NEW FILE: DesignerMenuBar.java ---
/***************************************************************************************
* File Info: $Id: DesignerMenuBar.java,v 1.1 2003/08/09 17:07:22 nathaniel_auvil Exp $
*
* Description:
*
* Last Reviewed: NEVER
* Maintainer: Nathaniel Auvil
* Copyright: <copyright.icore>
***************************************************************************************/
package org.krysalis.jcharts.designer.menuBar;
import org.krysalis.jcharts.designer.Designer;
import javax.swing.*;
public class DesignerMenuBar extends JMenuBar {
private Designer designer;
public DesignerMenuBar( Designer designer ) {
this.designer= designer;
/*
this.fileMenu = this.addJMenu( "File", KeyEvent.VK_F );
this.createJMenuItem( "Load File...", KeyEvent.VK_L, new LoadFileAction( this, auditViewer.getAuditTableModel() ), this.fileMenu );
this.addFileMenuItem= this.createJMenuItem( "Add File...", KeyEvent.VK_A, new AddFileAction( this, auditViewer.getAuditTableModel() ), this.fileMenu );
this.addFileMenuItem.setEnabled( false );
this.refreshFileAction= new RefreshFileAction( this, auditViewer.getAuditTableModel() );
this.reloadFileMenuItem= this.createJMenuItem( "Reload File", KeyEvent.VK_R, this.refreshFileAction, this.fileMenu );
this.reloadFileMenuItem.setEnabled( false );
*/
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:07:27
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs
In directory sc8-pr-cvs1:/tmp/cvs-serv3404/tabs
Added Files:
LowerHalfPanel.java TopLevelTabs.java
Log Message:
initial revision
--- NEW FILE: LowerHalfPanel.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.tabs;
import org.krysalis.jcharts.designer.Designer;
import org.krysalis.jcharts.designer.buttonBar.ButtonPanel;
import javax.swing.*;
import java.awt.*;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: LowerHalfPanel.java,v 1.1 2003/08/09 17:07:22 nathaniel_auvil Exp $
************************************************************************************/
public class LowerHalfPanel extends JPanel
{
private Designer designer;
private ButtonPanel buttonPanel;
private TopLevelTabs topLevelTabs;
/********************************************************************************
*
* @param designer
*******************************************************************************/
public LowerHalfPanel( Designer designer )
{
this.designer= designer;
this.buttonPanel= new ButtonPanel( this );
this.topLevelTabs= new TopLevelTabs( this );
super.setLayout( new BorderLayout() );
super.add( this.buttonPanel, BorderLayout.NORTH );
super.add( this.topLevelTabs, BorderLayout.CENTER );
}
public Designer getDesigner()
{
return designer;
}
public TopLevelTabs getTopLevelTabs()
{
return topLevelTabs;
}
}
--- NEW FILE: TopLevelTabs.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.tabs;
import org.krysalis.jcharts.designer.tabs.axisChart.AxisChartTabs;
import org.krysalis.jcharts.designer.tabs.nonAxisChart.NonAxisChartTabs;
import org.krysalis.jcharts.designer.tabs.allChart.AllChartTabs;
import org.krysalis.jcharts.designer.exceptions.DesignerException;
import org.krysalis.jcharts.properties.ChartProperties;
import javax.swing.*;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: TopLevelTabs.java,v 1.1 2003/08/09 17:07:22 nathaniel_auvil Exp $
************************************************************************************/
public class TopLevelTabs extends JTabbedPane {
private LowerHalfPanel lowerHalfPanel;
private AllChartTabs allChartTabs;
private NonAxisChartTabs nonAxisChartTab;
private AxisChartTabs axisChartTab;
/*******************************************************************************
*
* @param lowerHalfPanel
******************************************************************************/
public TopLevelTabs( LowerHalfPanel lowerHalfPanel ) {
this.lowerHalfPanel= lowerHalfPanel;
this.allChartTabs= new AllChartTabs( this );
this.nonAxisChartTab= new NonAxisChartTabs( this );
this.axisChartTab= new AxisChartTabs( this );
}
public LowerHalfPanel getLowerHalfPanel()
{
return lowerHalfPanel;
}
public void updateChartProperties( ChartProperties chartProperties ) throws DesignerException
{
this.allChartTabs.getAllChartTabPanel().updateChartProperties( chartProperties );
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:07:27
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/exceptions
In directory sc8-pr-cvs1:/tmp/cvs-serv3404/exceptions
Added Files:
DesignerException.java
Log Message:
initial revision
--- NEW FILE: DesignerException.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.exceptions;
import org.krysalis.jcharts.designer.Designer;
import javax.swing.*;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: DesignerException.java,v 1.1 2003/08/09 17:07:22 nathaniel_auvil Exp $
************************************************************************************/
public class DesignerException extends Exception
{
public DesignerException( String message )
{
super( message );
}
public void display( Designer designer )
{
JOptionPane.showMessageDialog( designer, super.getMessage(), "Designer Exception", JOptionPane.ERROR_MESSAGE );
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:07:08
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/nonAxisChart In directory sc8-pr-cvs1:/tmp/cvs-serv3371/nonAxisChart Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/nonAxisChart added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:06:57
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/axisChart In directory sc8-pr-cvs1:/tmp/cvs-serv3321/axisChart Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/axisChart added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:06:38
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/allChart In directory sc8-pr-cvs1:/tmp/cvs-serv3269/allChart Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs/allChart added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:06:27
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs In directory sc8-pr-cvs1:/tmp/cvs-serv3254/tabs Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/tabs added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:06:14
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/menuBar In directory sc8-pr-cvs1:/tmp/cvs-serv3231/menuBar Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/menuBar added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:05:59
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/exceptions In directory sc8-pr-cvs1:/tmp/cvs-serv3184/exceptions Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/exceptions added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:05:41
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common/stroke
In directory sc8-pr-cvs1:/tmp/cvs-serv3144
Added Files:
EndCapsCombo.java LineJoinsCombo.java StrokeChooser.java
Log Message:
initial revision
--- NEW FILE: EndCapsCombo.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.common.stroke;
import org.krysalis.jcharts.designer.common.LabelledCombo;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: EndCapsCombo.java,v 1.1 2003/08/09 17:05:38 nathaniel_auvil Exp $
************************************************************************************/
class EndCapsCombo extends LabelledCombo
{
private static String[] ALL_END_CAPS;
static
{
ALL_END_CAPS= new String[]{ "BUTT", "ROUND", "SQUARE" };
}
/*******************************************************************************
*
********************************************************************************/
public EndCapsCombo()
{
super( "End Caps", ALL_END_CAPS );
}
}
--- NEW FILE: LineJoinsCombo.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.common.stroke;
import org.krysalis.jcharts.designer.common.LabelledCombo;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: LineJoinsCombo.java,v 1.1 2003/08/09 17:05:38 nathaniel_auvil Exp $
************************************************************************************/
class LineJoinsCombo extends LabelledCombo
{
private static String[] ALL_LINE_JOINS;
static
{
ALL_LINE_JOINS= new String[]{ "BEVEL", "MITER", "ROUND" };
}
/*******************************************************************************
*
********************************************************************************/
public LineJoinsCombo()
{
super( "Line Joins", ALL_LINE_JOINS );
}
}
--- NEW FILE: StrokeChooser.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.common.stroke;
import org.krysalis.jcharts.designer.common.LabelledTextfield;
import javax.swing.*;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: StrokeChooser.java,v 1.1 2003/08/09 17:05:38 nathaniel_auvil Exp $
************************************************************************************/
public class StrokeChooser extends JPanel
{
private LabelledTextfield widthField;
private EndCapsCombo endCaps;
private LineJoinsCombo lineJoins;
private JRadioButton noStroke;
public StrokeChooser( String title, boolean showNoStroke )
{
super();
super.setBorder( BorderFactory.createCompoundBorder( BorderFactory.createTitledBorder( title ),
BorderFactory.createEmptyBorder( 5, 5, 5, 5 ) ) );
this.setLayout( new BoxLayout( this, BoxLayout.Y_AXIS ) );
this.widthField= new LabelledTextfield( "Width" );
super.add( this.widthField );
this.endCaps= new EndCapsCombo();
super.add( this.endCaps );
this.lineJoins= new LineJoinsCombo();
super.add( this.lineJoins );
}
/***********************************************************************************
*
* @param title
**********************************************************************************/
public StrokeChooser( String title )
{
super();
super.setBorder( BorderFactory.createCompoundBorder( BorderFactory.createTitledBorder( title ),
BorderFactory.createEmptyBorder( 5, 5, 5, 5 ) ) );
this.setLayout( new BoxLayout( this, BoxLayout.Y_AXIS ) );
this.widthField= new LabelledTextfield( "Width" );
super.add( this.widthField );
this.endCaps= new EndCapsCombo();
super.add( this.endCaps );
this.lineJoins= new LineJoinsCombo();
super.add( this.lineJoins );
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:05:22
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common/stroke In directory sc8-pr-cvs1:/tmp/cvs-serv1804/stroke Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common/stroke added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:05:14
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common/paint
In directory sc8-pr-cvs1:/tmp/cvs-serv1729
Added Files:
PaintChooser.java
Log Message:
initial revision
--- NEW FILE: PaintChooser.java ---
/***********************************************************************************************
* File Info: Id: $
* Copyright (C) 2002
* Author: Nathaniel G. Auvil
* Contributor(s):
*
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.common.paint;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: PaintChooser.java,v 1.1 2003/08/09 17:05:12 nathaniel_auvil Exp $
************************************************************************************/
public class PaintChooser
{
public PaintChooser()
{
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:04:59
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common/font
In directory sc8-pr-cvs1:/tmp/cvs-serv1663
Added Files:
FontChooser.java StylesCombo.java
Log Message:
initial revision
--- NEW FILE: FontChooser.java ---
package org.krysalis.jcharts.designer.common.font;
import org.krysalis.jcharts.designer.common.LabelledCombo;
import org.krysalis.jcharts.designer.common.LabelledTextfield;
import org.krysalis.jcharts.designer.exceptions.DesignerException;
import org.krysalis.jcharts.properties.util.ChartFont;
import javax.swing.*;
import java.awt.*;
public class FontChooser extends JPanel
{
private static String[] ALL_FONT_NAMES;
static
{
Font[] allFonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
ALL_FONT_NAMES = new String[ allFonts.length ];
for( int i = 0; i < allFonts.length; i++ )
{
ALL_FONT_NAMES[ i ] = allFonts[ i ].getName();
}
}
private String title;
private LabelledCombo fontCombo;
private LabelledTextfield size;
private LabelledCombo styleCombo;
/***********************************************************************************
*
* @param title
**********************************************************************************/
public FontChooser( String title )
{
super();
this.title= title;
super.setBorder( BorderFactory.createCompoundBorder( BorderFactory.createTitledBorder( this.title ),
BorderFactory.createEmptyBorder( 5, 5, 5, 5 ) ) );
this.setLayout( new FlowLayout() );
this.fontCombo = new LabelledCombo( "Name:", ALL_FONT_NAMES );
this.add( this.fontCombo );
this.size= new LabelledTextfield( "Size:" );
this.add( this.size );
this.styleCombo= new StylesCombo();
this.add( this.styleCombo );
}
/*********************************************************************************
*
* @return ChartFont
********************************************************************************/
public ChartFont getChartFont() throws DesignerException
{
if( this.size.getText().trim().equals( "" ) )
{
throw new DesignerException( this.title + " can not be NULL." );
}
Font font= new Font( this.fontCombo.getSelected(), this.styleCombo.getSelectedIndex(), Integer.parseInt( this.size.getText() ) );
//todo Paint implementation?
ChartFont chartFont= new ChartFont( font, Color.black );
return chartFont;
}
}
--- NEW FILE: StylesCombo.java ---
/***********************************************************************************************
* File Info: Id: $
* Copyright (C) 2002
* Author: Nathaniel G. Auvil
* Contributor(s):
*
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.common.font;
import org.krysalis.jcharts.designer.common.LabelledCombo;
public class StylesCombo extends LabelledCombo
{
private static String[] ALL_STYLES;
static
{
ALL_STYLES= new String[]{ "BOLD", "ITALIC", "PLAIN" };
}
/*******************************************************************************
*
********************************************************************************/
public StylesCombo()
{
super( "Style", ALL_STYLES );
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:04:46
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common/paint In directory sc8-pr-cvs1:/tmp/cvs-serv1512/paint Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common/paint added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:04:39
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common/font In directory sc8-pr-cvs1:/tmp/cvs-serv1496/font Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common/font added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:04:31
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common
In directory sc8-pr-cvs1:/tmp/cvs-serv1479
Added Files:
LabelledCombo.java LabelledTextfield.java
Log Message:
initial revision
--- NEW FILE: LabelledCombo.java ---
/***********************************************************************************************
* File Info: Id: $
* Copyright (C) 2002
* Author: Nathaniel G. Auvil
* Contributor(s):
*
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.common;
import javax.swing.*;
import java.awt.*;
public class LabelledCombo extends JPanel
{
private JLabel jLabel;
private JComboBox combo;
/********************************************************************************
*
* @param label
********************************************************************************/
public LabelledCombo( String label, String[] comboValues )
{
super();
this.jLabel = new JLabel( label );
this.combo = new JComboBox( comboValues );
this.setLayout( new FlowLayout() );
this.add( this.jLabel );
this.add( this.combo );
}
/*********************************************************************************
*
* @return Object
********************************************************************************/
public String getSelected()
{
return (String) this.combo.getSelectedItem();
}
/*********************************************************************************
*
* @return int
********************************************************************************/
public int getSelectedIndex()
{
return this.combo.getSelectedIndex();
}
}
--- NEW FILE: LabelledTextfield.java ---
/***********************************************************************************************
* File Info: Id: $
* Copyright (C) 2002
* Author: Nathaniel G. Auvil
* Contributor(s):
*
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.common;
import javax.swing.*;
import java.awt.*;
public class LabelledTextfield extends JPanel
{
private JLabel jLabel;
private JTextField textField;
/********************************************************************************
*
* @param label
********************************************************************************/
public LabelledTextfield( String label )
{
super();
this.jLabel = new JLabel( label );
this.textField = new JTextField( 2 );
this.setLayout( new FlowLayout() );
this.add( this.jLabel );
this.add( this.textField );
}
/*********************************************************************************
*
* @return String
********************************************************************************/
public String getText() {
return this.textField.getText();
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:04:18
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common In directory sc8-pr-cvs1:/tmp/cvs-serv1453/common Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/common added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:04:10
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/charts
In directory sc8-pr-cvs1:/tmp/cvs-serv1437
Added Files:
DesignerChart.java DesignerPieChart.java
Log Message:
initial revision
--- NEW FILE: DesignerChart.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.charts;
import org.krysalis.jcharts.properties.ChartProperties;
import org.krysalis.jcharts.properties.LegendProperties;
import java.awt.*;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: DesignerChart.java,v 1.1 2003/08/09 17:04:07 nathaniel_auvil Exp $
************************************************************************************/
public abstract class DesignerChart
{
private int width;
private int height;
private String title;
private String[] legendLabels;
private Paint[] paints;
private double[][] data;
private ChartProperties chartProperties;
private LegendProperties legendProperties;
/**************************************************************************
*
* @param width
* @param height
*************************************************************************/
public DesignerChart( int width, int height )
{
this.width= width;
this.height= height;
this.chartProperties= new ChartProperties();
this.legendProperties= new LegendProperties();
}
public ChartProperties getChartProperties()
{
return chartProperties;
}
public LegendProperties getLegendProperties()
{
return legendProperties;
}
public int getWidth()
{
return width;
}
public void setWidth( int width )
{
this.width = width;
}
public int getHeight()
{
return height;
}
public void setHeight( int height )
{
this.height = height;
}
public String getTitle()
{
return title;
}
public void setTitle( String title )
{
this.title = title;
}
public String[] getLegendLabels()
{
return legendLabels;
}
public void setLegendLabels( String[] legendLabels )
{
this.legendLabels = legendLabels;
}
public Paint[] getPaints()
{
return paints;
}
public void setPaints( Paint[] paints )
{
this.paints = paints;
}
public double[][] getData()
{
return data;
}
public void setData( double[][] data )
{
this.data = data;
}
}
--- NEW FILE: DesignerPieChart.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.charts;
import org.krysalis.jcharts.nonAxisChart.PieChart2D;
import org.krysalis.jcharts.properties.PieChart2DProperties;
import org.krysalis.jcharts.chartData.PieChartDataSet;
import org.krysalis.jcharts.chartData.ChartDataException;
import java.awt.*;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: DesignerPieChart.java,v 1.1 2003/08/09 17:04:07 nathaniel_auvil Exp $
************************************************************************************/
public class DesignerPieChart extends DesignerChart
{
private PieChart2D pieChart2D;
private PieChart2DProperties pieChart2DProperties;
private PieChartDataSet pieChartDataSet;
/**********************************************************************************
*
* @param width
* @param height
* @throws ChartDataException
*********************************************************************************/
public DesignerPieChart( int width, int height ) throws ChartDataException
{
super( width, height );
this.pieChart2DProperties = new PieChart2DProperties();
super.setTitle( "Cars that Own" );
super.setLegendLabels( new String[]{"BMW", "Audi", "Lexus"} );
super.setPaints( new Paint[]{ Color.blue, Color.gray, Color.red } );
super.setData( new double[][]{ {50d, 30d, 20d} } );
this.updateChart();
}
/***************************************************************************************
* Updates the chart Object with all the latest settings.
*
* @throws ChartDataException
**************************************************************************************/
public void updateChart() throws ChartDataException
{
this.pieChartDataSet = new PieChartDataSet( super.getTitle(),
super.getData()[ 0 ],
super.getLegendLabels(),
super.getPaints(),
this.pieChart2DProperties );
this.pieChart2D= new PieChart2D( pieChartDataSet,
super.getLegendProperties(),
super.getChartProperties(),
super.getWidth(),
super.getHeight() );
}
public PieChart2D getPieChart2D()
{
return this.pieChart2D;
}
public PieChart2DProperties getPieChart2DProperties()
{
return pieChart2DProperties;
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:03:55
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/charts In directory sc8-pr-cvs1:/tmp/cvs-serv1394/charts Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/charts added to the repository |
|
From: <nat...@us...> - 2003-08-09 17:03:48
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/buttonBar
In directory sc8-pr-cvs1:/tmp/cvs-serv1369
Added Files:
ButtonPanel.java RefreshChartButton.java
Log Message:
initial revision
--- NEW FILE: ButtonPanel.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.buttonBar;
import org.krysalis.jcharts.designer.tabs.LowerHalfPanel;
import javax.swing.*;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: ButtonPanel.java,v 1.1 2003/08/09 17:03:46 nathaniel_auvil Exp $
************************************************************************************/
public class ButtonPanel extends JPanel
{
private LowerHalfPanel lowerHalfPanel;
private RefreshChartButton refreshChartButton;
/*************************************************************************
*
* @param lowerHalfPanel
************************************************************************/
public ButtonPanel( LowerHalfPanel lowerHalfPanel )
{
super();
this.lowerHalfPanel = lowerHalfPanel;
super.setBorder( BorderFactory.createEmptyBorder( 5, 5, 0, 5 ) );
super.setLayout( new BoxLayout( this, BoxLayout.X_AXIS ) );
//---force button to the right
super.add( Box.createHorizontalGlue() );
this.refreshChartButton = new RefreshChartButton( this );
super.add( this.refreshChartButton );
}
public LowerHalfPanel getLowerHalfPanel()
{
return lowerHalfPanel;
}
}
--- NEW FILE: RefreshChartButton.java ---
/***********************************************************************************************
* Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation ("Software"), with or
* without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain copyright statements and notices.
* Redistributions must also contain a copy of this document.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote
* products derived from this Software without prior written permission of Nathaniel G.
* Auvil. For written permission, please contact nat...@us...
*
* 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear
* in their names without prior written permission of Nathaniel G. Auvil. jCharts is a
* registered trademark of Nathaniel G. Auvil.
*
* 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/).
*
* THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
************************************************************************************************/
package org.krysalis.jcharts.designer.buttonBar;
import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
/*************************************************************************************
*
* @author Nathaniel Auvil
* @version $Id: RefreshChartButton.java,v 1.1 2003/08/09 17:03:46 nathaniel_auvil Exp $
************************************************************************************/
public class RefreshChartButton extends JButton implements ActionListener
{
private ButtonPanel buttonPanel;
/*********************************************************************************
*
* @param buttonPanel
********************************************************************************/
public RefreshChartButton( ButtonPanel buttonPanel )
{
super( "Refresh Chart" );
this.buttonPanel= buttonPanel;
super.addActionListener( this );
}
public void actionPerformed( ActionEvent e )
{
this.buttonPanel.getLowerHalfPanel().getDesigner().refreshChart();
}
}
|
|
From: <nat...@us...> - 2003-08-09 17:03:35
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/buttonBar In directory sc8-pr-cvs1:/tmp/cvs-serv1337/buttonBar Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/designer/buttonBar added to the repository |