jplot
Class StyleChooser

java.lang.Object
jplot.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
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.