final float y = getVisibleRect().y + getOvYPosition() + ( getOvMaxHeight() / y_ratio );
g.setColor( getTreeColorSet().getFoundColor() );
getOvRectangle().setRect( x, y, width, height );
+ final Stroke s = g.getStroke();
+ g.setStroke( STROKE_1 );
if ( ( width < 6 ) && ( height < 6 ) ) {
drawRectFilled( x, y, 6, 6, g );
getOvVirtualRectangle().setRect( x, y, 6, 6 );
}
getOvVirtualRectangle().setRect( x, y, width, height );
}
+ g.setStroke( s );
}
final private void paintPhylogenyLite( final Graphics2D g ) {
else {
g.setColor( getTreeColorSet().getBranchLengthColor() );
}
+ final Stroke s = g.getStroke();
+ g.setStroke( STROKE_1 );
drawLine( x1, y1, x1, y2, g );
drawLine( x2, y1, x2, y2, g );
drawLine( x1, y3, x2, y3, g );
if ( getScaleLabel() != null ) {
g.drawString( getScaleLabel(), ( x1 + 2 ), y3 - 2 );
}
+ g.setStroke( s );
}
final private int paintTaxonomy( final Graphics2D g,
package org.forester.archaeopteryx.phylogeny.data;
+import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
+import java.awt.Stroke;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.Writer;
private final DomainArchitecture _domain_structure;
private final Rectangle2D _rectangle = new Rectangle2D.Float();
private final Configuration _configuration;
+ private static final BasicStroke STROKE_1 = new BasicStroke( 1f );
public RenderableDomainArchitecture( final DomainArchitecture domain_structure, final Configuration configuration ) {
_domain_structure = domain_structure;
final double f = getRenderingFactorWidth();
final double y = y1 + ( _rendering_height / 2 );
final double start = x1 + 20.0;
+ final Stroke s = g.getStroke();
+ g.setStroke( STROKE_1 );
g.setColor( getConfiguration().getDomainStructureFontColor() );
_rectangle.setFrame( start, y - 0.5, _domain_structure.getTotalLength() * f, 1 );
g.fill( _rectangle );
drawDomain( xa, y1, xb - xa, _rendering_height, d.getName(), g, to_pdf );
}
}
+ g.setStroke( s );
}
@Override