jsynoptic.plugins.java3d
Class Java3dShape
java.lang.Object
simtools.shapes.AbstractShape
jsynoptic.builtin.Abstract1DShape
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
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 |
Constructor Summary |
Java3dShape(int ox,
int oy,
int w,
int h,
Universe universe)
Create a new Shape |
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 |
_canvas
protected transient jsynoptic.plugins.java3d.Java3dShape.InternalCanvas3D _canvas
- the canvas used for offline rendering
Java3dShape
public Java3dShape(int ox,
int oy,
int w,
int h,
Universe universe)
- Create a new Shape
- Parameters:
ox
- x locationoy
- y locationw
- widthh
- heightuniverse
-
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 axisdy
- 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