Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 433:ff7fa81f3616
Fix fitScreen with scroller
author | innparusu |
---|---|
date | Fri, 10 Jun 2016 19:58:59 +0900 |
parents | a80d190a9fc1 |
children | aad75cd6d9e2 |
files | .idea/workspace.xml src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 3 files changed, 181 insertions(+), 64 deletions(-) [+] |
line wrap: on
line diff
--- a/.idea/workspace.xml Wed Jun 08 21:18:38 2016 +0900 +++ b/.idea/workspace.xml Fri Jun 10 19:58:59 2016 +0900 @@ -3,6 +3,7 @@ <component name="ChangeListManager"> <list default="true" id="8c014d34-63b7-4e87-8d9c-e9f73c2c3803" name="Default" comment=""> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> + <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" /> </list> <ignored path="TreeVNC.iws" /> @@ -26,6 +27,16 @@ <ProjectState /> </projectState> </component> + <component name="ExternalProjectsManager"> + <system id="GRADLE"> + <state> + <task path="$PROJECT_DIR$"> + <activation /> + </task> + <projects_view /> + </state> + </system> + </component> <component name="FavoritesManager"> <favorites_list name="TreeVNC" /> </component> @@ -44,8 +55,8 @@ <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="-6.019608"> - <caret line="827" column="32" selection-start-line="827" selection-start-column="32" selection-end-line="827" selection-end-column="32" /> + <state vertical-scroll-proportion="-14.156863"> + <caret line="827" column="34" selection-start-line="827" selection-start-column="34" selection-end-line="827" selection-end-column="34" /> <folding> <element signature="imports" expanded="true" /> </folding> @@ -76,28 +87,51 @@ <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.54131734"> - <caret line="1024" column="8" selection-start-line="1024" selection-start-column="8" selection-end-line="1024" selection-end-column="8" /> + <state vertical-scroll-proportion="0.3446635"> + <caret line="1022" column="44" selection-start-line="1022" selection-start-column="44" selection-end-line="1022" selection-end-column="44" /> <folding> + <element signature="e#14143#14397#0" expanded="true" /> + <element signature="e#14396#14397#0" expanded="true" /> <element signature="e#34754#35093#0" expanded="true" /> <element signature="e#35092#35093#0" expanded="true" /> <element signature="e#35708#36105#0" expanded="true" /> <element signature="e#36104#36105#0" expanded="true" /> - <element signature="e#40465#40591#0" expanded="true" /> - <element signature="e#43619#43620#0" expanded="true" /> - <element signature="e#43654#43655#0" expanded="true" /> - <element signature="e#44178#44179#0" expanded="true" /> - <element signature="e#44211#44212#0" expanded="true" /> + <element signature="e#41200#41494#0" expanded="true" /> + <element signature="e#41493#41494#0" expanded="true" /> + <element signature="e#44522#44523#0" expanded="true" /> + <element signature="e#44557#44558#0" expanded="true" /> + <element signature="e#45081#45082#0" expanded="true" /> + <element signature="e#45114#45115#0" expanded="true" /> </folding> </state> </provider> </entry> </file> + <file leaf-file-name="UiSettings.java" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/UiSettings.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="79" column="9" selection-start-line="79" selection-start-column="9" selection-end-line="79" selection-end-column="9" /> + <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"> + <state vertical-scroll-proportion="0.0"> + <caret line="192" column="37" selection-start-line="192" selection-start-column="37" selection-end-line="192" selection-end-column="37" /> + <folding /> + </state> + </provider> + </entry> + </file> <file leaf-file-name="ConnectionPresenter.java" pinned="false" current-in-tab="false"> <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"> - <caret line="413" column="16" selection-start-line="413" selection-start-column="16" selection-end-line="413" selection-end-column="16" /> + <caret line="174" column="27" selection-start-line="174" selection-start-column="27" selection-end-line="174" selection-end-column="27" /> <folding /> </state> </provider> @@ -107,7 +141,7 @@ <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="0.0"> - <caret line="333" column="46" selection-start-line="333" selection-start-column="46" selection-end-line="333" selection-end-column="46" /> + <caret line="333" column="41" selection-start-line="333" selection-start-column="41" selection-end-line="333" selection-end-column="41" /> <folding /> </state> </provider> @@ -417,6 +451,7 @@ <option name="CHANGED_PATHS"> <list> <option value="$PROJECT_DIR$/Todo.txt" /> + <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java" /> <option value="$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java" /> </list> </option> @@ -429,10 +464,10 @@ </option> </component> <component name="ProjectFrameBounds"> - <option name="x" value="342" /> - <option name="y" value="83" /> - <option name="width" value="3056" /> - <option name="height" value="1501" /> + <option name="x" value="4" /> + <option name="y" value="23" /> + <option name="width" value="3836" /> + <option name="height" value="2137" /> </component> <component name="ProjectLevelVcsManager" settingsEditedManually="false"> <OptionsSetting value="true" id="Add" /> @@ -552,6 +587,36 @@ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> </PATH_ELEMENT> <PATH_ELEMENT> + <option name="myItemId" value="viewer_swing" /> + <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="viewer" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="swing" /> + <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> @@ -605,7 +670,27 @@ <property name="settings.editor.splitter.proportion" value="0.2" /> <property name="SearchEverywhereHistoryKey" value="fit	PSI	JAVA://com.glavsoft.viewer.swing.SwingViewerWindow#fitScreen" /> </component> - <component name="RunManager" selected="Application.TreeViewer"> + <component name="RunManager" selected="Application.TreeVNC -d"> + <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> + <option name="PATTERN" value="com.glavsoft.viewer.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <option name="MAIN_CLASS_NAME" value="com.glavsoft.viewer.TreeViewer" /> + <option name="VM_PARAMETERS" value="" /> + <option name="PROGRAM_PARAMETERS" value="" /> + <option name="WORKING_DIRECTORY" value="file://$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 /> + <method /> + </configuration> <configuration default="false" name="Tests in 'TreeVNC'" type="GradleRunConfiguration" factoryName="Gradle" temporary="true"> <ExternalSystemSettings> <option name="executionName" /> @@ -625,26 +710,6 @@ </ExternalSystemSettings> <method /> </configuration> - <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> - <option name="PATTERN" value="com.glavsoft.viewer.*" /> - <option name="ENABLED" value="true" /> - </pattern> - </extension> - <option name="MAIN_CLASS_NAME" value="com.glavsoft.viewer.TreeViewer" /> - <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 /> - <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" /> @@ -889,9 +954,25 @@ <listeners /> <method /> </configuration> - <list size="2"> - <item index="0" class="java.lang.String" itemvalue="Gradle.Tests in 'TreeVNC'" /> + <configuration default="false" name="TreeVNC -d" type="Application" factoryName="Application"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <option name="MAIN_CLASS_NAME" value="com.glavsoft.viewer.TreeViewer" /> + <option name="VM_PARAMETERS" value="" /> + <option name="PROGRAM_PARAMETERS" value="-d" /> + <option name="WORKING_DIRECTORY" value="file://$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 /> + <method /> + </configuration> + <list size="3"> + <item index="0" class="java.lang.String" itemvalue="Application.TreeVNC -d" /> <item index="1" class="java.lang.String" itemvalue="Application.TreeViewer" /> + <item index="2" class="java.lang.String" itemvalue="Gradle.Tests in 'TreeVNC'" /> </list> <recent_temporary> <list size="2"> @@ -917,7 +998,13 @@ <option name="project" value="LOCAL" /> <updated>1465386847912</updated> </task> - <option name="localTasksCounter" value="2" /> + <task id="LOCAL-00002" summary="trying to fix fitScreen"> + <created>1465388318542</created> + <option name="number" value="00002" /> + <option name="project" value="LOCAL" /> + <updated>1465388318542</updated> + </task> + <option name="localTasksCounter" value="3" /> <servers /> </component> <component name="TestHistory"> @@ -929,21 +1016,21 @@ </history-entry> </component> <component name="ToolWindowManager"> - <frame x="342" y="83" width="3056" height="1501" extended-state="0" /> + <frame x="4" y="23" width="3836" height="2137" extended-state="6" /> <editor active="true" /> <layout> <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> - <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3299639" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> + <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32953984" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> - <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3299639" 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" show_stripe_button="true" weight="0.22612569" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> - <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> - <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.106348164" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.19916579" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> + <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.084723674" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> <window_info id="Gradle" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" 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" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> @@ -957,6 +1044,14 @@ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> </layout> </component> + <component name="Vcs.Log.UiProperties"> + <option name="RECENTLY_FILTERED_USER_GROUPS"> + <collection /> + </option> + <option name="RECENTLY_FILTERED_BRANCH_GROUPS"> + <collection /> + </option> + </component> <component name="VcsContentAnnotationSettings"> <option name="myLimit" value="2678400000" /> </component> @@ -1006,10 +1101,18 @@ </state> </provider> </entry> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/UiSettings.java"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="79" column="9" selection-start-line="79" selection-start-column="9" selection-end-line="79" selection-end-column="9" /> + <folding /> + </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="-6.019608"> - <caret line="827" column="32" selection-start-line="827" selection-start-column="32" selection-end-line="827" selection-end-column="32" /> + <state vertical-scroll-proportion="-14.156863"> + <caret line="827" column="34" selection-start-line="827" selection-start-column="34" selection-end-line="827" selection-end-column="34" /> <folding> <element signature="imports" expanded="true" /> </folding> @@ -1019,7 +1122,7 @@ <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="0.0"> - <caret line="333" column="46" selection-start-line="333" selection-start-column="46" selection-end-line="333" selection-end-column="46" /> + <caret line="333" column="41" selection-start-line="333" selection-start-column="41" selection-end-line="333" selection-end-column="41" /> <folding /> </state> </provider> @@ -1027,33 +1130,36 @@ <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"> - <caret line="413" column="16" selection-start-line="413" selection-start-column="16" selection-end-line="413" selection-end-column="16" /> + <caret line="174" column="27" selection-start-line="174" selection-start-column="27" selection-end-line="174" selection-end-column="27" /> <folding /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/UiSettings.java"> + <entry file="file://$PROJECT_DIR$/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java"> <provider selected="true" editor-type-id="text-editor"> - <state vertical-scroll-proportion="0.2020316"> - <caret line="199" column="16" selection-start-line="199" selection-start-column="16" selection-end-line="199" selection-end-column="16" /> + <state vertical-scroll-proportion="0.0"> + <caret line="192" column="37" selection-start-line="192" selection-start-column="37" selection-end-line="192" selection-end-column="37" /> <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.54131734"> - <caret line="1024" column="8" selection-start-line="1024" selection-start-column="8" selection-end-line="1024" selection-end-column="8" /> + <state vertical-scroll-proportion="0.3446635"> + <caret line="1022" column="44" selection-start-line="1022" selection-start-column="44" selection-end-line="1022" selection-end-column="44" /> <folding> + <element signature="e#14143#14397#0" expanded="true" /> + <element signature="e#14396#14397#0" expanded="true" /> <element signature="e#34754#35093#0" expanded="true" /> <element signature="e#35092#35093#0" expanded="true" /> <element signature="e#35708#36105#0" expanded="true" /> <element signature="e#36104#36105#0" expanded="true" /> - <element signature="e#40465#40591#0" expanded="true" /> - <element signature="e#43619#43620#0" expanded="true" /> - <element signature="e#43654#43655#0" expanded="true" /> - <element signature="e#44178#44179#0" expanded="true" /> - <element signature="e#44211#44212#0" expanded="true" /> + <element signature="e#41200#41494#0" expanded="true" /> + <element signature="e#41493#41494#0" expanded="true" /> + <element signature="e#44522#44523#0" expanded="true" /> + <element signature="e#44557#44558#0" expanded="true" /> + <element signature="e#45081#45082#0" expanded="true" /> + <element signature="e#45114#45115#0" expanded="true" /> </folding> </state> </provider>
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java Wed Jun 08 21:18:38 2016 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java Fri Jun 10 19:58:59 2016 +0900 @@ -191,7 +191,6 @@ if (previousViewerWindow != null) previousViewerWindow.setVisible(false); viewerWindow.fitScreen(); - viewerWindow.zoomToFit(); } }
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Wed Jun 08 21:18:38 2016 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Fri Jun 10 19:58:59 2016 +0900 @@ -1010,17 +1010,29 @@ int thisScreenHeight = (int) rectangles.get(leftScreenNumber).getHeight(); - int thatScreenX = (int) presenter.getX(); - int thatScreenY = (int) presenter.getY(); + final int thatScreenX = (int) presenter.getX(); + final int thatScreenY = (int) presenter.getY(); + final int thatScreenWidth = presenter.getFrameSizeWidth(); + final int thatScreenHeight = presenter.getFrameSizeHeight(); + System.out.println("thatScreenX:"+thatScreenX); + System.out.println("thatScreenY:"+thatScreenY); + System.out.println("thatScreenWidth:"+thatScreenWidth); + System.out.println("thatScreenHeight:"+thatScreenHeight); + System.out.println("getMaximum:"+scroller.getHorizontalScrollBar().getMaximum()); + System.out.println("getMinmum:"+scroller.getHorizontalScrollBar().getMinimum()); + // uiSettings.zoomToFit(2*thatScreenWidth, 2*thatScreenHeight, thisScreenWidth, thisScreenHeight); int singleWidth = viewer.getRfb().getSingleWidth() * viewer.getRfb().getRetinaScale(); int singleHeight = viewer.getRfb().getSingleHeight() * viewer.getRfb().getRetinaScale(); - frame.setSize(thisScreenWidth, thisScreenHeight); + System.out.println("singleeight:"+singleHeight); + //frame.setSize(thisScreenWidth, thisScreenHeight); uiSettings.fitScreen(thisScreenWidth, thisScreenHeight, singleWidth, singleHeight); - final Rectangle visible = new Rectangle(thatScreenX,thatScreenY,thisScreenWidth,thisScreenHeight); + final Rectangle visible = new Rectangle(thatScreenX,thatScreenY,thatScreenWidth,thatScreenHeight); SwingUtilities.invokeLater(new Runnable(){ public void run() { - scroller.scrollRectToVisible(visible); + scroller.getHorizontalScrollBar().setValue((int)(thatScreenX*1.5)); + scroller.getVerticalScrollBar().setValue((int)(thatScreenY*1.5)); + //scroller.scrollRectToVisible(visible); } }); }