Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
7d1a1925
Commit
7d1a1925
authored
6 years ago
by
Dominique Blouin
Browse files
Options
Downloads
Patches
Plain Diff
Changed inheritance for implementing zoom
parent
d30c529b
No related branches found
No related tags found
1 merge request
!287
Resolve "Zoom on all diagrams"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/ui/ad/TADComponentWithoutSubcomponents.java
+2
-2
2 additions, 2 deletions
src/main/java/ui/ad/TADComponentWithoutSubcomponents.java
src/main/java/ui/ad/TADOneLineText.java
+8
-1
8 additions, 1 deletion
src/main/java/ui/ad/TADOneLineText.java
with
10 additions
and
3 deletions
src/main/java/ui/ad/TADComponentWithoutSubcomponents.java
+
2
−
2
View file @
7d1a1925
package
ui.ad
;
package
ui.ad
;
import
ui.TDiagramPanel
;
import
ui.TDiagramPanel
;
import
ui.TGCWithoutInternalComponent
;
import
ui.TGC
Scalable
WithoutInternalComponent
;
import
ui.TGComponent
;
import
ui.TGComponent
;
/**
/**
...
@@ -9,7 +9,7 @@ import ui.TGComponent;
...
@@ -9,7 +9,7 @@ import ui.TGComponent;
* @author dblouin
* @author dblouin
*
*
*/
*/
public
abstract
class
TADComponentWithoutSubcomponents
extends
TGCWithoutInternalComponent
{
public
abstract
class
TADComponentWithoutSubcomponents
extends
TGC
Scalable
WithoutInternalComponent
/* Issue #31 TGCWithoutInternalComponent*/
{
public
TADComponentWithoutSubcomponents
(
int
_x
,
int
_y
,
int
_minX
,
int
_maxX
,
int
_minY
,
int
_maxY
,
public
TADComponentWithoutSubcomponents
(
int
_x
,
int
_y
,
int
_minX
,
int
_maxX
,
int
_minY
,
int
_maxY
,
boolean
_pos
,
TGComponent
_father
,
TDiagramPanel
_tdp
)
{
boolean
_pos
,
TGComponent
_father
,
TDiagramPanel
_tdp
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/ui/ad/TADOneLineText.java
+
8
−
1
View file @
7d1a1925
package
ui.ad
;
package
ui.ad
;
import
ui.ScalableTGComponent
;
import
ui.TDiagramPanel
;
import
ui.TDiagramPanel
;
import
ui.TGCOneLineText
;
import
ui.TGCOneLineText
;
import
ui.TGComponent
;
import
ui.TGComponent
;
import
ui.ZoomUtil
;
public
abstract
class
TADOneLineText
extends
TGCOneLineText
{
public
abstract
class
TADOneLineText
extends
TGCOneLineText
implements
ScalableTGComponent
{
public
TADOneLineText
(
int
_x
,
int
_y
,
int
_minX
,
int
_maxX
,
int
_minY
,
int
_maxY
,
boolean
_pos
,
TGComponent
_father
,
public
TADOneLineText
(
int
_x
,
int
_y
,
int
_minX
,
int
_maxX
,
int
_minY
,
int
_maxY
,
boolean
_pos
,
TGComponent
_father
,
TDiagramPanel
_tdp
)
{
TDiagramPanel
_tdp
)
{
...
@@ -22,4 +24,9 @@ public abstract class TADOneLineText extends TGCOneLineText {
...
@@ -22,4 +24,9 @@ public abstract class TADOneLineText extends TGCOneLineText {
return
visitor
.
isCanBeDisabled
();
return
visitor
.
isCanBeDisabled
();
}
}
@Override
public
void
rescale
(
final
double
scaleFactor
)
{
ZoomUtil
.
rescale
(
this
,
scaleFactor
);
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment