ConForM.CoopnTools.CoKer.Visual
Interface GraphicalVisualRotatableNode

All Superinterfaces:
GraphicalVisualEditable, GraphicalVisualElement, GraphicalVisualNode, GraphicalVisualRenderable, GraphicalVisualShape, javax.swing.undo.StateEditable
All Known Implementing Classes:
AbstractGraphicalRotatableNode

public interface GraphicalVisualRotatableNode
extends GraphicalVisualNode

Graphical visual rotatable node. This interface defines the elements of graphical visual which are rotatable nodes, by extending graphical visual nodes. Rotatable nodes may be moved, rotated, and so on. Rotatable nodes have a RotatableNodeAspect aspect.


Fields inherited from interface javax.swing.undo.StateEditable
RCSID
 
Method Summary
 void abortRotation()
          Abort the rotation.
 void commitRotation()
          Commit the rotation.
 int getAngle()
          Get the angle.
 boolean rotate(int angle)
          Try to rotate the element.
 boolean rotate(int angle, int grid)
          Try to rotate the element on an angular grid
 void setLayoutAngle(int newAngle)
          Set the angle according to a layout.
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualNode
interfaceChanged, interfaceStatus
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualShape
addEndingArc, addNeighbour, addStartingArc, endingArcs, findEndingAttachementPointNear, findStartingAttachementPointNear, neighbours, removeNeighbour, shape, startingArcs
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualElement
attachToParent, description, externalBox, externalInfoBox, externalLabelBox, getInfo, getLocation, getShown, getShownInfo, getShownLabel, getStringTransfer, getTransferable, inducedSelection, induceSelection, inside, label, parent, parentMoved, partOfParent, selected, setLayoutLocation
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualEditable
abortMove, commitMove, inChange, move, move, moveInfo, moveInfo, moveLabel, moveLabel, restoreCompleteState, setColor, setInfo, setShown, setShownInfo, setShownLabel, storeCompleteState
 
Methods inherited from interface javax.swing.undo.StateEditable
restoreState, storeState
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualRenderable
actionOnMultipleClick, boundingBox, deselect, export, paint, pointedElement, print, saveAspect, saveAspectAs, saveAspectAsPossible, saveAspectPossible, selectElement, selectInfo, selectLabel, specificPopup
 

Method Detail

getAngle

public int getAngle()
Get the angle.
Returns:
The angle, ans an integer between 0 and 360. The angle is express in degree, with 0 degree representing an horizontal left to right * line, and increasing following the trigonometric sense.

setLayoutAngle

public void setLayoutAngle(int newAngle)
Set the angle according to a layout. This method is intended to be used by layouters only; it should not be called by external objects.
Parameters:
newAngle - the new angle

rotate

public boolean rotate(int angle)
Try to rotate the element.
Parameters:
angle - the angle as a integer; this parameter is evaluated module 360.

rotate

public boolean rotate(int angle,
                      int grid)
Try to rotate the element on an angular grid
Parameters:
angle - the angle as a integer; this parameter is evaluated module 360.
grid - the angular grid, as an angle (0 means no grid)

commitRotation

public void commitRotation()
Commit the rotation.

abortRotation

public void abortRotation()
Abort the rotation.