Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
XChart
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
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
Brady James Garvin
XChart
Commits
ffc45e50
Commit
ffc45e50
authored
9 years ago
by
Carlos Lopez-Camey
Browse files
Options
Downloads
Patches
Plain Diff
Add type parameter to XChartPanel
parent
31bea2a4
Branches
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
xchart/src/main/java/org/knowm/xchart/XChartPanel.java
+4
-4
4 additions, 4 deletions
xchart/src/main/java/org/knowm/xchart/XChartPanel.java
with
4 additions
and
4 deletions
xchart/src/main/java/org/knowm/xchart/XChartPanel.java
+
4
−
4
View file @
ffc45e50
...
...
@@ -52,9 +52,9 @@ import org.knowm.xchart.internal.chartpart.Chart;
*
* @author timmolter
*/
public
class
XChartPanel
extends
JPanel
{
public
class
XChartPanel
<
T
extends
Chart
>
extends
JPanel
{
private
final
Chart
chart
;
private
final
T
chart
;
private
final
Dimension
preferredSize
;
private
String
saveAsString
=
"Save As..."
;
...
...
@@ -63,7 +63,7 @@ public class XChartPanel extends JPanel {
*
* @param chart
*/
public
XChartPanel
(
final
Chart
chart
)
{
public
XChartPanel
(
final
T
chart
)
{
this
.
chart
=
chart
;
preferredSize
=
new
Dimension
(
chart
.
getWidth
(),
chart
.
getHeight
());
...
...
@@ -97,7 +97,7 @@ public class XChartPanel extends JPanel {
g2d
.
dispose
();
}
public
Chart
getChart
()
{
public
T
getChart
()
{
return
this
.
chart
;
}
...
...
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