JME 배우기 - 3(PropertiesIO)

2008. 5. 28. 11:09Java

대충 보니깐.

디스플레이 시스템 에 대한 properties 정보를 저장하고 가져오기 위한 클래스 같다.


Method Summary
 java.lang.String get(java.lang.String key)
          get takes an arbitrary string as a key and returns any value associated with it, null if none.
 int getDepth()
          getDepth returns the depth as read from the properties file.
 int getFreq()
          getFreq returns the frequency of the monitor as read from the properties file.
 boolean getFullscreen()
          getFullscreen returns the fullscreen flag as read from the properties file.
 int getHeight()
          getHeight returns the height as read from the properties file.
 java.lang.String getRenderer()
          getRenderer returns the requested rendering API, or the default.
 int getWidth()
          getWidth returns the width as read from the properties file.
 boolean load()
          load attempts to load the properties file defined during instantiation and put all properties in the table.
 boolean save(int width, int height, int depth, int freq, boolean fullscreen, java.lang.String renderer)
          save overwrites the properties file with the given parameters.
 void set(java.lang.String key, java.lang.String value)
          set adds a key/value pair to the properties list.

save 와 set 이 있는데 이걸로 정보를 저장한다.


java.lang.Object
  extended by com.jme.system.PropertiesIO


이걸 주로 사용하는것은 바로전에 디스플레이 설정 다이얼로그이다.


java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by com.jme.system.PropertiesDialog



휴우 느끼는 거지만, 최소한 패키지 이름정도는 알아야 쉽게 작업이 가능하다.

최소한 패키지 경로는 알아두자.