Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jplot
Class StyleChooser  view StyleChooser download StyleChooser.java

java.lang.Object
  extended byjplot.StyleChooser

public class StyleChooser
extends java.lang.Object

StyleChooser is a class which enables the user to set the drawing style. It must be called with a DataArray object, which contains the initial drawing style. This class also provides the data drawing style chooser, an advanced specific purpose chooser which allows to select a line- and/or point drawing style, a plotting style, colors etc.


Field Summary
private  javax.swing.JTextField additioner
           
private  javax.swing.JButton b_endColor
           
private  javax.swing.JButton b_fillColor
           
private  javax.swing.JButton b_startColor
           
private  SmallToggleButton b1
           
private  SmallToggleButton b2
           
private  SmallToggleButton b3
           
private  SmallToggleButton b4
           
private  javax.swing.JCheckBox cb_hide
           
private  javax.swing.JCheckBox cb_show
           
private  javax.swing.JDialog chooser
           
private  javax.swing.JPanel chooserPanel
           
private  ColorPanel colorPanel
           
private  DashPanel dashPanel
           
private  javax.swing.JTextField divider
           
private  SmallColorPreview endColorPreview
           
private  SmallColorPreview fillColorPreview
           
private  javax.swing.ImageIcon icon1
           
private  javax.swing.ImageIcon icon2
           
private  javax.swing.ImageIcon icon3
           
private  boolean isGlobal
           
private  JPlot jplot
           
private  javax.swing.JTextField legendName
           
private  LineStyle lineStyle
           
private  LinePars lp
           
private  PointPanel pointPanel
           
private  ColorPanel popupColorPanel
           
private  javax.swing.JRadioButton rb_slideColor
           
private  SmallColorPreview startColorPreview
           
private  java.lang.String title
           
 
Constructor Summary
StyleChooser(JPlot jp, java.lang.String title, boolean global)
          Principal constructor.
StyleChooser(JPlot jp, java.lang.String title, LinePars lp)
          Constructor.
StyleChooser(JPlot jp, java.lang.String title, LinePars lp, boolean global)
          Principal constructor.
 
Method Summary
private  javax.swing.JCheckBox createCheckBox(java.lang.String s, boolean b)
           
private  void getChooserPanel()
           
private  javax.swing.JLabel makeLabel(java.lang.String txt)
           
private  void refresh()
           
private  void setGraphStyles(int type)
           
 LinePars show(int x, int y, LinePars initLinePars)
          Return a modal JDialog with a customized linestyle chooser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lp

private LinePars lp

lineStyle

private LineStyle lineStyle

chooser

private javax.swing.JDialog chooser

b1

private SmallToggleButton b1

b2

private SmallToggleButton b2

b3

private SmallToggleButton b3

b4

private SmallToggleButton b4

icon1

private javax.swing.ImageIcon icon1

icon2

private javax.swing.ImageIcon icon2

icon3

private javax.swing.ImageIcon icon3

dashPanel

private DashPanel dashPanel

pointPanel

private PointPanel pointPanel

colorPanel

private ColorPanel colorPanel

popupColorPanel

private ColorPanel popupColorPanel

chooserPanel

private javax.swing.JPanel chooserPanel

startColorPreview

private SmallColorPreview startColorPreview

endColorPreview

private SmallColorPreview endColorPreview

fillColorPreview

private SmallColorPreview fillColorPreview

b_startColor

private javax.swing.JButton b_startColor

b_endColor

private javax.swing.JButton b_endColor

b_fillColor

private javax.swing.JButton b_fillColor

rb_slideColor

private javax.swing.JRadioButton rb_slideColor

cb_show

private javax.swing.JCheckBox cb_show

cb_hide

private javax.swing.JCheckBox cb_hide

legendName

private javax.swing.JTextField legendName

divider

private javax.swing.JTextField divider

additioner

private javax.swing.JTextField additioner

jplot

private JPlot jplot

title

private java.lang.String title

isGlobal

private boolean isGlobal
Constructor Detail

StyleChooser

public StyleChooser(JPlot jp,
                    java.lang.String title,
                    LinePars lp,
                    boolean global)
Principal constructor.


StyleChooser

public StyleChooser(JPlot jp,
                    java.lang.String title,
                    LinePars lp)
Constructor.


StyleChooser

public StyleChooser(JPlot jp,
                    java.lang.String title,
                    boolean global)
Principal constructor. The argument is a DataArray object, which contains the drawing styles. Always built as a local chooser.

Method Detail

getChooserPanel

private void getChooserPanel()

makeLabel

private javax.swing.JLabel makeLabel(java.lang.String txt)

createCheckBox

private javax.swing.JCheckBox createCheckBox(java.lang.String s,
                                             boolean b)

setGraphStyles

private void setGraphStyles(int type)

refresh

private void refresh()

show

public LinePars show(int x,
                     int y,
                     LinePars initLinePars)
Return a modal JDialog with a customized linestyle chooser. The panel includes choices for dashes, pointstyles and colors.