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
0ecd472d
Commit
0ecd472d
authored
12 years ago
by
Tim Molter
Browse files
Options
Downloads
Patches
Plain Diff
fixed chart title stroke
parent
5dba4965
No related branches found
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/com/xeiam/xchart/internal/chartpart/ChartTitle.java
+4
-2
4 additions, 2 deletions
.../java/com/xeiam/xchart/internal/chartpart/ChartTitle.java
with
4 additions
and
2 deletions
xchart/src/main/java/com/xeiam/xchart/internal/chartpart/ChartTitle.java
+
4
−
2
View file @
0ecd472d
...
...
@@ -15,6 +15,7 @@
*/
package
com.xeiam.xchart.internal.chartpart
;
import
java.awt.BasicStroke
;
import
java.awt.Graphics2D
;
import
java.awt.Rectangle
;
import
java.awt.font.FontRenderContext
;
...
...
@@ -30,8 +31,8 @@ public class ChartTitle implements ChartPart {
/** parent */
private
final
Chart
chart
;
//
/** the bounds */
//
private Rectangle bounds;
/** the bounds */
private
Rectangle
bounds
;
/** the title text */
private
String
text
=
""
;
// default to ""
...
...
@@ -98,6 +99,7 @@ public class ChartTitle implements ChartPart {
int
xOffset
=
(
int
)
chart
.
getPlot
().
getBounds
().
getX
();
int
yOffset
=
chart
.
getStyleManager
().
getChartPadding
();
g
.
setStroke
(
new
BasicStroke
(
1
,
BasicStroke
.
CAP_BUTT
,
BasicStroke
.
JOIN_BEVEL
));
g
.
setColor
(
chart
.
getStyleManager
().
getChartTitleBorderColor
());
g
.
drawRect
(
xOffset
-
1
,
yOffset
,
chartTitleBoxWidth
-
1
,
chartTitleBoxHeight
-
1
);
g
.
setColor
(
chart
.
getStyleManager
().
getChartTitleBackgroundColor
());
...
...
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