Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
0dfb11c1
Commit
0dfb11c1
authored
5 months ago
by
Riegel
Browse files
Options
Download
Email Patches
Plain Diff
Add TunnelConstructiveElement Nodes
parent
929eee2e
master
dev
dev_cpp_code_conversion
dev_gui_features
dev_gui_features_zip_loading
dev_visitor_rework
3.17.1
3.17.0
archive/dev_gui_features_zip_loading
2 merge requests
!28
Version 3.17.0 Release
,
!26
Add ZIP-archive support
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/tree/AllTunnelConstructiveElementsNode.java
+46
-0
...tydoctor2/gui/tree/AllTunnelConstructiveElementsNode.java
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/tree/TunnelConstructiveElementNode.java
+35
-0
...t/citydoctor2/gui/tree/TunnelConstructiveElementNode.java
with
81 additions
and
0 deletions
+81
-0
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/tree/AllTunnelConstructiveElementsNode.java
0 → 100644
+
46
-
0
View file @
0dfb11c1
package
de.hft.stuttgart.citydoctor2.gui.tree
;
import
de.hft.stuttgart.citydoctor2.datastructure.TunnelConstructiveElement
;
import
de.hft.stuttgart.citydoctor2.gui.CheckStatus
;
import
de.hft.stuttgart.citydoctor2.gui.Renderer
;
import
java.util.List
;
public
class
AllTunnelConstructiveElementsNode
extends
Renderable
{
private
final
List
<
TunnelConstructiveElement
>
constructiveElements
;
public
AllTunnelConstructiveElementsNode
(
List
<
TunnelConstructiveElement
>
constructiveElements
)
{
this
.
constructiveElements
=
constructiveElements
;
}
@Override
public
String
getText
()
{
return
"Constructive Elements"
;
}
@Override
public
void
visit
(
Renderer
renderer
)
{
renderer
.
clearCurrentRender
();
}
@Override
public
void
refreshTextColor
()
{
boolean
isValidated
=
false
;
for
(
TunnelConstructiveElement
bce
:
constructiveElements
)
{
if
(
bce
.
isValidated
())
{
isValidated
=
true
;
}
if
(
bce
.
containsAnyError
())
{
setStatus
(
CheckStatus
.
ERROR
);
return
;
}
}
if
(
isValidated
)
{
setStatus
(
CheckStatus
.
OK
);
}
else
{
setStatus
(
CheckStatus
.
NOT_CHECKED
);
}
}
}
This diff is collapsed.
Click to expand it.
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/tree/TunnelConstructiveElementNode.java
0 → 100644
+
35
-
0
View file @
0dfb11c1
package
de.hft.stuttgart.citydoctor2.gui.tree
;
import
de.hft.stuttgart.citydoctor2.datastructure.TunnelConstructiveElement
;
import
de.hft.stuttgart.citydoctor2.gui.CheckStatus
;
import
de.hft.stuttgart.citydoctor2.gui.Renderer
;
public
class
TunnelConstructiveElementNode
extends
Renderable
{
private
final
TunnelConstructiveElement
tce
;
public
TunnelConstructiveElementNode
(
TunnelConstructiveElement
tce
)
{
this
.
tce
=
tce
;
}
@Override
public
String
getText
()
{
return
tce
.
getGmlId
().
getGmlString
();
}
@Override
public
void
visit
(
Renderer
renderer
)
{
renderer
.
render
(
tce
);
}
@Override
public
void
refreshTextColor
()
{
if
(!
tce
.
isValidated
())
{
setStatus
(
CheckStatus
.
NOT_CHECKED
);
}
else
if
(
tce
.
containsAnyError
())
{
setStatus
(
CheckStatus
.
ERROR
);
}
else
{
setStatus
(
CheckStatus
.
OK
);
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets