Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TULIP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NUI
TULIP
Commits
622c7a3f
Commit
622c7a3f
authored
Oct 30, 2015
by
Eric Tobias
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of git.list.lu:nui/tulip into dev
parents
7fca47bb
d857a08c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
4 deletions
+65
-4
TULIP/src/lu/list/itis/dkd/tui/space/SpatialMatrix.java
TULIP/src/lu/list/itis/dkd/tui/space/SpatialMatrix.java
+16
-4
TULIP/src/lu/list/itis/dkd/tui/space/SpatialPositioningManager.java
...lu/list/itis/dkd/tui/space/SpatialPositioningManager.java
+49
-0
No files found.
TULIP/src/lu/list/itis/dkd/tui/space/SpatialMatrix.java
View file @
622c7a3f
...
...
@@ -287,7 +287,10 @@ public class SpatialMatrix {
* are tied.
*/
public
TangibleObject
getLeftMostObject
()
{
if
(
horizontal
.
size
()
>
0
)
return
horizontal
.
get
(
0
);
return
null
;
}
/**
...
...
@@ -298,7 +301,10 @@ public class SpatialMatrix {
* tied.
*/
public
TangibleObject
getRightMostObject
()
{
if
(
horizontal
.
size
()
>
0
)
return
horizontal
.
get
(
horizontal
.
size
()
-
1
);
return
null
;
}
/**
...
...
@@ -309,7 +315,10 @@ public class SpatialMatrix {
* are tied.
*/
public
TangibleObject
getTopObject
()
{
if
(
vertical
.
size
()
>
0
)
return
vertical
.
get
(
0
);
return
null
;
}
/**
...
...
@@ -320,7 +329,10 @@ public class SpatialMatrix {
* tied.
*/
public
TangibleObject
getBottomObject
()
{
if
(
vertical
.
size
()
>
0
)
return
vertical
.
get
(
vertical
.
size
()
-
1
);
return
null
;
}
/**
...
...
TULIP/src/lu/list/itis/dkd/tui/space/SpatialPositioningManager.java
View file @
622c7a3f
...
...
@@ -164,9 +164,22 @@ public class SpatialPositioningManager implements SpatialEventListener {
* are tied.
*/
public
BaseWidget
getLeftMostWidget
()
{
if
(
spatialMatrix
.
getLeftMostObject
()
==
null
)
return
null
;
return
TangibleObjectManager
.
getWidget
(
spatialMatrix
.
getLeftMostObject
().
getObjectId
());
}
/**
* The method will return the left-most tangible object.
*
* @return The object with the smallest x coordinate.
*/
public
TangibleObject
getLeftMostObject
()
{
return
spatialMatrix
.
getLeftMostObject
();
}
/**
* The method will return the right-most widget, that is, the last widget found based based on
* its x-axis coordinate. The retrieval is based on the underlying handles.
...
...
@@ -175,9 +188,21 @@ public class SpatialPositioningManager implements SpatialEventListener {
* tied.
*/
public
BaseWidget
getRightMostWidget
()
{
if
(
spatialMatrix
.
getRightMostObject
()
==
null
)
return
null
;
return
TangibleObjectManager
.
getWidget
(
spatialMatrix
.
getRightMostObject
().
getObjectId
());
}
/**
* The method will return the right-most tangible object.
*
* @return The object with the largest x coordinate.
*/
public
TangibleObject
getRightMostObject
()
{
return
spatialMatrix
.
getRightMostObject
();
}
/**
* The method will return the top-most widget, that is, the first widget found based based on
* its y-axis coordinate. The retrieval is based on the underlying handles.
...
...
@@ -186,9 +211,21 @@ public class SpatialPositioningManager implements SpatialEventListener {
* are tied.
*/
public
BaseWidget
getTopWidget
()
{
if
(
spatialMatrix
.
getTopObject
()
==
null
)
return
null
;
return
TangibleObjectManager
.
getWidget
(
spatialMatrix
.
getTopObject
().
getObjectId
());
}
/**
* The method will return the top-most tangible object.
*
* @return The object with the smallest y coordinate.
*/
public
TangibleObject
getTopObject
()
{
return
spatialMatrix
.
getTopObject
();
}
/**
* The method will return the bottom-most widget, that is, the last widget found based based on
* its y-axis coordinate. The retrieval is based on the underlying handles.
...
...
@@ -197,9 +234,21 @@ public class SpatialPositioningManager implements SpatialEventListener {
* tied.
*/
public
BaseWidget
getBottomWidget
()
{
if
(
spatialMatrix
.
getBottomObject
()
==
null
)
return
null
;
return
TangibleObjectManager
.
getWidget
(
spatialMatrix
.
getBottomObject
().
getObjectId
());
}
/**
* The method will return the bottom-most tangible object.
*
* @return The object with the largest y coordinate.
*/
public
TangibleObject
getBottomObject
()
{
return
spatialMatrix
.
getBottomObject
();
}
/**
* Method for returning a list of widgets that are to the left of a given widget. The method
* either returns all objects no matter their alignment with this widget, or only returns
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment