EMMA Coverage Report (generated Wed Feb 13 07:49:24 ICT 2008)
[all classes][net.sourceforge.hiveboard.docking]

COVERAGE SUMMARY FOR SOURCE FILE [HiveBoardViewport.java]

nameclass, %method, %block, %line, %
HiveBoardViewport.java100% (1/1)100% (3/3)100% (22/22)100% (7/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class HiveBoardViewport100% (1/1)100% (3/3)100% (22/22)100% (7/7)
<static initializer> 100% (1/1)100% (6/6)100% (1/1)
HiveBoardViewport (): void 100% (1/1)100% (7/7)100% (3/3)
createTabbedPane (): JTabbedPane 100% (1/1)100% (9/9)100% (3/3)

1//  Copyright 2004-2007 Jean-Francois Poilpret
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14 
15package net.sourceforge.hiveboard.docking;
16 
17import javax.swing.JTabbedPane;
18 
19import org.flexdock.docking.defaults.BorderManager;
20import org.flexdock.docking.defaults.StandardBorderManager;
21import org.jvnet.substance.SubstanceLookAndFeel;
22import org.jvnet.substance.utils.SubstanceConstants.TabContentPaneBorderKind;
23 
24import net.sourceforge.hiveboard.view.DrawingAreaHolder;
25import net.sourceforge.hivegui.docking.EmptyableViewport;
26 
27public class HiveBoardViewport extends EmptyableViewport
28{
29        public HiveBoardViewport()
30        {
31                super(DrawingAreaHolder.class);
32                setBorderManager(_borderManager);
33        }
34 
35        @Override protected JTabbedPane createTabbedPane()
36        {
37                JTabbedPane pane = super.createTabbedPane();
38                pane.putClientProperty(        SubstanceLookAndFeel.TABBED_PANE_CONTENT_BORDER_KIND,
39                                               TabContentPaneBorderKind.SINGLE_PLACEMENT);
40                return pane;
41        }
42 
43        static private final BorderManager        _borderManager = new StandardBorderManager(null);
44}

[all classes][net.sourceforge.hiveboard.docking]
EMMA 2.0.5312 (C) Vladimir Roubtsov