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 Draw2d
3.3

org.eclipse.draw2d.geometry
Class Transposer

java.lang.Object
  extended by
org.eclipse.draw2d.geometry.Transposer

public class Transposer
extends java.lang.Object

Conditionally transposes geometrical objects based on an "enabled" flag. When enabled, the method t(Object) will transpose the passed geometrical object. Otherwise, the object will be returned without modification


Constructor Summary
Transposer ()
           
 
Method Summary
 void disable ()
          Disables transposing of inputs.
 void enable ()
          Enables transposing of inputs.
 boolean isEnabled ()
          Returns true if this Transposer is enabled.
 void setEnabled (boolean e)
          Sets the enabled state of this Transposer.
  Dimension t ( Dimension d)
          Returns a new transposed Dimension of the input Dimension.
  Insets t ( Insets i)
          Returns a new transposed Insets of the input Insets.
  Point t ( Point p)
          Returns a new transposed Point of the input Point.
  Rectangle t ( Rectangle r)
          Returns a new transposed Rectangle of the input Rectangle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transposer

public Transposer()
Method Detail

disable

public void disable()
Disables transposing of inputs.

Since:
2.0

enable

public void enable()
Enables transposing of inputs.

Since:
2.0

isEnabled

public boolean isEnabled()
Returns true if this Transposer is enabled.

Returns:
true if this Transposer is enabled
Since:
2.0

setEnabled

public void setEnabled(boolean e)
Sets the enabled state of this Transposer.

Parameters:
e - New enabled value
Since:
2.0

t

public 
Dimension t(
Dimension d)
Returns a new transposed Dimension of the input Dimension.

Parameters:
d - Input dimension being transposed.
Returns:
The new transposed dimension.
Since:
2.0

t

public 
Insets t(
Insets i)
Returns a new transposed Insets of the input Insets.

Parameters:
i - Insets to be transposed.
Returns:
The new transposed Insets.
Since:
2.0

t

public 
Point t(
Point p)
Returns a new transposed Point of the input Point.

Parameters:
p - Point to be transposed.
Returns:
The new transposed Point.
Since:
2.0

t

public 
Rectangle t(
Rectangle r)
Returns a new transposed Rectangle of the input Rectangle.

Parameters:
r - Rectangle to be transposed.
Returns:
The new trasnposed Rectangle.
Since:
2.0

Eclipse Draw2d
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