Skip to content

Commit

Permalink
#24 Use bicubic scaling for better quality + bump version to 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
markiewb committed Jan 7, 2016
1 parent 2cd91f4 commit 0a61200
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.markiewb.netbeans.plugins</groupId>
<artifactId>codeoutline</artifactId>
<version>1.3.0</version>
<version>1.3.1</version>
<packaging>nbm</packaging>
<build>
<plugins>
Expand Down Expand Up @@ -125,6 +125,10 @@
&lt;img src="https://raw.githubusercontent.com/markiewb/nb-codeoutline/master/doc/screenshot1.3.png"/&gt;
&lt;/p&gt;
&lt;h2&gt;Updates&lt;/h2&gt;
&lt;h3&gt;1.3.1:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;[&lt;a href="https://github.com/markiewb/nb-codeoutline/issues/24"&gt;Feature 24&lt;/a&gt;]: Use bicubic scaling for better quality&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;1.3.0:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;[&lt;a href="https://github.com/markiewb/nb-codeoutline/issues/8"&gt;Feature 8&lt;/a&gt;]: Dark theme support (colors are taken from the mimetype of the editor, see also the new darkening-option)&lt;/li&gt;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/bluej/editor/moe/NaviView.java
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ public Graphics2D getScalingImgBufferGraphics(Graphics g)

private void addRenderingHintsForAntialiasing(Graphics2D g) {
Map<Object,Object> hints = new HashMap<Object,Object>();
hints.put(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
hints.put(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
hints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g.addRenderingHints(hints);
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/bluej/editor/moe/NaviviewView.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ of the License, or (at your option) any later version.
*/
public class NaviviewView extends /*BlueJSyntaxView*/MoePlainView
{
private static final boolean SCOPE_HIGHLIGHTING = true;
private static final boolean HIGHLIGHT_METHODS_ONLY = true;
// private static final boolean SCOPE_HIGHLIGHTING = true;
// private static final boolean HIGHLIGHT_METHODS_ONLY = true;
private static final boolean SYNTAX_COLOURING = false;

// MacOS font rendering at small sizes seems to be vastly different
Expand Down Expand Up @@ -141,11 +141,11 @@ protected void paintPlainLine(int lineIndex, Graphics g, int x, int y)
@Override
public void paint(Graphics g, Shape a)
{
Rectangle bounds = a.getBounds();
Rectangle clip = g.getClipBounds();
if (clip == null) {
clip = a.getBounds();
}
// Rectangle bounds = a.getBounds();
// Rectangle clip = g.getClipBounds();
// if (clip == null) {
// clip = a.getBounds();
// }

// if (SCOPE_HIGHLIGHTING) {
// // Scope highlighting
Expand Down

0 comments on commit 0a61200

Please sign in to comment.