Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
4e4bfb3e
Commit
4e4bfb3e
authored
Jan 30, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapted to java 1.5
parent
a7244567
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
38 deletions
+36
-38
java/jpwr/jop/src/RatioLayout.java
java/jpwr/jop/src/RatioLayout.java
+4
-6
java/jpwr/jop/src/XttRefObj.java
java/jpwr/jop/src/XttRefObj.java
+26
-26
java/jpwr/jop/src/XttTree.java
java/jpwr/jop/src/XttTree.java
+6
-6
No files found.
java/jpwr/jop/src/RatioLayout.java
View file @
4e4bfb3e
/*
* Proview $Id: RatioLayout.java,v 1.
5 2006-06-16 05:09:38
claes Exp $
* Proview $Id: RatioLayout.java,v 1.
6 2007-01-30 06:53:14
claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -74,10 +74,9 @@ public class RatioLayout implements LayoutManager2 {
}
//Reset the Layout
public
void
invalidateLayout
(
Container
target
){
//ratios = new Vector<Proportion>(1);
//components = new Vector<Component>(1);
ratios
=
new
Vector
(
1
);
components
=
new
Vector
(
1
);
// This is called more frequently in 1.5...
// ratios = new Vector(1);
//components = new Vector(1);
}
...
...
@@ -99,7 +98,6 @@ public class RatioLayout implements LayoutManager2 {
}
public
void
layoutContainer
(
Container
target
)
{
Insets
insets
=
target
.
getInsets
();
int
ncomponents
=
target
.
getComponentCount
();
...
...
java/jpwr/jop/src/XttRefObj.java
View file @
4e4bfb3e
/*
* Proview $Id: XttRefObj.java,v 1.
2 2005-09-01 14:57:51
claes Exp $
* Proview $Id: XttRefObj.java,v 1.
3 2007-01-30 06:53:37
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -30,17 +30,17 @@ import jpwr.rt.*;
public
class
XttRefObj
extends
DynamicObj
implements
JopDynamic
{
/** Description of the Field */
public
XttObjAttr
objAttr
=
null
;
public
XttObjAttr
objAttr
ibute
=
null
;
//static JopEngine en;
/** Description of the Field */
int
c
lass
id
;
int
cid
;
// String showableClassName = null;
/** Description of the Field */
String
full
N
ame
;
String
full
n
ame
;
/** Description of the Field */
int
index
;
static
boolean
init
D
one
=
false
;
static
boolean
init
d
one
=
false
;
/** Description of the Field */
static
String
[]
AttributeNameArray
=
{
"ActualValue"
,
"ActualValue"
,
...
...
@@ -188,18 +188,18 @@ public class XttRefObj extends DynamicObj implements JopDynamic
/**
* Constructor for the XttRefObj object
*
*@param full
N
ame Description of the Parameter
*@param full
n
ame Description of the Parameter
*@param en Description of the Parameter
*@param c
lass
id Description of the Parameter
*@param cid Description of the Parameter
*@param treeNode Description of the Parameter
*@param index Description of the Parameter
*/
public
XttRefObj
(
String
full
Name
,
JopEngine
en
,
int
class
id
,
/*String showableClassName,*/
DefaultMutableTreeNode
treeNode
,
int
index
)
public
XttRefObj
(
String
full
name
,
JopEngine
en
,
int
c
id
,
/*String showableClassName,*/
DefaultMutableTreeNode
treeNode
,
int
index
)
{
this
.
index
=
index
;
this
.
full
Name
=
fullN
ame
;
this
.
en
=
en
;
this
.
c
lassid
=
class
id
;
this
.
full
name
=
fulln
ame
;
XttRefObj
.
en
=
en
;
this
.
c
id
=
c
id
;
// this.showableClassName = showableClassName;
if
(
index
<
0
)
{
...
...
@@ -210,14 +210,14 @@ public class XttRefObj extends DynamicObj implements JopDynamic
Logg
.
logg
(
"XttRefObj konstruktor"
,
6
);
if
(
oa
!=
null
)
{
objAttr
=
new
XttObjAttr
(
oa
);
objAttr
.
treeNode
=
treeNode
;
objAttr
.
showName
=
false
;
objAttr
ibute
=
new
XttObjAttr
(
oa
);
objAttr
ibute
.
treeNode
=
treeNode
;
objAttr
ibute
.
showName
=
false
;
en
.
add
(
this
);
}
else
{
Logg
.
logg
(
"Kan ej debugga "
+
full
Name
+
" classid: "
+
class
id
+
" p index "
+
index
,
0
);
Logg
.
logg
(
"Kan ej debugga "
+
full
name
+
" cid: "
+
c
id
+
" p index "
+
index
,
0
);
}
}
...
...
@@ -229,9 +229,9 @@ public class XttRefObj extends DynamicObj implements JopDynamic
*/
public
PwrtRefId
getPwrtRefId
()
{
if
(
objAttr
!=
null
&&
objAttr
.
refObj
!=
null
)
if
(
objAttr
ibute
!=
null
&&
objAttribute
.
refObj
!=
null
)
{
return
objAttr
.
refObj
.
refid
;
return
objAttr
ibute
.
refObj
.
refid
;
}
return
null
;
}
...
...
@@ -248,11 +248,11 @@ public class XttRefObj extends DynamicObj implements JopDynamic
Logg
.
logg
(
"XttRefObj: getXttObjAttr"
,
6
);
String
s
=
null
;
String
suffix
;
suffix
=
this
.
setTypeIdString
(
objAttr
.
type
,
objAttr
.
size
);
s
=
this
.
full
Name
+
"."
+
objAttr
.
name
+
suffix
;
objAttr
.
fullName
=
s
;
suffix
=
this
.
setTypeIdString
(
objAttr
ibute
.
type
,
objAttribute
.
size
);
s
=
this
.
full
name
+
"."
+
objAttribute
.
name
+
suffix
;
objAttr
ibute
.
fullName
=
s
;
Logg
.
logg
(
"XttRefObj: Name "
+
s
,
6
);
return
objAttr
;
return
objAttr
ibute
;
}
...
...
@@ -286,7 +286,7 @@ public class XttRefObj extends DynamicObj implements JopDynamic
Logg
.
logg
(
"XttRefObj: animationOnly"
,
6
);
return
;
}
this
.
setObjectAttributeValue
(
objAttr
);
this
.
setObjectAttributeValue
(
objAttr
ibute
);
}
...
...
@@ -303,9 +303,9 @@ public class XttRefObj extends DynamicObj implements JopDynamic
*/
public
String
toString
()
{
if
(
objAttr
!=
null
)
if
(
objAttr
ibute
!=
null
)
{
return
objAttr
.
toString
();
return
objAttr
ibute
.
toString
();
}
else
{
...
...
@@ -365,14 +365,14 @@ public class XttRefObj extends DynamicObj implements JopDynamic
*/
public
static
void
init
(
JopEngine
en
)
{
if
(
XttRefObj
.
init
D
one
)
if
(
XttRefObj
.
init
d
one
)
return
;
XttRefObj
.
en
=
en
;
for
(
int
i
=
0
;
i
<
TypeClassId
.
length
;
i
++)
{
AttrObj
[
i
]
=
XttRefObj
.
getWantedClassAttribute
(
i
);
}
XttRefObj
.
init
D
one
=
true
;
XttRefObj
.
init
d
one
=
true
;
}
}
...
...
java/jpwr/jop/src/XttTree.java
View file @
4e4bfb3e
/*
* Proview $Id: XttTree.java,v 1.1
2 2006-06-16 05:19:28
claes Exp $
* Proview $Id: XttTree.java,v 1.1
3 2007-01-30 06:53:37
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -246,12 +246,12 @@ public class XttTree extends JPanel
DynamicObj
.
init
(
engine
);
//get the icons that is for the + and - signs to the left of every node
BasicTreeUI
ui
=
(
BasicTreeUI
)
tree
.
getUI
();
BasicTreeUI
t
ui
=
(
BasicTreeUI
)
tree
.
getUI
();
ImageIcon
OpenCloseIcon
=
new
ImageIcon
(
XttOpenCloseIcon
);
ImageIcon
OpenIcon
=
new
ImageIcon
(
XttOpenIcon
);
ImageIcon
CloseIcon
=
new
ImageIcon
(
XttCloseIcon
);
ui
.
setCollapsedIcon
(
OpenIcon
);
ui
.
setExpandedIcon
(
CloseIcon
);
t
ui
.
setCollapsedIcon
(
OpenIcon
);
t
ui
.
setExpandedIcon
(
CloseIcon
);
tree
.
getSelectionModel
().
setSelectionMode
(
TreeSelectionModel
.
SINGLE_TREE_SELECTION
);
...
...
@@ -293,7 +293,7 @@ public class XttTree extends JPanel
xttObj
.
init
(
false
);
if
(
xttObj
.
refObj
!=
null
)
{
xttObj
.
refObj
.
objAttr
.
treeModel
=
this
.
treeModel
;
AttrObj
.
treeModel
=
this
.
treeModel
;
}
rootNode
.
add
(
tNodeRoot
);
if
(
gdhr
.
hasChildren
)
...
...
@@ -1712,7 +1712,7 @@ public class XttTree extends JPanel
obj
.
elements
);
DefaultMutableTreeNode
arrayChildNode
=
new
DefaultMutableTreeNode
(
arrayAttr
);
arrayAttr
.
treeNode
=
arrayChildNode
;
arrayAttr
.
treeModel
=
obj
.
treeModel
;
XttArrayAttr
.
treeModel
=
XttObjAttr
.
treeModel
;
obj
.
treeNode
.
add
(
arrayChildNode
);
Logg
.
logg
(
"XttObj: arrayAttr.fullName= "
+
arrayAttr
.
fullName
,
8
);
String
str
=
arrayAttr
.
fullName
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment