jsynoptic.plugins.java3d
Class Java3dShape

java.lang.Object
  extended by simtools.shapes.AbstractShape
      extended by jsynoptic.builtin.Abstract1DShape
          extended by jsynoptic.plugins.java3d.Java3dShape
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable, ContextualActionProvider, Linkable, SelectionContextualActionProvider, AffineTransformData.Listener, DataSourceListener, EndNotificationListener, DiagramComponent.ContextualDrawingProvider, Resizable, NamedProperties

public class Java3dShape
extends Abstract1DShape
implements Resizable, DiagramComponent.ContextualDrawingProvider

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jsynoptic.builtin.Abstract1DShape
Abstract1DShape.Abstract1DShapePropertiesNames
 
Nested classes/interfaces inherited from class simtools.shapes.AbstractShape
AbstractShape.AbstractShapePropertiesNames
 
Field Summary
protected  jsynoptic.plugins.java3d.Java3dShape.InternalCanvas3D _canvas
          the canvas used for offline rendering
 
Fields inherited from class jsynoptic.builtin.Abstract1DShape
allowResize, bounds2D, delegateEndNotificationListener, dirty, dirtyDrawColor, dirtyRectangle, drawColor, drawDynamicColor, drawMapper, drawMapperIndex, drawMapperSource, fixedRatio, link, MIN_SIZE, ratio, resources, stroke, strokeParams, transform
 
Fields inherited from class simtools.shapes.AbstractShape
_h, _ox, _oy, _propertyNames, _w, _x, _y, ANTI_ALIASING, currentDialogBox, FONT_NAMES, listeners, REFRESH_PERIOD
 
Fields inherited from interface jsynoptic.base.ContextualActionProvider
EDITOR_CONTEXT, MOUSE_OUT_CONTEXT, MOUSE_OVER_CONTEXT, MOUSE_PRESSED_CONTEXT, SHAPELIST_CONTEXT, SOURCELIST_CONTEXT
 
Constructor Summary
Java3dShape(int ox, int oy, int w, int h, Universe universe)
          Create a new Shape
 
Method Summary
 void addListener(ShapeListener sl)
           
protected  AbstractShape cloneShape()
          Performs a copy of the shape This method has to be overriden to deal with concrete shapes
protected  void drawHook(java.awt.Graphics2D g, boolean shapeDrawn)
          For subclasses, called before restoring original graphics properties, after the delegate shape is drawn if shapeDrawn is true, or after saving the current context, before the delegate shape is drawn if shapeDrawn is false
 DiagramComponent.ContextualDrawing getContextualDrawing(DiagramSelection s)
           
protected  java.awt.Shape getDelegateShape()
           
 void removeListener(ShapeListener sl)
           
 void resize(int dx, int dy)
          Resize the component
 
Methods inherited from class jsynoptic.builtin.Abstract1DShape
canDoAction, canResize, contains, contains, contains, contains, createPanel, createPanel, DataSourceIndexRangeChanged, DataSourceInfoChanged, DataSourceOrderChanged, DataSourceReplaced, DataSourceValueChanged, DataSourceValueRangeChanged, doAction, doCollectiveAction, draw, getActions, getBounds, getBounds2D, getCollectiveActions, getDelegateEndNotificationListener, getDrawColor, getDx, getDy, getLink, getPathIterator, getPathIterator, getPropertyNames, getPropertyValue, intersects, intersects, notificationEnd, setAnchor, setDelegateEndNotificationListener, setLink, setPropertyValue, translate, updateBounds, updateTransform
 
Methods inherited from class simtools.shapes.AbstractShape
getAnchor, getInnerProperties, getMax, getMaxTranslated, getMin, notifyChange, notifyChange, refresh, setAnchor, setProperties, wipeOff
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_canvas

protected transient jsynoptic.plugins.java3d.Java3dShape.InternalCanvas3D _canvas
the canvas used for offline rendering

Constructor Detail

Java3dShape

public Java3dShape(int ox,
                   int oy,
                   int w,
                   int h,
                   Universe universe)
Create a new Shape

Parameters:
ox - x location
oy - y location
w - width
h - height
universe -
Method Detail

resize

public void resize(int dx,
                   int dy)
Description copied from interface: Resizable
Resize the component

Specified by:
resize in interface Resizable
Overrides:
resize in class Abstract1DShape
Parameters:
dx - value on x axis
dy - value on y axis

getDelegateShape

protected java.awt.Shape getDelegateShape()
Specified by:
getDelegateShape in class Abstract1DShape

drawHook

protected void drawHook(java.awt.Graphics2D g,
                        boolean shapeDrawn)
Description copied from class: Abstract1DShape
For subclasses, called before restoring original graphics properties, after the delegate shape is drawn if shapeDrawn is true, or after saving the current context, before the delegate shape is drawn if shapeDrawn is false

Overrides:
drawHook in class Abstract1DShape

cloneShape

protected AbstractShape cloneShape()
Description copied from class: Abstract1DShape
Performs a copy of the shape This method has to be overriden to deal with concrete shapes

Overrides:
cloneShape in class Abstract1DShape
Returns:
a copy of the shape

addListener

public void addListener(ShapeListener sl)
Overrides:
addListener in class AbstractShape

removeListener

public void removeListener(ShapeListener sl)
Overrides:
removeListener in class AbstractShape

getContextualDrawing

public DiagramComponent.ContextualDrawing getContextualDrawing(DiagramSelection s)
Specified by:
getContextualDrawing in interface DiagramComponent.ContextualDrawingProvider