Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
744d702d
Commit
744d702d
authored
Nov 04, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drawtype for background color (displayed as gray...)
parent
ba015820
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
java/jpwr/jop/src/GeColor.java
java/jpwr/jop/src/GeColor.java
+8
-7
src/jpwr/jop/src/GeColor.java
src/jpwr/jop/src/GeColor.java
+8
-7
No files found.
java/jpwr/jop/src/GeColor.java
View file @
744d702d
/*
/*
* Proview $Id: GeColor.java,v 1.
5 2005-11-02 14:02:1
8 claes Exp $
* Proview $Id: GeColor.java,v 1.
6 2005-11-04 11:39:3
8 claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
* Copyright (C) 2005 SSAB Oxelösund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -524,11 +524,7 @@ public class GeColor {
...
@@ -524,11 +524,7 @@ public class GeColor {
Rgb
rgb
;
Rgb
rgb
;
Color
color
=
null
;
Color
color
=
null
;
if
(
idx
==
300
)
{
if
(
idx
<
4
)
// This should be background color TODO...
return
getColor
(
33
);
}
else
if
(
idx
<
4
)
color
=
new
Color
(
(
int
)(
colorValues
[
3
*
idx
]
*
255
),
color
=
new
Color
(
(
int
)(
colorValues
[
3
*
idx
]
*
255
),
(
int
)(
colorValues
[
3
*
idx
+
1
]
*
255
),
(
int
)(
colorValues
[
3
*
idx
+
1
]
*
255
),
(
int
)(
colorValues
[
3
*
idx
+
2
]
*
255
));
(
int
)(
colorValues
[
3
*
idx
+
2
]
*
255
));
...
@@ -616,6 +612,11 @@ public class GeColor {
...
@@ -616,6 +612,11 @@ public class GeColor {
int
intensity
=
color_intensity
;
int
intensity
=
color_intensity
;
int
brightness
=
color_brightness
;
int
brightness
=
color_brightness
;
if
(
local_drawtype
==
300
)
{
// This should be background color TODO...
return
33
;
}
if
(
default_color
==
NO_COLOR
&&
color_tone
!=
NO_TONE
)
{
if
(
default_color
==
NO_COLOR
&&
color_tone
!=
NO_TONE
)
{
int
tone
=
color_tone
;
int
tone
=
color_tone
;
if
(
local_drawtype
>
30
)
{
if
(
local_drawtype
>
30
)
{
...
@@ -718,7 +719,7 @@ public class GeColor {
...
@@ -718,7 +719,7 @@ public class GeColor {
int
color_intensity
,
int
color_brightness
,
int
color_inverse
,
int
color_intensity
,
int
color_brightness
,
int
color_inverse
,
int
default_color
,
boolean
dimmed
)
{
int
default_color
,
boolean
dimmed
)
{
int
drawtype
=
getDrawtype
(
local_drawtype
,
color_tone
,
color_shift
,
color_intensity
,
int
drawtype
=
getDrawtype
(
local_drawtype
,
color_tone
,
color_shift
,
color_intensity
,
color_brightness
,
color_inverse
,
default_color
,
dimmed
);
color_brightness
,
color_inverse
,
default_color
,
dimmed
);
if
(
colors
[
drawtype
]
==
null
)
if
(
colors
[
drawtype
]
==
null
)
colors
[
drawtype
]
=
rgbColor
(
drawtype
);
colors
[
drawtype
]
=
rgbColor
(
drawtype
);
return
colors
[
drawtype
];
return
colors
[
drawtype
];
...
...
src/jpwr/jop/src/GeColor.java
View file @
744d702d
/*
/*
* Proview $Id: GeColor.java,v 1.
5 2005-11-02 14:02:1
8 claes Exp $
* Proview $Id: GeColor.java,v 1.
6 2005-11-04 11:39:3
8 claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
* Copyright (C) 2005 SSAB Oxelösund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -524,11 +524,7 @@ public class GeColor {
...
@@ -524,11 +524,7 @@ public class GeColor {
Rgb
rgb
;
Rgb
rgb
;
Color
color
=
null
;
Color
color
=
null
;
if
(
idx
==
300
)
{
if
(
idx
<
4
)
// This should be background color TODO...
return
getColor
(
33
);
}
else
if
(
idx
<
4
)
color
=
new
Color
(
(
int
)(
colorValues
[
3
*
idx
]
*
255
),
color
=
new
Color
(
(
int
)(
colorValues
[
3
*
idx
]
*
255
),
(
int
)(
colorValues
[
3
*
idx
+
1
]
*
255
),
(
int
)(
colorValues
[
3
*
idx
+
1
]
*
255
),
(
int
)(
colorValues
[
3
*
idx
+
2
]
*
255
));
(
int
)(
colorValues
[
3
*
idx
+
2
]
*
255
));
...
@@ -616,6 +612,11 @@ public class GeColor {
...
@@ -616,6 +612,11 @@ public class GeColor {
int
intensity
=
color_intensity
;
int
intensity
=
color_intensity
;
int
brightness
=
color_brightness
;
int
brightness
=
color_brightness
;
if
(
local_drawtype
==
300
)
{
// This should be background color TODO...
return
33
;
}
if
(
default_color
==
NO_COLOR
&&
color_tone
!=
NO_TONE
)
{
if
(
default_color
==
NO_COLOR
&&
color_tone
!=
NO_TONE
)
{
int
tone
=
color_tone
;
int
tone
=
color_tone
;
if
(
local_drawtype
>
30
)
{
if
(
local_drawtype
>
30
)
{
...
@@ -718,7 +719,7 @@ public class GeColor {
...
@@ -718,7 +719,7 @@ public class GeColor {
int
color_intensity
,
int
color_brightness
,
int
color_inverse
,
int
color_intensity
,
int
color_brightness
,
int
color_inverse
,
int
default_color
,
boolean
dimmed
)
{
int
default_color
,
boolean
dimmed
)
{
int
drawtype
=
getDrawtype
(
local_drawtype
,
color_tone
,
color_shift
,
color_intensity
,
int
drawtype
=
getDrawtype
(
local_drawtype
,
color_tone
,
color_shift
,
color_intensity
,
color_brightness
,
color_inverse
,
default_color
,
dimmed
);
color_brightness
,
color_inverse
,
default_color
,
dimmed
);
if
(
colors
[
drawtype
]
==
null
)
if
(
colors
[
drawtype
]
==
null
)
colors
[
drawtype
]
=
rgbColor
(
drawtype
);
colors
[
drawtype
]
=
rgbColor
(
drawtype
);
return
colors
[
drawtype
];
return
colors
[
drawtype
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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