00001 #pragma ident "$Id: BorderLayout.hpp 1644 2009-01-27 19:26:14Z ckiesch $"
00002
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef VDRAW_BORDERLAYOUT_H
00029 #define VDRAW_BORDERLAYOUT_H
00030
00031 #include <vector>
00032
00033 #include "GraphicsConstants.hpp"
00034 #include "Frame.hpp"
00035 #include "Layout.hpp"
00036
00037 namespace vdraw
00038 {
00041
00045 class BorderLayout : public Layout
00046 {
00047
00048 public:
00049
00055 BorderLayout(const Frame& frame, double marginSize );
00056
00063 BorderLayout(const Frame& frame,
00064 double xMarginSize, double yMarginSize );
00065
00074 BorderLayout(const Frame& frame,
00075 double leftMargin, double topMargin,
00076 double rightMargin, double bottomMargin);
00077
00078 virtual int getFrameCount(void)
00079 {return (1);}
00080
00081 virtual Frame getFrame(int fnum)
00082 {return targetList[0];}
00083
00084 protected:
00085
00087 std::vector<Frame> targetList;
00088 };
00089
00091
00092 }
00093
00094 #endif