[trunk] NicoCommentのプラグイン設定を変更するとクラッシュするのを修正; コード冒頭の著作権表記(年)を更新

git-svn-id: http://svn.sourceforge.jp/svnroot/lipsync@20 b1f601f4-4f45-0410-8980-aecacb008692
This commit is contained in:
kbinani
2010-04-11 06:29:55 +00:00
parent f054572c0d
commit 440f1fc321
98 changed files with 135 additions and 114 deletions

View File

@@ -115,9 +115,7 @@ namespace Boare.Lib.AppUtil {
public AuthorListEntry[] AuthorList {
set {
m_credit = value;
#if DEBUG
GenerateAuthorList();
#endif
}
}
@@ -129,25 +127,49 @@ namespace Boare.Lib.AppUtil {
Dimension size = Boare.Lib.AppUtil.Util.measureString( "Qjqp", font );
float width = this.Width;
float height = size.height;
//StringFormat sf = new StringFormat();
System.Drawing.StringFormat sf = new System.Drawing.StringFormat();
m_scroll = new BufferedImage( (int)width, (int)(40f + m_credit.Length * height * 1.1f), BufferedImage.TYPE_INT_BGR );
Graphics2D g = m_scroll.createGraphics();
//sf.Alignment = StringAlignment.Center;
g.setFont( new Font( font_name, java.awt.Font.BOLD, (int)(font_size * 1.1f) ) );
g.setColor( Color.white );
g.fillRect( 0, 0, m_scroll.getWidth(), m_scroll.getHeight() );
sf.Alignment = System.Drawing.StringAlignment.Center;
Font f = new Font( font_name, java.awt.Font.BOLD, (int)(font_size * 1.1f) );
g.setFont( f );
if ( m_shadow_enablde ) {
g.setColor( new Color( 0, 0, 0, 40 ) );
g.drawString( m_app_name, shadow_shift, shadow_shift ); //, width, height ), sf );
g.nativeGraphics.DrawString(
m_app_name,
f.font,
g.brush,
new System.Drawing.RectangleF( shadow_shift, shadow_shift, width, height ),
sf );
}
g.setColor( Color.black );
g.drawString( m_app_name, 0f, 0f ); //, width, height ), sf );
g.nativeGraphics.DrawString(
m_app_name,
f.font,
g.brush,
new System.Drawing.RectangleF( 0f, 0f, width, height ),
sf );
for ( int i = 0; i < m_credit.Length; i++ ) {
g.setFont( new Font( font_name, m_credit[i].getStyle(), font_size ) );
Font f2 = new Font( font_name, m_credit[i].getStyle(), font_size );
g.setFont( f2 );
if ( m_shadow_enablde ) {
g.setColor( new Color( 0, 0, 0, 40 ) );
g.drawString( m_credit[i].getName(), 0f + shadow_shift, 40f + i * height * 1.1f + shadow_shift ); //, width, height ), sf );
g.nativeGraphics.DrawString(
m_credit[i].getName(),
f2.font,
g.brush,
new System.Drawing.RectangleF( 0f + shadow_shift, 40f + i * height * 1.1f + shadow_shift, width, height ),
sf );
}
g.setColor( Color.black );
g.drawString( m_credit[i].getName(), 0f, 40f + i * height * 1.1f );// , width, height ), sf );
g.nativeGraphics.DrawString(
m_credit[i].getName(),
f2.font,
g.brush,
new System.Drawing.RectangleF( 0f, 40f + i * height * 1.1f, width, height ),
sf );
}
}