japlot.jaxodraw
Class JaxoColorChooser
- java.lang.Object
-
- japlot.jaxodraw.JaxoColorChooser
-
public class JaxoColorChooser extends java.lang.ObjectThis class allows to choose a color from a menu. The colors presenteed are those available in the colrdvi LaTex package, plus a set of gray scales.
-
-
Constructor Summary
Constructors Constructor and Description JaxoColorChooser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.Colorcolor(java.awt.Color color, boolean fCol)Brings up a color chooser menu to select the color of the specified JaObject.java.awt.Colorcolor(JaObject selectedObject, boolean fCol)Brings up a color chooser menu to select the color of the specified JaObject.
-
-
-
Method Detail
-
color
public final java.awt.Color color(JaObject selectedObject, boolean fCol)
Brings up a color chooser menu to select the color of the specified JaObject.- Parameters:
fCol- True if the color to be chosen is a fill color, false otherwise.selectedObject- The JaObject whose color is to be chosen.- Returns:
- The chosen color if the OK option is selected, if the CANCEL option is selected, the color of the selectedObject.
-
color
public final java.awt.Color color(java.awt.Color color, boolean fCol)Brings up a color chooser menu to select the color of the specified JaObject.- Parameters:
fCol- True if the color to be chosen is a fill color, false otherwise.color- The color to be returned if the CANCEL option is chosen in the color chooser dialog.- Returns:
- The chosen color if the OK option is selected, the color color, if the CANCEL option is selected.
-
-
DMelt 3.0 © DataMelt by jWork.ORG