Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef
Class SnapToGeometry.Entry

java.lang.Object
  extended by
org.eclipse.gef.SnapToGeometry.Entry
Enclosing class:
SnapToGeometry

protected static class SnapToGeometry.Entry
extends java.lang.Object

A vertical or horizontal snapping point. since 3.0


Constructor Summary
protected SnapToGeometry.Entry (int type, int location)
          Constructs a new entry of the given type and location.
 
Method Summary
 int getLocation ()
          Returns the location of the snap entry.
 int getType ()
          Returns the snap type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapToGeometry.Entry

protected SnapToGeometry.Entry(int type,
                               int location)
Constructs a new entry of the given type and location.

Parameters:
type - an integer between -1 and 1 inclusively
location - the location
Method Detail

getLocation

public int getLocation()
Returns the location of the snap entry.

Returns:
the location
Since:
3.2

getType

public int getType()
Returns the snap type. The following values may be returned.
  • -1 indicates left/top
  • 0 indicates middle/center
  • 1 indicates right/bottom

Returns:
the snap type
Since:
3.2

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire