Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
361e2e1f
Commit
361e2e1f
authored
8 years ago
by
Letitia Li
Browse files
Options
Downloads
Patches
Plain Diff
zoom in with locks
parent
82126731
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ui/tmlcompd/TMLCPrimitivePort.java
+24
-10
24 additions, 10 deletions
src/ui/tmlcompd/TMLCPrimitivePort.java
with
24 additions
and
10 deletions
src/ui/tmlcompd/TMLCPrimitivePort.java
+
24
−
10
View file @
361e2e1f
...
...
@@ -320,6 +320,12 @@ public abstract class TMLCPrimitivePort extends TGCScalableWithInternalComponent
public
void
drawAuthVerification
(
Graphics
g
){
int
lockwidth
=(
int
)
(
9
*
tdp
.
getZoom
());
int
lockheight
=(
int
)
(
7
*
tdp
.
getZoom
());
int
yoffset
=
(
int
)
(
3
*
lockheight
);
int
ovalwidth
=(
int
)
(
6
*
tdp
.
getZoom
());
int
ovalheight
=(
int
)
(
9
*
tdp
.
getZoom
());
g
.
drawString
(
secName
,
x
-
20
,
y
+
10
);
Color
c
=
g
.
getColor
();
Color
c1
;
...
...
@@ -370,6 +376,14 @@ public abstract class TMLCPrimitivePort extends TGCScalableWithInternalComponent
}
}
public
void
drawConfVerification
(
Graphics
g
){
int
lockwidth
=(
int
)
(
9
*
tdp
.
getZoom
());
int
lockheight
=(
int
)
(
7
*
tdp
.
getZoom
());
int
yoffset
=
(
int
)
(
3
*
lockheight
);
int
ovalwidth
=(
int
)
(
6
*
tdp
.
getZoom
());
int
ovalheight
=(
int
)
(
9
*
tdp
.
getZoom
());
Color
c
=
g
.
getColor
();
Color
c1
;
switch
(
checkConfStatus
)
{
...
...
@@ -385,15 +399,15 @@ public abstract class TMLCPrimitivePort extends TGCScalableWithInternalComponent
default
:
return
;
}
g
.
drawString
(
mappingName
,
x
-
15
,
y
-
8
);
g
.
drawOval
(
x
-
10
,
y
,
6
,
9
);
g
.
drawString
(
mappingName
,
x
-
lockwidth
*
2
,
y
-
lockheight
);
g
.
drawOval
(
x
-
ovalwidth
*
2
,
y
,
ovalwidth
,
ovalheight
);
g
.
setColor
(
c1
);
g
.
fillRect
(
x
-
12
,
y
+
3
,
9
,
7
);
g
.
fillRect
(
x
-
lockwidth
*
3
/
2
,
y
+
lockheight
/
2
,
lockwidth
,
lockheight
);
g
.
setColor
(
c
);
g
.
drawRect
(
x
-
12
,
y
+
3
,
9
,
7
);
g
.
drawRect
(
x
-
lockwidth
*
3
/
2
,
y
+
lockheight
/
2
,
lockwidth
,
lockheight
);
if
(
checkConfStatus
==
3
){
g
.
drawLine
(
x
-
14
,
y
+
1
,
x
-
1
,
y
+
13
);
g
.
drawLine
(
x
-
14
,
y
+
13
,
x
-
1
,
y
+
1
);
g
.
drawLine
(
x
-
lockwidth
*
2
,
y
,
x
,
y
+
lockheight
*
2
);
g
.
drawLine
(
x
-
lockwidth
*
2
,
y
+
lockheight
*
2
,
x
,
y
);
}
...
...
@@ -411,12 +425,12 @@ public abstract class TMLCPrimitivePort extends TGCScalableWithInternalComponent
default
:
return
;
}
g
.
drawString
(
secName
,
x
-
20
,
y
+
20
);
g
.
drawOval
(
x
-
10
,
y
+
22
,
6
,
9
);
g
.
drawString
(
secName
,
x
-
lockwidth
*
2
,
y
+
lockheight
*
3
);
g
.
drawOval
(
x
-
ovalwidth
*
2
,
y
+
yoffset
,
ovalwidth
,
ovalheight
);
g
.
setColor
(
c1
);
g
.
fillRect
(
x
-
12
,
y
+
24
,
9
,
7
);
g
.
fillRect
(
x
-
lockwidth
*
3
/
2
,
y
+
lockheight
/
2
+
yoffset
,
lockwidth
,
lockheight
);
g
.
setColor
(
c
);
g
.
drawRect
(
x
-
12
,
y
+
24
,
9
,
7
);
g
.
drawRect
(
x
-
lockwidth
*
3
/
2
,
y
+
lockheight
/
2
+
yoffset
,
lockwidth
,
lockheight
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment