|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
javax.swing.text.rtf.RTFEditorKit
public class RTFEditorKit
RTF ÆíÁý ±â´ÉÀÇ µðÆúÆ®ÀÇ ±¸ÇöÀÔ´Ï´Ù. RTF Áö¿øÀº Swing ÆÀ¿¡ ÀÇÇØ ÀÛ¼ºµÈ °ÍÀÌ ¾Æ´Õ´Ï´Ù. Àå·¡, RTF Áö¿ø¿¡ ´ëÀÀÇÒ ¼ö ÀÖµµ·ÏÀÇÇØ ³ª°¥ ¿¹Á¤ÀÔ´Ï´Ù.
Áßø(Nested) Ŭ·¡½º °³¿ä |
---|
Ŭ·¡½º javax.swing.text. StyledEditorKit ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
StyledEditorKit.AlignmentAction,
StyledEditorKit.BoldAction,
StyledEditorKit.FontFamilyAction,
StyledEditorKit.FontSizeAction,
StyledEditorKit.ForegroundAction,
StyledEditorKit.ItalicAction,
StyledEditorKit.StyledTextAction,
StyledEditorKit.UnderlineAction |
Ŭ·¡½º javax.swing.text. DefaultEditorKit ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
DefaultEditorKit.BeepAction,
DefaultEditorKit.CopyAction,
DefaultEditorKit.CutAction,
DefaultEditorKit.DefaultKeyTypedAction,
DefaultEditorKit.InsertBreakAction,
DefaultEditorKit.InsertContentAction,
DefaultEditorKit.InsertTabAction,
DefaultEditorKit.PasteAction |
ÇÊµå °³¿ä |
---|
»ý¼ºÀÚ °³¿ä | |
---|---|
RTFEditorKit ()
RTFEditorKit¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
String |
getContentType ()
ÀÌ Å¶ÀÌ Áö¿øÇÏ´Â MIME ŸÀÔÀÇ µ¥ÀÌÅ͸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
read (InputStream in,
Document doc,
int pos)
ÀÌ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ Çڵ鷯¿¡ ÀûÇÕÇÑ ¼½ÄÀÎ °ÍÀÌ ¿ä±¸µÇ´Â ½ºÆ®¸²¿¡ ÄÁÅÙÃ÷¸¦ »ðÀÔÇÕ´Ï´Ù. |
void |
read (Reader in,
Document doc,
int pos)
ÁöÁ¤µÈ ½ºÆ®¸²·ÎºÎÅÍ ÄÁÅÙÃ÷¸¦ »ðÀÔÇÕ´Ï´Ù. |
void |
write (OutputStream out,
Document doc,
int pos,
int len)
ÀÌ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ Çڵ鷯¿¡ ÀûÇÕÇÑ ¼½ÄÀÎ °ÍÀÌ ¿ä±¸µÇ´Â ½ºÆ®¸²¿¡ ¹®¼ÀÇ ÄÁÅÙÃ÷¸¦ ÀûÇÕÇÑ Çü½Ä¿¡¼ ½ºÆ®¸²¿¡ »ðÀÔÇÕ´Ï´Ù. |
void |
write (Writer out,
Document doc,
int pos,
int len)
¹®¼ÀÇ ÄÁÅÙÃ÷¸¦ plaintext·Î¼ ½ºÆ®¸²¿¡ Ãâ·ÂÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing.text. StyledEditorKit ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
createDefaultDocument,
createInputAttributes,
deinstall,
getActions,
getCharacterAttributeRun,
getInputAttributes,
getViewFactory,
install |
Ŭ·¡½º javax.swing.text. DefaultEditorKit ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
createCaret |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public RTFEditorKit()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public String getContentType()
text/rtf
ŸÀÔÀ» Áö¿ø
ÇÕ´Ï´Ù.
DefaultEditorKit
³»ÀÇ getContentType
public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException
DefaultEditorKit
³»ÀÇ read
in
- ÀÐÀ» ½ºÆ®¸²doc
- »ðÀÔópos
- ÄÁÅÙÃ÷¸¦ ¹èÄ¡ÇÏ´Â ¹®¼³»ÀÇ À§Ä¡
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìpublic void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException
DefaultEditorKit
³»ÀÇ write
out
- Ãâ·ÂóÀÇ ½ºÆ®¸²doc
- Ãâ·Â¿øpos
- ÄÁÅÙÃ÷¸¦ ¾ò´Â ¹®¼³»ÀÇ À§Ä¡len
- ½á³»´Â ¾ç
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìpublic void read(Reader in, Document doc, int pos) throws IOException, BadLocationException
DefaultEditorKit
³»ÀÇ read
in
- ÀÐÀ» ½ºÆ®¸²doc
- »ðÀÔópos
- ÄÁÅÙÃ÷¸¦ ¹èÄ¡ÇÏ´Â ¹®¼³»ÀÇ À§Ä¡
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ìpublic void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException
DefaultEditorKit
³»ÀÇ write
out
- Ãâ·ÂóÀÇ ½ºÆ®¸²doc
- Ãâ·Â¿øpos
- ÄÁÅÙÃ÷¸¦ ¾ò´Â ¹®¼³»ÀÇ À§Ä¡len
- ½á³»´Â ¾ç
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
BadLocationException
- pos°¡ ¹®¼³»ÀÇ ¹«È¿ÀÎ À§Ä¡¸¦ ³ªÅ¸³»´Â °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.