Package org.eclipse.draw2d.geometry
Class Transposer
java.lang.Object
org.eclipse.draw2d.geometry.Transposer
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 SummaryConstructorsConstructorDescriptionTransposer(boolean enabled) Convenience constructor to initialize the "enabled" flag during creation.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddisable()Disables transposing of inputs.voidenable()Enables transposing of inputs.booleanReturnstrueif this Transposer is enabled.voidsetEnabled(boolean e) Sets the enabled state of this Transposer.Returns a new transposed Dimension of the input Dimension.Returns a new transposed Insets of the input Insets.Returns a new transposed Point of the input Point.Returns a new transposed Rectangle of the input Rectangle.
- 
Constructor Details- 
Transposerpublic Transposer()
- 
Transposerpublic Transposer(boolean enabled) Convenience constructor to initialize the "enabled" flag during creation.- Parameters:
- enabled- {code true}, whether geometrical objects should be transposed.
- Since:
- 3.13
 
 
- 
- 
Method Details- 
disablepublic void disable()Disables transposing of inputs.- Since:
- 2.0
 
- 
enablepublic void enable()Enables transposing of inputs.- Since:
- 2.0
 
- 
isEnabledpublic boolean isEnabled()Returnstrueif this Transposer is enabled.- Returns:
- trueif this Transposer is enabled
- Since:
- 2.0
 
- 
setEnabledpublic void setEnabled(boolean e) Sets the enabled state of this Transposer.- Parameters:
- e- New enabled value
- Since:
- 2.0
 
- 
tReturns a new transposed Dimension of the input Dimension.- Parameters:
- d- Input dimension being transposed.
- Returns:
- The new transposed dimension.
- Since:
- 2.0
 
- 
tReturns a new transposed Insets of the input Insets.- Parameters:
- i- Insets to be transposed.
- Returns:
- The new transposed Insets.
- Since:
- 2.0
 
- 
tReturns a new transposed Point of the input Point.- Parameters:
- p- Point to be transposed.
- Returns:
- The new transposed Point.
- Since:
- 2.0
 
- 
tReturns a new transposed Rectangle of the input Rectangle.- Parameters:
- r- Rectangle to be transposed.
- Returns:
- The new trasnposed Rectangle.
- Since:
- 2.0
 
 
-