Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
904 bytes
|
Line | |
---|
1 | package com.framsticks.visualization; |
---|
2 | |
---|
3 | import com.framsticks.gui.TreePanel; |
---|
4 | import com.framsticks.model.Model; |
---|
5 | import com.framsticks.params.Access; |
---|
6 | |
---|
7 | import javax.swing.*; |
---|
8 | import java.awt.*; |
---|
9 | |
---|
10 | /** |
---|
11 | * Author: Piotr Śniegowski |
---|
12 | */ |
---|
13 | @SuppressWarnings("serial") |
---|
14 | public class SingleViewPanel extends TreePanel { |
---|
15 | |
---|
16 | Viewer viewer; |
---|
17 | |
---|
18 | public SingleViewPanel(TreePanel.Parameters parameters) { |
---|
19 | super(parameters); |
---|
20 | //viewer = new Viewer(); |
---|
21 | this.setLayout(new BorderLayout()); |
---|
22 | //this.add(viewer.getViewComponent(), BorderLayout.CENTER); |
---|
23 | this.add(new JLabel("test"), BorderLayout.PAGE_START); |
---|
24 | this.add(new ViewerTest(), BorderLayout.CENTER); |
---|
25 | } |
---|
26 | |
---|
27 | @Override |
---|
28 | public void pullValuesFromLocalToUser(Access access) { |
---|
29 | Object object = access.getSelected(); |
---|
30 | if (!(object instanceof Model)) { |
---|
31 | return; |
---|
32 | } |
---|
33 | // Model model = (Model)object; |
---|
34 | |
---|
35 | |
---|
36 | } |
---|
37 | |
---|
38 | @Override |
---|
39 | public String getTitle() { |
---|
40 | return "3D view"; |
---|
41 | } |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.