|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsimtools.shapes.AbstractShape
jsynoptic.builtin.Abstract1DShape
jsynoptic.builtin.Abstract2DShape
public abstract class Abstract2DShape
Base class for Polygons and Ellipses
| Nested Class Summary | |
|---|---|
static class |
Abstract2DShape.Abstract2DShapePropertiesNames
|
| 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 boolean |
dirtyFillColor
|
protected java.awt.Color |
fillColor
|
protected java.awt.Color |
fillDynamicColor
|
protected ColorMapper |
fillMapper
|
protected long |
fillMapperIndex
|
protected DataSource |
fillMapperSource
|
static java.util.ResourceBundle |
resources
|
| Fields inherited from class jsynoptic.builtin.Abstract1DShape |
|---|
allowResize, bounds2D, delegateEndNotificationListener, dirty, dirtyDrawColor, dirtyRectangle, drawColor, drawDynamicColor, drawMapper, drawMapperIndex, drawMapperSource, fixedRatio, link, MIN_SIZE, ratio, 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 | |
|---|---|
Abstract2DShape(int ox,
int oy,
int width,
int height)
|
|
| Method Summary | |
|---|---|
protected AbstractShape |
cloneShape()
Performs a copy of the shape This method has to be overriden to deal with concrete shapes |
JPropertiesPanel |
createPanel(java.lang.String shapeName)
|
void |
DataSourceIndexRangeChanged(DataSource ds,
long startIndex,
long lastIndex)
Called when the range of valid index changed |
void |
DataSourceReplaced(DataSource oldData,
DataSource newData)
Called when a data source is replaced by another one |
void |
DataSourceValueChanged(DataSource ds,
long minIndex,
long maxIndex)
Called when at least a value changed in the data source. |
void |
draw(java.awt.Graphics2D g)
Draws the shape |
protected void |
fillHook(java.awt.Graphics2D g)
A hook to fill this Abstract2D shape |
java.awt.Color |
getFillColor()
|
java.lang.String[] |
getPropertyNames()
Get the list of property names |
java.lang.Object |
getPropertyValue(java.lang.String name)
Get the value of the property named name |
void |
notificationEnd(java.lang.Object referer)
This callback is called after all notifications were processed. |
void |
setDelegateEndNotificationListener(EndNotificationListener denl)
This is useful if this shape belongs to an array of multiple text shapes, in which cas it is better to register the delegate if is is notified only once at each notification end Note1 : take care of read Objects too Note2 : don't forget to use this shape default handler if necessary |
void |
setPropertyValue(java.lang.String name,
java.lang.Object value)
Assigns value to the property named name |
| Methods inherited from class jsynoptic.builtin.Abstract1DShape |
|---|
canDoAction, canResize, contains, contains, contains, contains, createPanel, DataSourceInfoChanged, DataSourceOrderChanged, DataSourceValueRangeChanged, doAction, doCollectiveAction, drawHook, getActions, getBounds, getBounds2D, getCollectiveActions, getDelegateEndNotificationListener, getDelegateShape, getDrawColor, getDx, getDy, getLink, getPathIterator, getPathIterator, intersects, intersects, resize, setAnchor, setLink, translate, updateBounds, updateTransform |
| Methods inherited from class simtools.shapes.AbstractShape |
|---|
addListener, getAnchor, getInnerProperties, getMax, getMaxTranslated, getMin, notifyChange, notifyChange, refresh, removeListener, setAnchor, setProperties, wipeOff |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface simtools.diagram.Resizable |
|---|
resize |
| Methods inherited from interface simtools.data.DataSourceListener |
|---|
DataSourceInfoChanged, DataSourceOrderChanged, DataSourceValueRangeChanged |
| Field Detail |
|---|
public static java.util.ResourceBundle resources
protected java.awt.Color fillColor
protected transient java.awt.Color fillDynamicColor
protected ColorMapper fillMapper
protected transient DataSource fillMapperSource
protected transient long fillMapperIndex
protected transient boolean dirtyFillColor
| Constructor Detail |
|---|
public Abstract2DShape(int ox,
int oy,
int width,
int height)
| Method Detail |
|---|
protected AbstractShape cloneShape()
cloneShape in class Abstract1DShapepublic void draw(java.awt.Graphics2D g)
AbstractShape
draw in class Abstract1DShapeg - the graphics contextprotected void fillHook(java.awt.Graphics2D g)
g - the graphicspublic JPropertiesPanel createPanel(java.lang.String shapeName)
createPanel in class Abstract1DShapepublic void setDelegateEndNotificationListener(EndNotificationListener denl)
Abstract1DShape
setDelegateEndNotificationListener in class Abstract1DShapepublic void notificationEnd(java.lang.Object referer)
EndNotificationListener
notificationEnd in interface EndNotificationListenernotificationEnd in class Abstract1DShapepublic java.awt.Color getFillColor()
public void DataSourceIndexRangeChanged(DataSource ds,
long startIndex,
long lastIndex)
DataSourceListener
DataSourceIndexRangeChanged in interface DataSourceListenerDataSourceIndexRangeChanged in class Abstract1DShapeds - The data source that changedstartIndex - The new start IndexlastIndex - The new last index
public void DataSourceValueChanged(DataSource ds,
long minIndex,
long maxIndex)
DataSourceListener
DataSourceValueChanged in interface DataSourceListenerDataSourceValueChanged in class Abstract1DShapeds - The data source that changedminIndex - Lower bound of the range where values changedmaxIndex - Higher bound of the range where values changed
public void DataSourceReplaced(DataSource oldData,
DataSource newData)
DataSourceListener
DataSourceReplaced in interface DataSourceListenerDataSourceReplaced in class Abstract1DShape
public void setPropertyValue(java.lang.String name,
java.lang.Object value)
AbstractShapevalue to the property named name
setPropertyValue in interface NamedPropertiessetPropertyValue in class Abstract1DShapename - the name of the property to getvalue - its new valueAbstractShape.setPropertyValue(String, Object)public java.lang.String[] getPropertyNames()
NamedProperties
getPropertyNames in interface NamedPropertiesgetPropertyNames in class Abstract1DShapepublic java.lang.Object getPropertyValue(java.lang.String name)
AbstractShapename
getPropertyValue in interface NamedPropertiesgetPropertyValue in class Abstract1DShapename - the name of the property to get
AbstractShape.getPropertyValue(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||