|
|||||||||
| 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
jsynoptic.builtin.EllipseShape
public class EllipseShape
The Ellipse shape handles ellipses (inc. circles) and arcs It delegates internally to a corresponding java shape
| Nested Class Summary | |
|---|---|
static class |
EllipseShape.EllipseShapePropertiesNames
|
| Nested classes/interfaces inherited from class jsynoptic.builtin.Abstract2DShape |
|---|
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 | |
|---|---|
static int |
ANGLE_UNIT_DEGREE
|
static int |
ANGLE_UNIT_RADIAN
|
protected boolean |
dirtyArc
|
protected java.awt.Shape |
ellipse
|
protected double |
end
|
protected DataSource |
endAngleSource
|
protected long |
endAngleSourceIndex
|
protected int |
endUnit
|
static java.util.ResourceBundle |
resources
|
protected double |
start
|
protected DataSource |
startAngleSource
|
protected long |
startAngleSourceIndex
|
protected int |
startUnit
|
static int |
TYPE_CHORD
|
static int |
TYPE_FULL
|
static int |
TYPE_OPEN
|
static int |
TYPE_PIE
|
| Fields inherited from class jsynoptic.builtin.Abstract2DShape |
|---|
dirtyFillColor, fillColor, fillDynamicColor, fillMapper, fillMapperIndex, fillMapperSource |
| 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 | |
|---|---|
EllipseShape(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()
|
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. |
protected java.awt.Shape |
getDelegateShape()
|
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 |
resize(int dx,
int dy)
Resize the component |
void |
setAnchor(int ox,
int oy)
|
void |
setPropertyValue(java.lang.String name,
java.lang.Object value)
Assigns value to the property named name |
void |
translate(int dx,
int dy)
Translates the shape |
protected boolean |
updateArc()
|
| Methods inherited from class jsynoptic.builtin.Abstract2DShape |
|---|
createPanel, draw, fillHook, getFillColor, setDelegateEndNotificationListener |
| Methods inherited from class jsynoptic.builtin.Abstract1DShape |
|---|
canDoAction, canResize, contains, contains, contains, contains, DataSourceInfoChanged, DataSourceOrderChanged, DataSourceValueRangeChanged, doAction, doCollectiveAction, drawHook, getActions, getBounds, getBounds2D, getCollectiveActions, getDelegateEndNotificationListener, getDrawColor, getDx, getDy, getLink, getPathIterator, getPathIterator, intersects, intersects, setLink, 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.data.DataSourceListener |
|---|
DataSourceInfoChanged, DataSourceOrderChanged, DataSourceValueRangeChanged |
| Field Detail |
|---|
public static java.util.ResourceBundle resources
public static final int ANGLE_UNIT_DEGREE
public static final int ANGLE_UNIT_RADIAN
public static final int TYPE_FULL
public static final int TYPE_PIE
public static final int TYPE_CHORD
public static final int TYPE_OPEN
protected int startUnit
protected int endUnit
protected transient double start
protected transient double end
protected transient java.awt.Shape ellipse
protected transient DataSource startAngleSource
protected transient DataSource endAngleSource
protected transient long startAngleSourceIndex
protected transient long endAngleSourceIndex
protected transient boolean dirtyArc
| Constructor Detail |
|---|
public EllipseShape(int ox,
int oy,
int width,
int height)
ox - oy - width - height - | Method Detail |
|---|
protected java.awt.Shape getDelegateShape()
getDelegateShape in class Abstract1DShape
public void translate(int dx,
int dy)
AbstractShape
translate in class Abstract1DShape
public void setAnchor(int ox,
int oy)
setAnchor in class Abstract1DShape
public void resize(int dx,
int dy)
Resizable
resize in interface Resizableresize in class Abstract1DShapedx - value on x axisdy - value on y axispublic JPropertiesPanel createPanel()
createPanel in class Abstract1DShapeprotected boolean updateArc()
public void notificationEnd(java.lang.Object referer)
EndNotificationListener
notificationEnd in interface EndNotificationListenernotificationEnd in class Abstract2DShape
public void DataSourceValueChanged(DataSource ds,
long minIndex,
long maxIndex)
DataSourceListener
DataSourceValueChanged in interface DataSourceListenerDataSourceValueChanged in class Abstract2DShapeds - The data source that changedminIndex - Lower bound of the range where values changedmaxIndex - Higher bound of the range where values changed
public void DataSourceIndexRangeChanged(DataSource ds,
long startIndex,
long lastIndex)
DataSourceListener
DataSourceIndexRangeChanged in interface DataSourceListenerDataSourceIndexRangeChanged in class Abstract2DShapeds - The data source that changedstartIndex - The new start IndexlastIndex - The new last index
public void DataSourceReplaced(DataSource oldData,
DataSource newData)
DataSourceListener
DataSourceReplaced in interface DataSourceListenerDataSourceReplaced in class Abstract2DShapeprotected AbstractShape cloneShape()
Abstract2DShape
cloneShape in class Abstract2DShape
public void setPropertyValue(java.lang.String name,
java.lang.Object value)
AbstractShapevalue to the property named name
setPropertyValue in interface NamedPropertiessetPropertyValue in class Abstract2DShapename - 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 Abstract2DShapepublic java.lang.Object getPropertyValue(java.lang.String name)
AbstractShapename
getPropertyValue in interface NamedPropertiesgetPropertyValue in class Abstract2DShapename - 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 | ||||||||