Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
string_box
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Bohn
string_box
Commits
a23d0205
Commit
a23d0205
authored
5 years ago
by
Christopher Bohn
Browse files
Options
Downloads
Patches
Plain Diff
Added Maven Javadoc plugin
parent
a0254273
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+27
-0
27 additions, 0 deletions
pom.xml
src/main/java/edu/unl/cse/bohn/StringBox.java
+11
-8
11 additions, 8 deletions
src/main/java/edu/unl/cse/bohn/StringBox.java
with
38 additions
and
8 deletions
pom.xml
+
27
−
0
View file @
a23d0205
...
@@ -19,9 +19,29 @@
...
@@ -19,9 +19,29 @@
<target>
8
</target>
<target>
8
</target>
</configuration>
</configuration>
</plugin>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-javadoc-plugin
</artifactId>
<version>
3.1.1
</version>
<configuration>
<source>
8
</source>
</configuration>
</plugin>
</plugins>
</plugins>
</build>
</build>
<!--
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
</plugin>
</plugins>
</reporting>
-->
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
junit
</groupId>
<groupId>
junit
</groupId>
...
@@ -29,6 +49,13 @@
...
@@ -29,6 +49,13 @@
<version>
4.12
</version>
<version>
4.12
</version>
<scope>
test
</scope>
<scope>
test
</scope>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin -->
<dependency>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-javadoc-plugin
</artifactId>
<version>
3.1.1
</version>
</dependency>
<dependency>
<dependency>
<groupId>
com.vdurmont
</groupId>
<groupId>
com.vdurmont
</groupId>
<artifactId>
emoji-java
</artifactId>
<artifactId>
emoji-java
</artifactId>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/edu/unl/cse/bohn/StringBox.java
+
11
−
8
View file @
a23d0205
...
@@ -55,19 +55,22 @@ public class StringBox {
...
@@ -55,19 +55,22 @@ public class StringBox {
* printed with <code>System.out.print()</code> then it will leave the cursor at the end of the last line without
* printed with <code>System.out.print()</code> then it will leave the cursor at the end of the last line without
* scrolling the top of the string off of the screen. This particular style would be useful if you place the
* scrolling the top of the string off of the screen. This particular style would be useful if you place the
* prompt on the last line.</p>
* prompt on the last line.</p>
*
* @param boxHeight the number of rows in this StringBox
* @param boxWidth the number of columns in this StringBox
*/
*/
public
StringBox
(
int
maximum
Height
,
int
maximum
Width
)
{
public
StringBox
(
int
box
Height
,
int
box
Width
)
{
if
(
maximum
Height
>
0
&&
maximum
Width
>
0
)
{
if
(
box
Height
>
0
&&
box
Width
>
0
)
{
this
.
maximumHeight
=
maximum
Height
;
this
.
maximumHeight
=
box
Height
;
this
.
maximumWidth
=
maximum
Width
;
this
.
maximumWidth
=
box
Width
;
rows
=
new
StringRow
[
maximum
Height
];
rows
=
new
StringRow
[
box
Height
];
for
(
int
i
=
0
;
i
<
maximum
Height
;
i
++)
{
for
(
int
i
=
0
;
i
<
box
Height
;
i
++)
{
rows
[
i
]
=
new
StringRow
(
maximum
Width
);
rows
[
i
]
=
new
StringRow
(
box
Width
);
}
}
logicalHeight
=
0
;
logicalHeight
=
0
;
}
else
{
}
else
{
throw
new
IllegalArgumentException
(
"String Box must be at least 1 character wide by 1 character tall. "
+
throw
new
IllegalArgumentException
(
"String Box must be at least 1 character wide by 1 character tall. "
+
"Dimensions "
+
maximum
Width
+
"×"
+
maximum
Height
+
" are too small."
);
"Dimensions "
+
box
Width
+
"×"
+
box
Height
+
" are too small."
);
}
}
}
}
...
...
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