Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BraillePlot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Georg Graßnick
BraillePlot
Commits
17a985a1
Commit
17a985a1
authored
5 years ago
by
Leonard Kupper
Browse files
Options
Downloads
Plain Diff
Get minor fixes from remote.
parents
b3c96ef5
d7563019
No related branches found
No related tags found
1 merge request
!8
Feat/rasterizer 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/tudresden/inf/mci/brailleplot/rendering/FunctionalRasterizer.java
+3
-3
3 additions, 3 deletions
...n/inf/mci/brailleplot/rendering/FunctionalRasterizer.java
with
3 additions
and
3 deletions
src/main/java/de/tudresden/inf/mci/brailleplot/rendering/FunctionalRasterizer.java
+
3
−
3
View file @
17a985a1
...
@@ -28,8 +28,8 @@ public class FunctionalRasterizer<T extends Renderable> implements Rasterizer {
...
@@ -28,8 +28,8 @@ public class FunctionalRasterizer<T extends Renderable> implements Rasterizer {
@Override
@Override
public
void
rasterize
(
final
Renderable
data
,
final
RasterCanvas
canvas
)
throws
InsufficientRenderingAreaException
{
public
void
rasterize
(
final
Renderable
data
,
final
RasterCanvas
canvas
)
throws
InsufficientRenderingAreaException
{
// invoke the given rasterizing algorithm
// invoke the given rasterizing algorithm
T
diagram
=
safeCast
(
data
);
T
safeData
=
safeCast
(
data
);
mRasterizingAlgorithm
.
accept
(
diagram
,
canvas
);
mRasterizingAlgorithm
.
accept
(
safeData
,
canvas
);
}
}
final
Class
<?
extends
T
>
getSupportedRenderableClass
()
{
final
Class
<?
extends
T
>
getSupportedRenderableClass
()
{
...
@@ -37,7 +37,7 @@ public class FunctionalRasterizer<T extends Renderable> implements Rasterizer {
...
@@ -37,7 +37,7 @@ public class FunctionalRasterizer<T extends Renderable> implements Rasterizer {
}
}
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
// This is allowed, because the code that calls the rasterize method does a lookup based on the
diagram
class beforehand
// This is allowed, because the code that calls the rasterize method does a lookup based on the
renderable
class beforehand
// and will only select the appropriate rasterizer. (See FunctionalRenderingBase)
// and will only select the appropriate rasterizer. (See FunctionalRenderingBase)
// Since the FunctionalRasterizer is package private, there is no way to invoke it with the wrong type from 'outside'.
// Since the FunctionalRasterizer is package private, there is no way to invoke it with the wrong type from 'outside'.
// Should somebody still force this to happen by intentional tampering, we have no choice but to catch this disgrace.
// Should somebody still force this to happen by intentional tampering, we have no choice but to catch this disgrace.
...
...
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