Package com.reportmill.panels
Class Scene3DTool
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.panels.Tool
-
- com.reportmill.panels.Scene3DTool
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.Cloneable
public class Scene3DTool extends Tool
Tool for editing RMScene3D in Swing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Scene3DTool.Scene3DControl
An inner class to provide inspector manipulation of a Scene3D's 3D orientation.-
Nested classes/interfaces inherited from class com.reportmill.panels.Tool
Tool.RMShapeHandle
-
-
Field Summary
-
Fields inherited from class com.reportmill.panels.Tool
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
-
-
Constructor Summary
Constructors Constructor Description Scene3DTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getShapeClass()
Returns the class that this tool is responsible for.RJPanel
getUI()
Returns the Swing UI panel.java.lang.String
getWindowTitle()
Returns the name of this tool for the inspector window.boolean
isInstance(java.lang.Object anObj)
Returns whether an object can be edited by this tool.void
mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for editing.void
mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for editing.void
mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for editing.void
reset(RMScene3D aScene)
Updates the Swing GUI from the given scene.void
resetUI()
Updates Swing UI panel from currently selected scene3d.void
respondUI(java.lang.Object anObj)
Updates currently selected scene 3d from Swing UI panel controls.void
respondUI(java.lang.Object anObj, RMScene3D aScene)
Updates the given scene 3d from Swing UI panel controls.-
Methods inherited from class com.reportmill.panels.Tool
activateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandleCount, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isSelected, isSuperSelected, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, willLoseSuperSelectionInEditor
-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Method Detail
-
resetUI
public void resetUI()
Updates Swing UI panel from currently selected scene3d.
-
reset
public void reset(RMScene3D aScene)
Updates the Swing GUI from the given scene.
-
respondUI
public void respondUI(java.lang.Object anObj)
Updates currently selected scene 3d from Swing UI panel controls.
-
respondUI
public void respondUI(java.lang.Object anObj, RMScene3D aScene)
Updates the given scene 3d from Swing UI panel controls.
-
getShapeClass
public java.lang.Class getShapeClass()
Returns the class that this tool is responsible for.- Overrides:
getShapeClass
in classTool
-
isInstance
public boolean isInstance(java.lang.Object anObj)
Returns whether an object can be edited by this tool.- Overrides:
isInstance
in classTool
-
getWindowTitle
public java.lang.String getWindowTitle()
Returns the name of this tool for the inspector window.- Overrides:
getWindowTitle
in classTool
-
mousePressed
public void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for editing.- Overrides:
mousePressed
in classTool
-
mouseDragged
public void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for editing.- Overrides:
mouseDragged
in classTool
-
mouseReleased
public void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for editing.- Overrides:
mouseReleased
in classTool
-
-