org.eclipse.draw2d.geometry
Class Transposer
java.lang.Object
|
+--org.eclipse.draw2d.geometry.Transposer
- public class Transposer
- extends 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
|
Field Summary |
protected boolean |
enabled
|
|
Method Summary |
void |
disable()
Disables transposing of inputs. |
void |
enable()
Enables transposing of inputs. |
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 |
enabled
protected boolean enabled
Transposer
public Transposer()
disable
public void disable()
- Disables transposing of inputs.
- Since:
- 2.0
- See Also:
enable()
enable
public void enable()
- Enables transposing of inputs.
- Since:
- 2.0
- See Also:
disable()
setEnabled
public void setEnabled(boolean e)
- Sets the enabled state of this Transposer.
- Parameters:
e - State to be set.- 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 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 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 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 trasnposed Rectangle.
- Since:
- 2.0