diff options
author | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
---|---|---|
committer | upstream source tree <ports@midipix.org> | 2015-03-15 20:14:05 -0400 |
commit | 554fd8c5195424bdbcabf5de30fdc183aba391bd (patch) | |
tree | 976dc5ab7fddf506dadce60ae936f43f58787092 /libjava/javax/swing/colorchooser | |
download | cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2 cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz |
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig;
imported gcc-4.6.4 source tree from verified upstream tarball.
downloading a git-generated archive based on the 'upstream' tag
should provide you with a source tree that is binary identical
to the one extracted from the above tarball.
if you have obtained the source via the command 'git clone',
however, do note that line-endings of files in your working
directory might differ from line-endings of the respective
files in the upstream repository.
Diffstat (limited to 'libjava/javax/swing/colorchooser')
23 files changed, 1276 insertions, 0 deletions
diff --git a/libjava/javax/swing/colorchooser/AbstractColorChooserPanel.h b/libjava/javax/swing/colorchooser/AbstractColorChooserPanel.h new file mode 100644 index 000000000..99a4e743f --- /dev/null +++ b/libjava/javax/swing/colorchooser/AbstractColorChooserPanel.h @@ -0,0 +1,63 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_AbstractColorChooserPanel__ +#define __javax_swing_colorchooser_AbstractColorChooserPanel__ + +#pragma interface + +#include <javax/swing/JPanel.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Color; + class Graphics; + } + } + namespace javax + { + namespace swing + { + class Icon; + class JColorChooser; + namespace colorchooser + { + class AbstractColorChooserPanel; + class ColorSelectionModel; + } + } + } +} + +class javax::swing::colorchooser::AbstractColorChooserPanel : public ::javax::swing::JPanel +{ + +public: + AbstractColorChooserPanel(); + virtual ::java::lang::String * getDisplayName() = 0; + virtual jint getMnemonic(); + virtual jint getDisplayedMnemonicIndex(); + virtual void updateChooser() = 0; +public: // actually protected + virtual void buildChooser() = 0; +public: + virtual ::javax::swing::Icon * getSmallDisplayIcon() = 0; + virtual ::javax::swing::Icon * getLargeDisplayIcon() = 0; + virtual void installChooserPanel(::javax::swing::JColorChooser *); + virtual void uninstallChooserPanel(::javax::swing::JColorChooser *); + virtual ::javax::swing::colorchooser::ColorSelectionModel * getColorSelectionModel(); +public: // actually protected + virtual ::java::awt::Color * getColorFromModel(); +public: + virtual void paint(::java::awt::Graphics *); +private: + static const jlong serialVersionUID = -977469671210173863LL; + ::javax::swing::JColorChooser * __attribute__((aligned(__alignof__( ::javax::swing::JPanel)))) chooser; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_AbstractColorChooserPanel__ diff --git a/libjava/javax/swing/colorchooser/ColorChooserComponentFactory.h b/libjava/javax/swing/colorchooser/ColorChooserComponentFactory.h new file mode 100644 index 000000000..495a5d14d --- /dev/null +++ b/libjava/javax/swing/colorchooser/ColorChooserComponentFactory.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_ColorChooserComponentFactory__ +#define __javax_swing_colorchooser_ColorChooserComponentFactory__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace javax + { + namespace swing + { + class JComponent; + namespace colorchooser + { + class AbstractColorChooserPanel; + class ColorChooserComponentFactory; + } + } + } +} + +class javax::swing::colorchooser::ColorChooserComponentFactory : public ::java::lang::Object +{ + + ColorChooserComponentFactory(); +public: + static JArray< ::javax::swing::colorchooser::AbstractColorChooserPanel * > * getDefaultChooserPanels(); + static ::javax::swing::JComponent * getPreviewPanel(); + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_ColorChooserComponentFactory__ diff --git a/libjava/javax/swing/colorchooser/ColorSelectionModel.h b/libjava/javax/swing/colorchooser/ColorSelectionModel.h new file mode 100644 index 000000000..93bdab493 --- /dev/null +++ b/libjava/javax/swing/colorchooser/ColorSelectionModel.h @@ -0,0 +1,46 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_ColorSelectionModel__ +#define __javax_swing_colorchooser_ColorSelectionModel__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Color; + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class ColorSelectionModel; + } + namespace event + { + class ChangeListener; + } + } + } +} + +class javax::swing::colorchooser::ColorSelectionModel : public ::java::lang::Object +{ + +public: + virtual ::java::awt::Color * getSelectedColor() = 0; + virtual void setSelectedColor(::java::awt::Color *) = 0; + virtual void addChangeListener(::javax::swing::event::ChangeListener *) = 0; + virtual void removeChangeListener(::javax::swing::event::ChangeListener *) = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __javax_swing_colorchooser_ColorSelectionModel__ diff --git a/libjava/javax/swing/colorchooser/DefaultColorSelectionModel.h b/libjava/javax/swing/colorchooser/DefaultColorSelectionModel.h new file mode 100644 index 000000000..52de9a303 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultColorSelectionModel.h @@ -0,0 +1,62 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultColorSelectionModel__ +#define __javax_swing_colorchooser_DefaultColorSelectionModel__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace java + { + namespace awt + { + class Color; + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultColorSelectionModel; + } + namespace event + { + class ChangeEvent; + class ChangeListener; + class EventListenerList; + } + } + } +} + +class javax::swing::colorchooser::DefaultColorSelectionModel : public ::java::lang::Object +{ + +public: + DefaultColorSelectionModel(); + DefaultColorSelectionModel(::java::awt::Color *); + virtual ::java::awt::Color * getSelectedColor(); + virtual void setSelectedColor(::java::awt::Color *); + virtual void addChangeListener(::javax::swing::event::ChangeListener *); + virtual void removeChangeListener(::javax::swing::event::ChangeListener *); + virtual JArray< ::javax::swing::event::ChangeListener * > * getChangeListeners(); +public: // actually protected + virtual void fireStateChanged(); +private: + static const jlong serialVersionUID = -8117143602864778804LL; + ::java::awt::Color * __attribute__((aligned(__alignof__( ::java::lang::Object)))) selectedColor; +public: // actually protected + ::javax::swing::event::ChangeEvent * changeEvent; + ::javax::swing::event::EventListenerList * listenerList; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultColorSelectionModel__ diff --git a/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$1.h b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$1.h new file mode 100644 index 000000000..685ea893a --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$1.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultHSBChooserPanel$1__ +#define __javax_swing_colorchooser_DefaultHSBChooserPanel$1__ + +#pragma interface + +#include <javax/swing/JPanel.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Dimension; + class Graphics; + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultHSBChooserPanel; + class DefaultHSBChooserPanel$1; + } + } + } +} + +class javax::swing::colorchooser::DefaultHSBChooserPanel$1 : public ::javax::swing::JPanel +{ + +public: // actually package-private + DefaultHSBChooserPanel$1(::javax::swing::colorchooser::DefaultHSBChooserPanel *); +public: + virtual ::java::awt::Dimension * getPreferredSize(); + virtual void paint(::java::awt::Graphics *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultHSBChooserPanel * __attribute__((aligned(__alignof__( ::javax::swing::JPanel)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultHSBChooserPanel$1__ diff --git a/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$2.h b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$2.h new file mode 100644 index 000000000..200cee2a9 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$2.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultHSBChooserPanel$2__ +#define __javax_swing_colorchooser_DefaultHSBChooserPanel$2__ + +#pragma interface + +#include <javax/swing/JPanel.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Dimension; + class Graphics; + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultHSBChooserPanel; + class DefaultHSBChooserPanel$2; + } + } + } +} + +class javax::swing::colorchooser::DefaultHSBChooserPanel$2 : public ::javax::swing::JPanel +{ + +public: // actually package-private + DefaultHSBChooserPanel$2(::javax::swing::colorchooser::DefaultHSBChooserPanel *); +public: + virtual ::java::awt::Dimension * getPreferredSize(); + virtual void paint(::java::awt::Graphics *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultHSBChooserPanel * __attribute__((aligned(__alignof__( ::javax::swing::JPanel)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultHSBChooserPanel$2__ diff --git a/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$ImageScrollListener.h b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$ImageScrollListener.h new file mode 100644 index 000000000..fdac4c42f --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$ImageScrollListener.h @@ -0,0 +1,42 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultHSBChooserPanel$ImageScrollListener__ +#define __javax_swing_colorchooser_DefaultHSBChooserPanel$ImageScrollListener__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultHSBChooserPanel; + class DefaultHSBChooserPanel$ImageScrollListener; + } + namespace event + { + class ChangeEvent; + } + } + } +} + +class javax::swing::colorchooser::DefaultHSBChooserPanel$ImageScrollListener : public ::java::lang::Object +{ + +public: // actually package-private + DefaultHSBChooserPanel$ImageScrollListener(::javax::swing::colorchooser::DefaultHSBChooserPanel *); +public: + virtual void stateChanged(::javax::swing::event::ChangeEvent *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultHSBChooserPanel * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultHSBChooserPanel$ImageScrollListener__ diff --git a/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$MainGradientMouseListener.h b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$MainGradientMouseListener.h new file mode 100644 index 000000000..009e2ec84 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$MainGradientMouseListener.h @@ -0,0 +1,56 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultHSBChooserPanel$MainGradientMouseListener__ +#define __javax_swing_colorchooser_DefaultHSBChooserPanel$MainGradientMouseListener__ + +#pragma interface + +#include <java/awt/event/MouseAdapter.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Point; + namespace event + { + class MouseEvent; + } + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultHSBChooserPanel; + class DefaultHSBChooserPanel$MainGradientMouseListener; + } + } + } +} + +class javax::swing::colorchooser::DefaultHSBChooserPanel$MainGradientMouseListener : public ::java::awt::event::MouseAdapter +{ + +public: // actually package-private + DefaultHSBChooserPanel$MainGradientMouseListener(::javax::swing::colorchooser::DefaultHSBChooserPanel *); +public: + virtual void mousePressed(::java::awt::event::MouseEvent *); + virtual void mouseDragged(::java::awt::event::MouseEvent *); + virtual void mouseMoved(::java::awt::event::MouseEvent *); +private: + void update(::java::awt::Point *); + void updateH(::java::awt::Point *); + void updateS(::java::awt::Point *); + void updateB(::java::awt::Point *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultHSBChooserPanel * __attribute__((aligned(__alignof__( ::java::awt::event::MouseAdapter)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultHSBChooserPanel$MainGradientMouseListener__ diff --git a/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$RadioStateListener.h b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$RadioStateListener.h new file mode 100644 index 000000000..9384d465d --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$RadioStateListener.h @@ -0,0 +1,42 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultHSBChooserPanel$RadioStateListener__ +#define __javax_swing_colorchooser_DefaultHSBChooserPanel$RadioStateListener__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultHSBChooserPanel; + class DefaultHSBChooserPanel$RadioStateListener; + } + namespace event + { + class ChangeEvent; + } + } + } +} + +class javax::swing::colorchooser::DefaultHSBChooserPanel$RadioStateListener : public ::java::lang::Object +{ + +public: // actually package-private + DefaultHSBChooserPanel$RadioStateListener(::javax::swing::colorchooser::DefaultHSBChooserPanel *); +public: + virtual void stateChanged(::javax::swing::event::ChangeEvent *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultHSBChooserPanel * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultHSBChooserPanel$RadioStateListener__ diff --git a/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$SliderChangeListener.h b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$SliderChangeListener.h new file mode 100644 index 000000000..22bb90d55 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel$SliderChangeListener.h @@ -0,0 +1,42 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultHSBChooserPanel$SliderChangeListener__ +#define __javax_swing_colorchooser_DefaultHSBChooserPanel$SliderChangeListener__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultHSBChooserPanel; + class DefaultHSBChooserPanel$SliderChangeListener; + } + namespace event + { + class ChangeEvent; + } + } + } +} + +class javax::swing::colorchooser::DefaultHSBChooserPanel$SliderChangeListener : public ::java::lang::Object +{ + +public: // actually package-private + DefaultHSBChooserPanel$SliderChangeListener(::javax::swing::colorchooser::DefaultHSBChooserPanel *); +public: + virtual void stateChanged(::javax::swing::event::ChangeEvent *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultHSBChooserPanel * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultHSBChooserPanel$SliderChangeListener__ diff --git a/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel.h b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel.h new file mode 100644 index 000000000..f6fc5d950 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultHSBChooserPanel.h @@ -0,0 +1,116 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultHSBChooserPanel__ +#define __javax_swing_colorchooser_DefaultHSBChooserPanel__ + +#pragma interface + +#include <javax/swing/colorchooser/AbstractColorChooserPanel.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace java + { + namespace awt + { + class Container; + class Graphics; + class Image; + class Point; + } + } + namespace javax + { + namespace swing + { + class Icon; + class JColorChooser; + class JLabel; + class JPanel; + class JRadioButton; + class JSlider; + class JSpinner; + namespace colorchooser + { + class DefaultHSBChooserPanel; + } + } + } +} + +class javax::swing::colorchooser::DefaultHSBChooserPanel : public ::javax::swing::colorchooser::AbstractColorChooserPanel +{ + +public: // actually package-private + DefaultHSBChooserPanel(); +public: + virtual ::java::lang::String * getDisplayName(); + virtual void updateChooser(); +public: // actually protected + virtual void buildChooser(); +public: + virtual void uninstallChooserPanel(::javax::swing::JColorChooser *); +private: + ::java::awt::Container * buildRightPanel(); +public: + virtual ::javax::swing::Icon * getSmallDisplayIcon(); + virtual ::javax::swing::Icon * getLargeDisplayIcon(); + virtual void paint(::java::awt::Graphics *); +private: + void updateHLockImage(); + void updateBLockImage(); + void updateSLockImage(); +public: // actually package-private + virtual void updateImage(); +private: + void updateTextFields(); +public: // actually package-private + virtual void updateSlider(); + virtual void updateTrack(); +private: + void updateHTrack(); + void updateSTrack(); + void updateBTrack(); + JArray< jfloat > * getHSBValues(); +public: // actually package-private + ::java::awt::Image * __attribute__((aligned(__alignof__( ::javax::swing::colorchooser::AbstractColorChooserPanel)))) gradientImage; +private: + ::javax::swing::JPanel * gradientPanel; +public: // actually package-private + ::java::awt::Image * trackImage; +private: + ::javax::swing::JPanel * trackPanel; +public: // actually package-private + ::javax::swing::JSlider * slider; + ::javax::swing::JRadioButton * hRadio; + ::javax::swing::JRadioButton * sRadio; + ::javax::swing::JRadioButton * bRadio; + ::javax::swing::JSpinner * hSpinner; + ::javax::swing::JSpinner * sSpinner; + ::javax::swing::JSpinner * bSpinner; +private: + static const jint imgWidth = 200; + static const jint imgHeight = 200; + static const jint trackWidth = 30; + static ::javax::swing::JLabel * R; + static ::javax::swing::JLabel * G; + static ::javax::swing::JLabel * B; + ::javax::swing::JLabel * rFull; + ::javax::swing::JLabel * gFull; + ::javax::swing::JLabel * bFull; +public: // actually package-private + ::java::awt::Point * gradientPoint; + jboolean internalChange; + jboolean spinnerTrigger; + jint locked; + static const jint HLOCKED = 0; + static const jint SLOCKED = 1; + static const jint BLOCKED = 2; + jboolean handlingMouse; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultHSBChooserPanel__ diff --git a/libjava/javax/swing/colorchooser/DefaultPreviewPanel$PreviewBorder.h b/libjava/javax/swing/colorchooser/DefaultPreviewPanel$PreviewBorder.h new file mode 100644 index 000000000..f6b099792 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultPreviewPanel$PreviewBorder.h @@ -0,0 +1,53 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultPreviewPanel$PreviewBorder__ +#define __javax_swing_colorchooser_DefaultPreviewPanel$PreviewBorder__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Component; + class Graphics; + class Insets; + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultPreviewPanel; + class DefaultPreviewPanel$PreviewBorder; + } + } + } +} + +class javax::swing::colorchooser::DefaultPreviewPanel$PreviewBorder : public ::java::lang::Object +{ + +public: // actually package-private + DefaultPreviewPanel$PreviewBorder(::javax::swing::colorchooser::DefaultPreviewPanel *); +public: + virtual ::java::awt::Insets * getBorderInsets(::java::awt::Component *); + virtual jboolean isBorderOpaque(); + virtual void paintBorder(::java::awt::Component *, ::java::awt::Graphics *, jint, jint, jint, jint); +private: + static const jint edge = 20; + static const jint lead = 5; + static const jint gap = 3; +public: // actually package-private + ::javax::swing::colorchooser::DefaultPreviewPanel * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultPreviewPanel$PreviewBorder__ diff --git a/libjava/javax/swing/colorchooser/DefaultPreviewPanel.h b/libjava/javax/swing/colorchooser/DefaultPreviewPanel.h new file mode 100644 index 000000000..7348bd53b --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultPreviewPanel.h @@ -0,0 +1,55 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultPreviewPanel__ +#define __javax_swing_colorchooser_DefaultPreviewPanel__ + +#pragma interface + +#include <javax/swing/JPanel.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Color; + class Dimension; + class Graphics; + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultPreviewPanel; + } + } + } +} + +class javax::swing::colorchooser::DefaultPreviewPanel : public ::javax::swing::JPanel +{ + +public: // actually package-private + DefaultPreviewPanel(); +public: + virtual void paint(::java::awt::Graphics *); +private: + void paintSquare(::java::awt::Graphics *, jint, jint, ::java::awt::Color *, ::java::awt::Color *, ::java::awt::Color *, jint, jint, jint); +public: + virtual ::java::awt::Dimension * getPreferredSize(); +private: + static jint largeGap; + static jint smallGap; + static jint squareSize; + static jint textPadding; + static jint rightSideRectWidth; + static ::java::lang::String * sample; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultPreviewPanel__ diff --git a/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel$SliderHandler.h b/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel$SliderHandler.h new file mode 100644 index 000000000..1026b6d1a --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel$SliderHandler.h @@ -0,0 +1,42 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultRGBChooserPanel$SliderHandler__ +#define __javax_swing_colorchooser_DefaultRGBChooserPanel$SliderHandler__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultRGBChooserPanel; + class DefaultRGBChooserPanel$SliderHandler; + } + namespace event + { + class ChangeEvent; + } + } + } +} + +class javax::swing::colorchooser::DefaultRGBChooserPanel$SliderHandler : public ::java::lang::Object +{ + +public: // actually package-private + DefaultRGBChooserPanel$SliderHandler(::javax::swing::colorchooser::DefaultRGBChooserPanel *); +public: + virtual void stateChanged(::javax::swing::event::ChangeEvent *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultRGBChooserPanel * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultRGBChooserPanel$SliderHandler__ diff --git a/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel$SpinnerHandler.h b/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel$SpinnerHandler.h new file mode 100644 index 000000000..85ba288ce --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel$SpinnerHandler.h @@ -0,0 +1,42 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultRGBChooserPanel$SpinnerHandler__ +#define __javax_swing_colorchooser_DefaultRGBChooserPanel$SpinnerHandler__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultRGBChooserPanel; + class DefaultRGBChooserPanel$SpinnerHandler; + } + namespace event + { + class ChangeEvent; + } + } + } +} + +class javax::swing::colorchooser::DefaultRGBChooserPanel$SpinnerHandler : public ::java::lang::Object +{ + +public: // actually package-private + DefaultRGBChooserPanel$SpinnerHandler(::javax::swing::colorchooser::DefaultRGBChooserPanel *); +public: + virtual void stateChanged(::javax::swing::event::ChangeEvent *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultRGBChooserPanel * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultRGBChooserPanel$SpinnerHandler__ diff --git a/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel.h b/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel.h new file mode 100644 index 000000000..c9cc7afc3 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel.h @@ -0,0 +1,81 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultRGBChooserPanel__ +#define __javax_swing_colorchooser_DefaultRGBChooserPanel__ + +#pragma interface + +#include <javax/swing/colorchooser/AbstractColorChooserPanel.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Graphics; + } + } + namespace javax + { + namespace swing + { + class Icon; + class JColorChooser; + class JLabel; + class JSlider; + class JSpinner; + namespace colorchooser + { + class DefaultRGBChooserPanel; + } + namespace event + { + class ChangeListener; + } + } + } +} + +class javax::swing::colorchooser::DefaultRGBChooserPanel : public ::javax::swing::colorchooser::AbstractColorChooserPanel +{ + +public: + DefaultRGBChooserPanel(); + virtual ::java::lang::String * getDisplayName(); + virtual void updateChooser(); +public: // actually protected + virtual void buildChooser(); +public: + virtual void uninstallChooserPanel(::javax::swing::JColorChooser *); +private: + void uninstallListeners(); + void installListeners(); +public: + virtual ::javax::swing::Icon * getSmallDisplayIcon(); + virtual ::javax::swing::Icon * getLargeDisplayIcon(); + virtual void paint(::java::awt::Graphics *); +public: // actually package-private + jboolean __attribute__((aligned(__alignof__( ::javax::swing::colorchooser::AbstractColorChooserPanel)))) spinnerChange; + jboolean sliderChange; + jboolean updateChange; +private: + ::javax::swing::event::ChangeListener * colorChanger; + ::javax::swing::event::ChangeListener * spinnerHandler; +public: // actually package-private + ::javax::swing::JSlider * R; + ::javax::swing::JSlider * G; + ::javax::swing::JSlider * B; +private: + ::javax::swing::JLabel * RLabel; + ::javax::swing::JLabel * GLabel; + ::javax::swing::JLabel * BLabel; +public: // actually package-private + ::javax::swing::JSpinner * RSpinner; + ::javax::swing::JSpinner * GSpinner; + ::javax::swing::JSpinner * BSpinner; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultRGBChooserPanel__ diff --git a/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$MainPanelLayout.h b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$MainPanelLayout.h new file mode 100644 index 000000000..411933085 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$MainPanelLayout.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultSwatchChooserPanel$MainPanelLayout__ +#define __javax_swing_colorchooser_DefaultSwatchChooserPanel$MainPanelLayout__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Component; + class Container; + class Dimension; + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultSwatchChooserPanel$MainPanelLayout; + } + } + } +} + +class javax::swing::colorchooser::DefaultSwatchChooserPanel$MainPanelLayout : public ::java::lang::Object +{ + +public: // actually package-private + DefaultSwatchChooserPanel$MainPanelLayout(); +public: + virtual void addLayoutComponent(::java::lang::String *, ::java::awt::Component *); + virtual void layoutContainer(::java::awt::Container *); + virtual void removeLayoutComponent(::java::awt::Component *); + virtual ::java::awt::Dimension * minimumLayoutSize(::java::awt::Container *); + virtual ::java::awt::Dimension * preferredLayoutSize(::java::awt::Container *); + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultSwatchChooserPanel$MainPanelLayout__ diff --git a/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$MainSwatchPanel.h b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$MainSwatchPanel.h new file mode 100644 index 000000000..9a33fe149 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$MainSwatchPanel.h @@ -0,0 +1,81 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultSwatchChooserPanel$MainSwatchPanel__ +#define __javax_swing_colorchooser_DefaultSwatchChooserPanel$MainSwatchPanel__ + +#pragma interface + +#include <javax/swing/colorchooser/DefaultSwatchChooserPanel$SwatchPanel.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace java + { + namespace awt + { + class Color; + class Graphics; + namespace event + { + class MouseEvent; + } + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultSwatchChooserPanel$MainSwatchPanel; + } + } + } +} + +class javax::swing::colorchooser::DefaultSwatchChooserPanel$MainSwatchPanel : public ::javax::swing::colorchooser::DefaultSwatchChooserPanel$SwatchPanel +{ + +public: // actually package-private + DefaultSwatchChooserPanel$MainSwatchPanel(); +public: + virtual ::java::awt::Color * getColorForPosition(jint, jint); +public: // actually protected + virtual void initializeColors(); +public: + virtual void paint(::java::awt::Graphics *); + virtual ::java::lang::String * getToolTipText(::java::awt::event::MouseEvent *); + static ::java::awt::Color * C204255255; + static ::java::awt::Color * C255204204; + static ::java::awt::Color * C204255204; + static ::java::awt::Color * C204204204; + static ::java::awt::Color * C153153255; + static ::java::awt::Color * C051051255; + static ::java::awt::Color * C153000153; + static ::java::awt::Color * C000051051; + static ::java::awt::Color * C051000051; + static ::java::awt::Color * C051051000; + static ::java::awt::Color * C102102000; + static ::java::awt::Color * C153255153; + static ::java::awt::Color * C102255102; + static ::java::awt::Color * C000102102; + static ::java::awt::Color * C102000102; + static ::java::awt::Color * C000153153; + static ::java::awt::Color * C153153000; + static ::java::awt::Color * C204204000; + static ::java::awt::Color * C204000204; + static ::java::awt::Color * C000204204; + static ::java::awt::Color * C051255051; + static ::java::awt::Color * C255051051; + static ::java::awt::Color * C255102102; + static ::java::awt::Color * C102102255; + static ::java::awt::Color * C255153153; +public: // actually package-private + static JArray< ::java::awt::Color * > * colors; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultSwatchChooserPanel$MainSwatchPanel__ diff --git a/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$MouseHandler.h b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$MouseHandler.h new file mode 100644 index 000000000..b1de67fc4 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$MouseHandler.h @@ -0,0 +1,48 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultSwatchChooserPanel$MouseHandler__ +#define __javax_swing_colorchooser_DefaultSwatchChooserPanel$MouseHandler__ + +#pragma interface + +#include <java/awt/event/MouseAdapter.h> +extern "Java" +{ + namespace java + { + namespace awt + { + namespace event + { + class MouseEvent; + } + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultSwatchChooserPanel; + class DefaultSwatchChooserPanel$MouseHandler; + } + } + } +} + +class javax::swing::colorchooser::DefaultSwatchChooserPanel$MouseHandler : public ::java::awt::event::MouseAdapter +{ + +public: // actually package-private + DefaultSwatchChooserPanel$MouseHandler(::javax::swing::colorchooser::DefaultSwatchChooserPanel *); +public: + virtual void mousePressed(::java::awt::event::MouseEvent *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultSwatchChooserPanel * __attribute__((aligned(__alignof__( ::java::awt::event::MouseAdapter)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultSwatchChooserPanel$MouseHandler__ diff --git a/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$RecentPanelLayout.h b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$RecentPanelLayout.h new file mode 100644 index 000000000..d4ce35b18 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$RecentPanelLayout.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultSwatchChooserPanel$RecentPanelLayout__ +#define __javax_swing_colorchooser_DefaultSwatchChooserPanel$RecentPanelLayout__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Component; + class Container; + class Dimension; + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultSwatchChooserPanel$RecentPanelLayout; + } + } + } +} + +class javax::swing::colorchooser::DefaultSwatchChooserPanel$RecentPanelLayout : public ::java::lang::Object +{ + +public: // actually package-private + DefaultSwatchChooserPanel$RecentPanelLayout(); +public: + virtual void addLayoutComponent(::java::lang::String *, ::java::awt::Component *); + virtual void layoutContainer(::java::awt::Container *); + virtual ::java::awt::Dimension * minimumLayoutSize(::java::awt::Container *); + virtual ::java::awt::Dimension * preferredLayoutSize(::java::awt::Container *); + virtual void removeLayoutComponent(::java::awt::Component *); + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultSwatchChooserPanel$RecentPanelLayout__ diff --git a/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$RecentSwatchPanel.h b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$RecentSwatchPanel.h new file mode 100644 index 000000000..bbb78b807 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$RecentSwatchPanel.h @@ -0,0 +1,64 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultSwatchChooserPanel$RecentSwatchPanel__ +#define __javax_swing_colorchooser_DefaultSwatchChooserPanel$RecentSwatchPanel__ + +#pragma interface + +#include <javax/swing/colorchooser/DefaultSwatchChooserPanel$SwatchPanel.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace java + { + namespace awt + { + class Color; + class Graphics; + namespace event + { + class MouseEvent; + } + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultSwatchChooserPanel$RecentSwatchPanel; + } + } + } +} + +class javax::swing::colorchooser::DefaultSwatchChooserPanel$RecentSwatchPanel : public ::javax::swing::colorchooser::DefaultSwatchChooserPanel$SwatchPanel +{ + +public: // actually package-private + DefaultSwatchChooserPanel$RecentSwatchPanel(); +public: + virtual ::java::awt::Color * getColorForPosition(jint, jint); +public: // actually protected + virtual void initializeColors(); +private: + jint getIndexForCell(jint, jint); +public: // actually package-private + virtual void addColorToQueue(::java::awt::Color *); +public: + virtual void paint(::java::awt::Graphics *); + virtual ::java::lang::String * getToolTipText(::java::awt::event::MouseEvent *); +public: // actually package-private + JArray< ::java::awt::Color * > * __attribute__((aligned(__alignof__( ::javax::swing::colorchooser::DefaultSwatchChooserPanel$SwatchPanel)))) colors; +public: + static ::java::awt::Color * defaultColor; +public: // actually package-private + jint start; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultSwatchChooserPanel$RecentSwatchPanel__ diff --git a/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$SwatchPanel.h b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$SwatchPanel.h new file mode 100644 index 000000000..39c053926 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel$SwatchPanel.h @@ -0,0 +1,51 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultSwatchChooserPanel$SwatchPanel__ +#define __javax_swing_colorchooser_DefaultSwatchChooserPanel$SwatchPanel__ + +#pragma interface + +#include <javax/swing/JPanel.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Color; + class Dimension; + } + } + namespace javax + { + namespace swing + { + namespace colorchooser + { + class DefaultSwatchChooserPanel$SwatchPanel; + } + } + } +} + +class javax::swing::colorchooser::DefaultSwatchChooserPanel$SwatchPanel : public ::javax::swing::JPanel +{ + +public: // actually package-private + DefaultSwatchChooserPanel$SwatchPanel(); +public: + virtual ::java::awt::Dimension * getPreferredSize(); + virtual ::java::awt::Color * getColorForPosition(jint, jint) = 0; +public: // actually protected + virtual void initializeColors() = 0; + jint __attribute__((aligned(__alignof__( ::javax::swing::JPanel)))) cellWidth; + jint cellHeight; + jint gap; + jint numRows; + jint numCols; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultSwatchChooserPanel$SwatchPanel__ diff --git a/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel.h b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel.h new file mode 100644 index 000000000..8db2fc664 --- /dev/null +++ b/libjava/javax/swing/colorchooser/DefaultSwatchChooserPanel.h @@ -0,0 +1,64 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_colorchooser_DefaultSwatchChooserPanel__ +#define __javax_swing_colorchooser_DefaultSwatchChooserPanel__ + +#pragma interface + +#include <javax/swing/colorchooser/AbstractColorChooserPanel.h> +extern "Java" +{ + namespace java + { + namespace awt + { + class Graphics; + namespace event + { + class MouseEvent; + class MouseListener; + } + } + } + namespace javax + { + namespace swing + { + class Icon; + class JColorChooser; + namespace colorchooser + { + class DefaultSwatchChooserPanel; + class DefaultSwatchChooserPanel$MainSwatchPanel; + class DefaultSwatchChooserPanel$RecentSwatchPanel; + } + } + } +} + +class javax::swing::colorchooser::DefaultSwatchChooserPanel : public ::javax::swing::colorchooser::AbstractColorChooserPanel +{ + +public: // actually package-private + DefaultSwatchChooserPanel(); +public: + virtual void updateChooser(); +public: // actually protected + virtual void buildChooser(); +public: + virtual void uninstallChooserPanel(::javax::swing::JColorChooser *); + virtual ::java::lang::String * getDisplayName(); + virtual ::javax::swing::Icon * getSmallDisplayIcon(); + virtual ::javax::swing::Icon * getLargeDisplayIcon(); + virtual void paint(::java::awt::Graphics *); + virtual ::java::lang::String * getToolTipText(::java::awt::event::MouseEvent *); +public: // actually package-private + ::javax::swing::colorchooser::DefaultSwatchChooserPanel$MainSwatchPanel * __attribute__((aligned(__alignof__( ::javax::swing::colorchooser::AbstractColorChooserPanel)))) mainPalette; + ::javax::swing::colorchooser::DefaultSwatchChooserPanel$RecentSwatchPanel * recentPalette; + ::java::awt::event::MouseListener * mouseHandler; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_colorchooser_DefaultSwatchChooserPanel__ |