Mercurial > hg > Applications > TreeVNC
changeset 372:d393cb629016
Add IsRetinaClass
author | innparusu |
---|---|
date | Tue, 18 Aug 2015 18:59:01 +0900 |
parents | 5995d0e24355 |
children | b6665f7f18d1 |
files | .idea/workspace.xml src/main/java/jp/ac/u_ryukyu/treevnc/test/IsRetina.java |
diffstat | 2 files changed, 220 insertions(+), 87 deletions(-) [+] |
line wrap: on
line diff
--- a/.idea/workspace.xml Tue Aug 18 18:32:21 2015 +0900 +++ b/.idea/workspace.xml Tue Aug 18 18:59:01 2015 +0900 @@ -2,9 +2,7 @@ <project version="4"> <component name="ChangeListManager"> <list default="true" id="0a04b9e3-21eb-43ee-b441-59e664eecd89" name="Default" comment="setFitScreen in ReceiverTask"> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java" afterPath="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java" /> - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java" afterPath="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java" /> + <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/test/IsRetina.java" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> </list> <ignored path="TreeVNC.iws" /> @@ -66,9 +64,12 @@ <file leaf-file-name="TreeRFBProto.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="2852" max-vertical-offset="15580"> - <caret line="215" column="52" selection-start-line="215" selection-start-column="52" selection-end-line="215" selection-end-column="52" /> - <folding /> + <state vertical-scroll-proportion="0.0" vertical-offset="14171" max-vertical-offset="15618"> + <caret line="908" column="34" selection-start-line="908" selection-start-column="34" selection-end-line="908" selection-end-column="34" /> + <folding> + <element signature="e#34682#34683#0" expanded="true" /> + <element signature="e#34716#34717#0" expanded="true" /> + </folding> </state> </provider> </entry> @@ -79,8 +80,18 @@ <state vertical-scroll-proportion="0.0" vertical-offset="345" max-vertical-offset="3480"> <caret line="53" column="36" selection-start-line="53" selection-start-column="36" selection-end-line="53" selection-end-column="36" /> <folding> - <element signature="e#1937#1938#0" expanded="true" /> - <element signature="e#1986#1987#0" expanded="true" /> + <element signature="e#0#10306#0" expanded="false" /> + <element signature="imports" expanded="false" /> + <element signature="e#1835#1836#0" expanded="false" /> + <element signature="e#1882#1883#0" expanded="false" /> + <element signature="e#3650#3651#0" expanded="false" /> + <element signature="e#3712#3713#0" expanded="false" /> + <element signature="e#3762#3763#0" expanded="false" /> + <element signature="e#3816#3817#0" expanded="false" /> + <element signature="e#8922#8923#0" expanded="false" /> + <element signature="e#8970#8971#0" expanded="false" /> + <element signature="e#9196#9197#0" expanded="false" /> + <element signature="e#9234#9235#0" expanded="false" /> </folding> </state> </provider> @@ -91,13 +102,7 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0" vertical-offset="981" max-vertical-offset="2970"> <caret line="75" column="0" selection-start-line="75" selection-start-column="0" selection-end-line="75" selection-end-column="0" /> - <folding> - <element signature="imports" expanded="false" /> - <element signature="e#2987#2988#0" expanded="false" /> - <element signature="e#3035#3036#0" expanded="false" /> - <element signature="e#8245#8246#0" expanded="false" /> - <element signature="e#8311#8312#0" expanded="false" /> - </folding> + <folding /> </state> </provider> </entry> @@ -105,8 +110,8 @@ <file leaf-file-name="Viewer.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-145.075" vertical-offset="6433" max-vertical-offset="12600"> - <caret line="464" column="0" selection-start-line="464" selection-start-column="0" selection-end-line="464" selection-end-column="0" /> + <state vertical-scroll-proportion="-11.725" vertical-offset="10059" max-vertical-offset="12600"> + <caret line="395" column="0" selection-start-line="395" selection-start-column="0" selection-end-line="395" selection-end-column="0" /> <folding> <element signature="e#0#15487#0" expanded="true" /> <element signature="imports" expanded="true" /> @@ -116,6 +121,20 @@ </provider> </entry> </file> + <file leaf-file-name="IsRetina.java" pinned="false" current-in-tab="true"> + <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/test/IsRetina.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.50431037" vertical-offset="0" max-vertical-offset="1160"> + <caret line="39" column="0" selection-start-line="39" selection-start-column="0" selection-end-line="39" selection-end-column="0" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#1014#1015#0" expanded="true" /> + <element signature="e#1060#1061#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + </file> <file leaf-file-name="SwingRfbConnectionWorker.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java"> <provider selected="true" editor-type-id="text-editor"> @@ -129,16 +148,6 @@ </provider> </entry> </file> - <file leaf-file-name="SwingViewerWindow.java" pinned="false" current-in-tab="true"> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.19829424" vertical-offset="13591" max-vertical-offset="16435"> - <caret line="887" column="0" selection-start-line="887" selection-start-column="0" selection-end-line="887" selection-end-column="0" /> - <folding /> - </state> - </provider> - </entry> - </file> </leaf> </split-first> <split-second> @@ -166,10 +175,20 @@ </provider> </entry> </file> - <file leaf-file-name="SwingConnectionWorkerFactory.java" pinned="false" current-in-tab="true"> + <file leaf-file-name="SwingViewerWindow.java" pinned="false" current-in-tab="true"> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.39930254" vertical-offset="16558" max-vertical-offset="20760"> + <caret line="860" column="59" selection-start-line="860" selection-start-column="0" selection-end-line="861" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="SwingConnectionWorkerFactory.java" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingConnectionWorkerFactory.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.15410958" vertical-offset="0" max-vertical-offset="1460"> + <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="675"> <caret line="44" column="26" selection-start-line="44" selection-start-column="26" selection-end-line="44" selection-end-column="26" /> <folding /> </state> @@ -489,6 +508,7 @@ <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java" /> <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java" /> <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java" /> + <option value="$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/test/IsRetina.java" /> </list> </option> </component> @@ -675,6 +695,36 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> + <option name="myItemId" value="treevnc" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="test" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + </PATH> + <PATH> + <PATH_ELEMENT> + <option name="myItemId" value="TreeVNC" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="TreeVNC" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="src" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="main" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="java" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> <option name="myItemId" value="glavsoft" /> <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> @@ -808,7 +858,7 @@ <property name="settings.editor.selected.configurable" value="project.propVCSSupport.Mappings" /> <property name="settings.editor.splitter.proportion" value="0.2" /> </component> - <component name="RunManager" selected="Application.TreeViewer"> + <component name="RunManager" selected="Application.IsRetina"> <configuration default="false" name="TreeViewer" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea"> <pattern> @@ -837,6 +887,28 @@ <ConfigurationWrapper RunnerId="Run" /> <method /> </configuration> + <configuration default="false" name="IsRetina" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea"> + <pattern> + <option name="PATTERN" value="jp.ac.u_ryukyu.treevnc.test.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <option name="MAIN_CLASS_NAME" value="jp.ac.u_ryukyu.treevnc.test.IsRetina" /> + <option name="VM_PARAMETERS" /> + <option name="PROGRAM_PARAMETERS" /> + <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="ENABLE_SWING_INSPECTOR" value="false" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <module name="TreeVNC" /> + <envs /> + <RunnerSettings RunnerId="Run" /> + <ConfigurationWrapper RunnerId="Run" /> + <method /> + </configuration> <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin"> <module name="" /> <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" /> @@ -990,12 +1062,14 @@ <option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" /> <method /> </configuration> - <list size="1"> + <list size="2"> <item index="0" class="java.lang.String" itemvalue="Application.TreeViewer" /> + <item index="1" class="java.lang.String" itemvalue="Application.IsRetina" /> </list> <recent_temporary> - <list size="1"> - <item index="0" class="java.lang.String" itemvalue="Application.TreeViewer" /> + <list size="2"> + <item index="0" class="java.lang.String" itemvalue="Application.IsRetina" /> + <item index="1" class="java.lang.String" itemvalue="Application.TreeViewer" /> </list> </recent_temporary> </component> @@ -1042,7 +1116,7 @@ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32988676" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> - <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.19593148" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.19593148" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> @@ -1055,7 +1129,7 @@ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.10870699" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.13034411" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> - <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.35653105" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.35653105" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32988676" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> @@ -1130,7 +1204,7 @@ <properties /> <option name="timeStamp" value="25" /> </line-breakpoint> - <line-breakpoint enabled="true" type="java-line"> + <line-breakpoint type="java-line"> <url>file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java</url> <line>930</line> <properties /> @@ -1142,6 +1216,12 @@ <properties /> <option name="timeStamp" value="31" /> </line-breakpoint> + <line-breakpoint enabled="true" type="java-line"> + <url>file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java</url> + <line>395</line> + <properties /> + <option name="timeStamp" value="32" /> + </line-breakpoint> <line-breakpoint type="java-method"> <url>file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java</url> <line>315</line> @@ -1158,7 +1238,7 @@ <breakpoints-dialog> <breakpoints-dialog /> </breakpoints-dialog> - <option name="time" value="32" /> + <option name="time" value="33" /> </breakpoint-manager> <watches-manager /> </component> @@ -1167,14 +1247,6 @@ <option name="FILTER_TARGETS" value="false" /> </component> <component name="editorHistoryManager"> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0"> - <caret line="176" column="54" selection-start-line="176" selection-start-column="54" selection-end-line="176" selection-end-column="54" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0"> @@ -1199,7 +1271,10 @@ <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0"> <caret line="218" column="40" selection-start-line="218" selection-start-column="40" selection-end-line="218" selection-end-column="40" /> - <folding /> + <folding> + <element signature="e#34682#34683#0" expanded="true" /> + <element signature="e#34716#34717#0" expanded="true" /> + </folding> </state> </provider> </entry> @@ -1408,20 +1483,6 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="0"> - <caret line="75" column="0" selection-start-line="75" selection-start-column="0" selection-end-line="75" selection-end-column="0" /> - <folding> - <element signature="imports" expanded="false" /> - <element signature="e#2987#2988#0" expanded="false" /> - <element signature="e#3035#3036#0" expanded="false" /> - <element signature="e#8245#8246#0" expanded="false" /> - <element signature="e#8311#8312#0" expanded="false" /> - </folding> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/ConnectionParams.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0" vertical-offset="711" max-vertical-offset="2700"> @@ -1497,20 +1558,22 @@ <state vertical-scroll-proportion="0.0" vertical-offset="127" max-vertical-offset="5568"> <caret line="53" column="36" selection-start-line="53" selection-start-column="36" selection-end-line="53" selection-end-column="36" /> <folding> - <element signature="e#1937#1938#0" expanded="true" /> - <element signature="e#1986#1987#0" expanded="true" /> + <element signature="e#0#10306#0" expanded="false" /> + <element signature="imports" expanded="false" /> + <element signature="e#1835#1836#0" expanded="false" /> + <element signature="e#1882#1883#0" expanded="false" /> + <element signature="e#3650#3651#0" expanded="false" /> + <element signature="e#3712#3713#0" expanded="false" /> + <element signature="e#3762#3763#0" expanded="false" /> + <element signature="e#3816#3817#0" expanded="false" /> + <element signature="e#8922#8923#0" expanded="false" /> + <element signature="e#8970#8971#0" expanded="false" /> + <element signature="e#9196#9197#0" expanded="false" /> + <element signature="e#9234#9235#0" expanded="false" /> </folding> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="3978" max-vertical-offset="6600"> - <caret line="307" column="41" selection-start-line="307" selection-start-column="41" selection-end-line="307" selection-end-column="41" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/ConnectionPresenter.java"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="-30.775" vertical-offset="5787" max-vertical-offset="7194"> @@ -1519,17 +1582,9 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java"> - <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.0" vertical-offset="2852" max-vertical-offset="15580"> - <caret line="215" column="52" selection-start-line="215" selection-start-column="52" selection-end-line="215" selection-end-column="52" /> - <folding /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingConnectionWorkerFactory.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.15410958" vertical-offset="0" max-vertical-offset="1460"> + <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="675"> <caret line="44" column="26" selection-start-line="44" selection-start-column="26" selection-end-line="44" selection-end-column="26" /> <folding /> </state> @@ -1543,14 +1598,13 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java"> + <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="-145.075" vertical-offset="6433" max-vertical-offset="12600"> - <caret line="464" column="0" selection-start-line="464" selection-start-column="0" selection-end-line="464" selection-end-column="0" /> + <state vertical-scroll-proportion="0.0" vertical-offset="14171" max-vertical-offset="15618"> + <caret line="908" column="34" selection-start-line="908" selection-start-column="34" selection-end-line="908" selection-end-column="34" /> <folding> - <element signature="e#0#15487#0" expanded="true" /> - <element signature="imports" expanded="true" /> - <element signature="e#14940#14951#0" expanded="true" /> + <element signature="e#34682#34683#0" expanded="true" /> + <element signature="e#34716#34717#0" expanded="true" /> </folding> </state> </provider> @@ -1566,14 +1620,54 @@ </state> </provider> </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0" vertical-offset="3978" max-vertical-offset="6600"> + <caret line="307" column="41" selection-start-line="307" selection-start-column="41" selection-end-line="307" selection-end-column="41" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0" vertical-offset="981" max-vertical-offset="2970"> + <caret line="75" column="0" selection-start-line="75" selection-start-column="0" selection-end-line="75" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.19829424" vertical-offset="13591" max-vertical-offset="16435"> - <caret line="887" column="0" selection-start-line="887" selection-start-column="0" selection-end-line="887" selection-end-column="0" /> + <state vertical-scroll-proportion="0.39930254" vertical-offset="16558" max-vertical-offset="20760"> + <caret line="860" column="59" selection-start-line="860" selection-start-column="0" selection-end-line="861" selection-end-column="0" /> <folding /> </state> </provider> </entry> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="-11.725" vertical-offset="10059" max-vertical-offset="12600"> + <caret line="395" column="0" selection-start-line="395" selection-start-column="0" selection-end-line="395" selection-end-column="0" /> + <folding> + <element signature="e#0#15487#0" expanded="true" /> + <element signature="imports" expanded="true" /> + <element signature="e#14940#14951#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/java/jp/ac/u_ryukyu/treevnc/test/IsRetina.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.50431037" vertical-offset="0" max-vertical-offset="1160"> + <caret line="39" column="0" selection-start-line="39" selection-start-column="0" selection-end-line="39" selection-end-column="0" /> + <folding> + <element signature="imports" expanded="true" /> + <element signature="e#1014#1015#0" expanded="true" /> + <element signature="e#1060#1061#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> </component> <component name="masterDetails"> <states>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/test/IsRetina.java Tue Aug 18 18:59:01 2015 +0900 @@ -0,0 +1,39 @@ +package jp.ac.u_ryukyu.treevnc.test; + +import java.awt.*; +import java.awt.image.BufferedImage; +import java.lang.reflect.Field; + +/** + * Created by one on 15/08/18. + */ +public class IsRetina { + public static final boolean isRetina = isRetina(); + + private static boolean isRetina() { +//other OS and JVM specific checks... + + GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); + final GraphicsDevice device = env.getDefaultScreenDevice(); + + try { + Field field = device.getClass().getDeclaredField("scale"); + + if (field != null) { + field.setAccessible(true); + Object scale = field.get(device); + + if (scale instanceof Integer && ((Integer)scale).intValue() == 2) { + return true; + } + } + } catch (Exception ignore) {} + + //... + return false; + } + + public static void main(String args[]) { + System.out.println(isRetina()); + } +}