|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.Presentable
public abstract class Presentable
A base for any object that can be displayed by presentation panel. Is capable of drawing model and presentation parts of the object in a Graphics2D context of a Panel. Contains a number of get... methods that return properties of non-persistent shapes. Non-persistent shapes are identified by their id and index (for replicated shapes).
| Field Summary | |
|---|---|
static int |
ALIGNMENT_CENTER
Text alignment type constant |
static int |
ALIGNMENT_LEFT
Text alignment type constant |
static int |
ALIGNMENT_RIGHT
Text alignment type constant |
static int |
CAD_ANTIALIASING
Attribute of CAD indicating that CAD should be drawn using antialiasing. |
static int |
CAD_INVERTED
Attribute of CAD indicating that CAD should be drawn in inverted colors. |
static int |
LINE_STYLE_DASHED
|
static int |
LINE_STYLE_DOTTED
|
static int |
LINE_STYLE_SOLID
|
static int |
NAVIGATION_FULL
3D Window navigation mode constant. |
static int |
NAVIGATION_LIMITED_TO_Z_ABOVE_ZERO
3D Window navigation mode constant. |
static int |
NAVIGATION_NONE
3D Window navigation mode constant. |
static int |
NAVIGATION_ROTATION_ONLY
3D Window navigation mode constant. |
static int |
SHAPE_ARC
|
static int |
SHAPE_BUTTON
|
static int |
SHAPE_CAD
|
static int |
SHAPE_CHART_BAR
|
static int |
SHAPE_CHART_HISTOGRAM
|
static int |
SHAPE_CHART_HISTOGRAM2D
|
static int |
SHAPE_CHART_PIE
|
static int |
SHAPE_CHART_PLOT
|
static int |
SHAPE_CHART_STACK
|
static int |
SHAPE_CHART_TIME_COLOR
|
static int |
SHAPE_CHART_TIME_PLOT
|
static int |
SHAPE_CHART_TIME_STACK
|
static int |
SHAPE_CHECKBOX
|
static int |
SHAPE_COMBOBOX
|
static int |
SHAPE_CURVE
|
static int |
SHAPE_EMBEDDED_OBJECT
|
static int |
SHAPE_FILECHOOSER
|
static int |
SHAPE_GROUP
|
static int |
SHAPE_IMAGE
|
static int |
SHAPE_LINE
|
static int |
SHAPE_LISTBOX
|
static int |
SHAPE_OVAL
|
static int |
SHAPE_PIXEL
|
static int |
SHAPE_POLYLINE
|
static int |
SHAPE_PROGRESSBAR
|
static int |
SHAPE_RADIOBUTTONS
|
static int |
SHAPE_RECTANGLE
|
static int |
SHAPE_ROUNDED_RECTANGLE
|
static int |
SHAPE_SLIDER
|
static int |
SHAPE_TEXT
|
static int |
SHAPE_TEXTFIELD
|
| Constructor Summary | |
|---|---|
Presentable()
|
|
| Method Summary | |
|---|---|
boolean |
contains(int id,
double px,
double py)
Tests if a (possibly, replicated) non-persistent shape contains the point with the coordinates (px,py). |
void |
drawCollection(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object collection)
Draws a collection image and its name at the given positions and (if the collection implements Collection interface) displays the number of elements underneath the name. |
void |
drawDatabase(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
Draws a database object image and its name at the given positions. |
void |
drawDataset(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object dataset)
Draws a dataset image and its name at the given positions. |
void |
drawExcelFile(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
Draws an Excel file object image and its name at the given positions. |
void |
drawFunction(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name)
Draws a function image and its name at the given positions. |
void |
drawHistogram2DData(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object histogram2DData)
Draws a histogram 2D data image and its name at the given positions. |
void |
drawHistogramData(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object histogramData)
Draws a histogram data image and its name at the given positions. |
void |
drawInsert(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
Draws a insert object image and its name at the given positions. |
void |
drawKeyValueTable(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
Draws a table object image and its name at the given positions. |
void |
drawModel(Panel panel,
java.awt.Graphics2D g,
boolean publicOnly)
Draws the presentation graphics marked as icon, and the model elements (variables, parameters, events, statecharts, etc. model parts of embedded objects) of the presentable object. |
void |
drawModelElements(Panel panel,
java.awt.Graphics2D g,
boolean publicOnly)
Should be overridden to draw the model primitives (variables, parameters, events, statecharts, connectors, etc.) of the presentatable object and also the model parts of its embedded objects (for latter call drawEmbeddedObjectModel(...)). |
void |
drawPlainVariable(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object var,
boolean constant)
Draws a variable image and its name at the given positions and displays the variable toString text underneath the name. |
void |
drawPresentation(Panel panel,
java.awt.Graphics2D g,
boolean publicOnly)
Draws the presentation elements of the of the presentable object (shapes, controls, charts, and presentations of the embedded objects). |
void |
drawQuery(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
Draws a query object image and its name at the given positions. |
void |
drawSchedule(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
Schedule<?> s)
Draws a schedule image and its name at the given positions. |
void |
drawShape(int id,
Panel panel,
java.awt.Graphics2D g,
java.awt.geom.AffineTransform xform,
boolean publicOnly)
Draws a (possibly, replicated) non-persistent shape, control or chart in the given graphics context. |
void |
drawStatistics(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object statistics)
Draws a statistics image and its name at the given positions. |
void |
drawTableFunction(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name)
Draws a table function image and its name at the given positions. |
void |
drawTextFile(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
Draws a text file object image and its name at the given positions. |
void |
drawUpdate(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
Draws a update object image and its name at the given positions. |
void |
executeShapeControlAction(int id,
int index)
Should be overridden to execute the action associated with a non-persistent control that has no value information (like button). |
void |
executeShapeControlAction(int id,
int index,
boolean value)
Should be overridden to execute the action associated with a non-persistent control that has a boolean value (like checkbox). |
void |
executeShapeControlAction(int id,
int index,
double value)
Should be overridden to execute the action associated with a non-persistent control that has a double value (like slider). |
void |
executeShapeControlAction(int id,
int index,
int value)
Should be overridden to execute the action associated with a non-persistent control that has an integer value (like radio button group or list). |
void |
executeShapeControlAction(int id,
int index,
java.lang.String value)
Should be overridden to execute the action associated with a non-persistent control that has a String value (like text field). |
void |
executeShapeControlAction(int id,
int index,
java.lang.String value,
java.lang.String[] values)
Should be overridden to execute the action associated with a non-persistent control that has a one or more String values (like list box). |
void |
finishReadObject_xjal(java.io.ObjectInputStream in,
java.lang.Class<? extends Presentable> callerClass)
This method should not be called by user |
abstract Engine |
getEngine()
Returns the simulation engine. |
Experiment<?> |
getExperiment()
Returns the experiment controlling the model execution. |
java.lang.String |
getNameOfShape(int id)
Must be overridden to return the name of a non-persistent shape. |
java.lang.Object |
getPersistentShape(int id)
Should be overridden to return the Shape / ReplicatedShape if the id corresponds to a persistent shape, or null if it corresponds to a non-persistent shape. |
abstract Presentation |
getPresentation()
Returns the presentation object of the model, or null if there is none. |
double |
getShapeArcAngle(int id)
Returns the angular extent of a (not replicated) non-persistent arc shape in radians, clockwise. |
double |
getShapeArcAngle(int id,
int index)
Must be overridden to return the angular extent of a non-persistent arc shape in radians, clockwise. |
double |
getShapeArcStartAngle(int id)
Returns the starting angle of a (not replicated) non-persistent shape in radians, 0 being the 12 o'clock, clockwise. |
double |
getShapeArcStartAngle(int id,
int index)
Should be overridden to return the starting angle of a non-persistent shape in radians, 0 being the 12 o'clock, clockwise. |
java.awt.Color[] |
getShapeCADCustomLayerColors(int id,
int index)
Must be overridden to return the array of custom layer colors of a non-persistent CAD drawing. |
int |
getShapeCADDrawingAttributes(int id)
Must be overridden to return the drawing attributes for non-persistent CAD shapes. |
int |
getShapeCADDrawingAttributes(int id,
int index)
Must be overridden to return the drawing attributes for non-persistent CAD shapes. |
java.lang.String |
getShapeCADFileName(int id)
Returns the file name of a (not replicated) non-persistent CAD drawing. |
java.lang.String |
getShapeCADFileName(int id,
int index)
Must be overridden to return the file name of a non-persistent CAD drawing. |
java.lang.String[] |
getShapeCADVisibleLayerNames(int id,
int index)
Must be overridden to return the array of visible layer names of a non-persistent CAD drawing. |
java.awt.Color |
getShapeChartColorFromDouble(int id,
int index,
double value)
Should be overridden to convert a double value to Color for a TimeColorChart. |
java.util.ArrayList<java.awt.Color> |
getShapeChartDataColors(int id,
int index)
Must be overridden to return the list of colors for a chart such as pie, bar, stack, time stack, etc. |
java.util.ArrayList<DataItem> |
getShapeChartDataItems(int id,
int index)
Must be overridden to return the list of data items for a non-peristent chart like pie, bar, etc. |
java.util.ArrayList<Chart2DPlot.Appearance> |
getShapeChartDataPlotOptions(int id,
int index)
Must be overridden to return the list of data set plot appearances for a chart such as plot, time plot, etc. |
java.util.ArrayList<DataSet> |
getShapeChartDataSets(int id,
int index)
Must be overridden to return the list of data sets for a non-peristent chart like plot, time plot, etc. |
java.util.ArrayList<java.lang.String> |
getShapeChartDataTitles(int id,
int index)
Must be overridden to return the list of titles for a chart such as pie, bar, stack, time stack, etc. |
java.util.ArrayList<Histogram2D.Appearance> |
getShapeChartHistogram2DOptions(int id,
int index)
Must be overridden to return the list of 2D histogram appearances for a Histogram2D. |
java.util.ArrayList<Histogram.Appearance> |
getShapeChartHistogramOptions(int id,
int index)
Must be overridden to return the list of histogram appearances for a Histogram. |
java.util.ArrayList<HistogramData> |
getShapeChartHistograms(int id,
int index)
Must be overridden to return the list of histogram data objects for a Histogram. |
java.util.ArrayList<Histogram2DData> |
getShapeChartHistograms2D(int id,
int index)
Must be overridden to return the list of histogram 2D data objects for Histogram2D. |
Chart.Properties |
getShapeChartProperties(int id,
int index)
Must be overridden to return the Properties structure for a non-peristent chart. |
ShapeControl |
getShapeControl(int id)
Finds a (not repli8cated) non-persistent control by its id. |
ShapeControl |
getShapeControl(int id,
int index)
Finds a non-persistent control by its id and index. |
boolean |
getShapeControlDefaultValueBoolean(int id)
Returns the boolean value used to initialized a (not replicated) non-persistent control when it is first created or becomes vsisible. |
boolean |
getShapeControlDefaultValueBoolean(int id,
int index)
Should be overridden to return the boolean value used to initialized a non-persistent control when it is first created or becomes vsisible, |
double |
getShapeControlDefaultValueDouble(int id)
Returns the double value used to initialized a (not replicated) non-persistent control when it is first created or becomes vsisible. |
double |
getShapeControlDefaultValueDouble(int id,
int index)
Should be overridden to return the double value used to initialized a non-persistent control when it is first created or becomes vsisible. |
int |
getShapeControlDefaultValueInt(int id)
Returns the integer value used to initialized a (not replicated) non-persistent control when it is first created or becomes vsisible. |
int |
getShapeControlDefaultValueInt(int id,
int index)
Should be overridden to return the integer value used to initialized a non-persistent control when it is first created or becomes vsisible. |
java.lang.String |
getShapeControlDefaultValueString(int id)
Returns the String value used to initialized a (not replicated) non-persistent control when it is first created or becomes vsisible. |
java.lang.String |
getShapeControlDefaultValueString(int id,
int index)
Should be overridden to return the String value used to initialized a non-persistent control when it is first created or becomes vsisible. |
ShapeControlManager |
getShapeControlManager()
Returns the ControlManager of the presentation, if it exists, or null. |
double |
getShapeControlMaximum(int id)
Returns the maximum value for a (not replicated) non-persistent control. |
double |
getShapeControlMaximum(int id,
int index)
Must be overridden to return the maximum value for a non-persistent control. |
double |
getShapeControlMinimum(int id)
Returns the minimum value for a (not replicated) non-persistent control. |
double |
getShapeControlMinimum(int id,
int index)
Must be overridden to return the minimum value for a non-persistent control. |
boolean |
getShapeControlMultipleSelectionMode(int id)
Returns true if a (not replicated) non-persistent control
(like list box) has multiple-selection ability. |
boolean |
getShapeControlMultipleSelectionMode(int id,
int index)
Should be overridden to return true if a (not replicated)
non-persistent control (like list box) has multiple-selection ability (false
otherwise). |
java.lang.String |
getShapeControlProgressString(int id,
double value,
int percent)
Returns the String value used as progress string in a (not replicated) non-persistent progress bar control |
java.lang.String |
getShapeControlProgressString(int id,
int index,
double value,
int percent)
Should be overridden to return the String value used as progress string in a non-persistent progress bar control |
java.lang.String[] |
getShapeControlTexts(int id)
Returns the array of text items for a (not replicated) non-persistent control (radio button group or a combo box or a list box). |
java.lang.String[] |
getShapeControlTexts(int id,
int index)
Should be overridden to return the array of text items for a non-persistent control (radio button group or a combo box or a list box). |
java.lang.String[][] |
getShapeControlTexts2D(int id)
Should be overridden to return the 2D-array of text items for a non-persistent control (file chooser). |
java.lang.String[][] |
getShapeControlTexts2D(int id,
int index)
Should be overridden to return the 2D-array of text items for a non-persistent control (file chooser). |
int |
getShapeControlType(int id)
Should be overridden to return the type of a non-persistent control (file chooser, combo box). |
int |
getShapeControlType(int id,
int index)
Should be overridden to return the type of a non-persistent control (file chooser, combo box). |
double |
getShapeControlValueType(int id)
Must be overridden to return the value type constant (see ShapeControl.TYPE_* constants) for a (not replicated)
non-persistent control supporting several value types: ShapeSlider,
ShapeTextField, ShapeComboBox. |
int |
getShapeControlValueType(int id,
int index)
Must be overridden to return the value type constant (see ShapeControl.TYPE_* constants) for a non-persistent
control supporting several value types: ShapeSlider,
ShapeTextField, ShapeComboBox. |
java.lang.Object |
getShapeEmbeddedObject(int id)
Must be overridden to return the active object (or a List of them in case of replicated embedded object) corresponding to a embedded object shape. |
ActiveObject |
getShapeEmbeddedObject(int id,
int index)
Returns the active object corresponding to an embedded object shape with the given index. |
java.awt.Color |
getShapeFillColor(int id)
Returns the fill color of a (not replicated) non-persistent shape, or text color of a text shape. |
java.awt.Color |
getShapeFillColor(int id,
int index)
Should be overridden to return the fill color of a shape, or text color of a non-persistent text shape. |
java.awt.Font |
getShapeFont(int id)
Returns the font of a (not replicated) non-persistent shape having text. |
java.awt.Font |
getShapeFont(int id,
int index)
Should be overridden to return the font of a non-persistent shape having text (like text shape or button control). |
int[] |
getShapeGroupContent(int id)
Must be overridden to return the array of ids of shapes (persistent and not) included in a non-persistent group. |
double |
getShapeHeight(int id)
Returns the height of a (not replicated) non-persistent shape. |
double |
getShapeHeight(int id,
int index)
Should be overridden to return the height of a non-persistent shape. |
java.lang.String[] |
getShapeImageFileNames(int id)
Returns the array of a (not replicated) non-persistent image file names. |
java.lang.String[] |
getShapeImageFileNames(int id,
int index)
Must be overridden to return the array of file names of a non-persistent image. |
int |
getShapeImageNumber(int id)
Returns the number of the image (in a non-persistent image array) to draw, for not replicated images. |
int |
getShapeImageNumber(int id,
int index)
Should be overridden to return the number of the image (in a non-persistent image array) to draw. |
java.awt.Color |
getShapeLineColor(int id)
Returns the line color of a (not replicated) non-persistent shape, or text color of a component. |
java.awt.Color |
getShapeLineColor(int id,
int index)
Should be overridden to return the line color of a non-persistent shape, or text color of a control. |
double |
getShapeLineDx(int id)
Returns the X coordinates of the end point relative to the start point of a (not replicated) non-persistent line shape. |
double |
getShapeLineDx(int id,
int index)
Should be overridden to return the X coordinates of the end point relative to the start point of a non-persistent line shape. |
double |
getShapeLineDy(int id)
Returns the Y coordinates of the end point relative to the start point of a (not replicated) non-persistent line shape. |
double |
getShapeLineDy(int id,
int index)
Should be overridden to return the Y coordinates of the end point relative to the start point of a non-persistent line shape. |
int |
getShapeLineStyle(int id)
Returns the line style of a (not replicated) non-persistent shape: LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED. |
int |
getShapeLineStyle(int id,
int index)
Should be overridden to return the line style of a non-persistent shape: LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED. |
double |
getShapeLineWidth(int id)
Returns the width of a (not replicated) non-persistent shape line. 0 means thinnest possible for the target device. |
double |
getShapeLineWidth(int id,
int index)
Should be overridden to return the width of a non-persistent shape line. 0 means thinnest possible for the target device. |
int |
getShapeNPoints(int id)
Returns the number of points in a (not replicated) non-persistent polyline or a curve. |
int |
getShapeNPoints(int id,
int index)
Must be overridden to return the number of points in a non-persistent polyline or a curve. |
java.lang.String |
getShapePackagePrefix(int id)
Must be overridden to return the package name of original active object where the shape with given id is defined,
formatted using '/' characters; with '/' character at the beginning and at the end |
double[] |
getShapePointsDx(int id)
Returns the array of X coordinates of a (not replicated) non-persistent polyline or curve points relative to the start point. |
double[] |
getShapePointsDx(int id,
int index)
Must be overridden to return the array of X coordinates of a non-persistent polyline or curve points relative to the start point. |
double[] |
getShapePointsDy(int id)
Returns the array of Y coordinates of a (not replicated) non-persistent polyline or curve points relative to the start point. |
double[] |
getShapePointsDy(int id,
int index)
Must be overridden to return the array of Y coordinates of a non-persistent polyline or curve points relative to the start point. |
double |
getShapeRadiusX(int id)
Returns the X radius of a (not replicated) non-persistent oval or arc shape, or the radius of corners of a rounded rectangle shape. |
double |
getShapeRadiusX(int id,
int index)
Must be overridden to return the X radius of a non-persistent oval or arc shape, or the radius of corners of a rounded rectangle shape. |
double |
getShapeRadiusY(int id)
Returns the Y radius of a (not replicated) non-persistent oval or arc shape. |
double |
getShapeRadiusY(int id,
int index)
Must be overridden to return the Y radius of a non-persistent oval or arc shape. |
int |
getShapeReplication(int id)
Should be overridden to return the number of shapes in a replicated non-persistent shape. |
double |
getShapeRotation(int id)
Returns the rotation angle of a (not replicated) non-persistent shape in radians. |
double |
getShapeRotation(int id,
int index)
Should be overridden to return the rotation angle of a non-persistent shape in radians. |
double |
getShapeScaleX(int id)
Returns the X scale of a (not replicated) non-persistent shape. |
double |
getShapeScaleX(int id,
int index)
Should be overridden to return the X scale of a non-persistent shape. |
double |
getShapeScaleY(int id)
Returns the Y scale of a (not replicated) non-persistent shape. |
double |
getShapeScaleY(int id,
int index)
Should be overridden to return the Y scale of a non-persistent shape. |
java.lang.Object |
getShapeText(int id)
Returns the string for a (not replicated) non-persistent shape with text attribute (like text shape or button control). |
java.lang.Object |
getShapeText(int id,
int index)
Must be overridden to return the string for a non-persistent shape with text attribute (like text shape or button control). |
int |
getShapeTextAlignment(int id)
Returns the alighment of a (not replicated) non-persistent text shape. |
int |
getShapeTextAlignment(int id,
int index)
Should be overridden to return the alighment of a non-persistent text shape, one of LIGNMENT_LEFT (default), ALIGNMENT_CENTER, or ALIGNMENT_RIGHT. |
int |
getShapeType(int id)
Must be overridden to return the type of a non-persistent shape. |
double |
getShapeWidth(int id)
Returns the width of a (not replicated) non-persistent shape. |
double |
getShapeWidth(int id,
int index)
Should be overridden to return the width of a non-persistent shape. |
double |
getShapeX(int id)
Returns the X coordinate of a (not replicated) non-persistent shape. |
double |
getShapeX(int id,
int index)
Should be overridden to return the X coordinate of a non-persistent shape. |
double |
getShapeY(int id)
Returns the Y coordinate of a (not replicated) non-persistent shape. |
double |
getShapeY(int id,
int index)
Should be overridden to return the Y coordinate of a non-persistent shape. |
int |
getViewAreas(java.util.Map<java.lang.String,ViewArea> output)
Adds all ViewAreas of this presentable to the given
map output, if it is not null. |
boolean |
iconContains(double px,
double py)
Tests if any of the icon shapes contain the point with the coordinates (px,py). |
boolean |
isShapeCADNegative(int id)
Deprecated. this method will be removed in the future releases, please override getShapeCADDrawingAttributes(int) instead |
boolean |
isShapeCADNegative(int id,
int index)
Deprecated. this method will be removed in the future releases, please override getShapeCADDrawingAttributes(int, int)
instead |
boolean |
isShapeClosed(int id)
Returns true if a (not replicated) non-persistent polyline or curve shape is closed, false otherwise. |
boolean |
isShapeClosed(int id,
int index)
Should be overridden to return true if a non-persistent polyline or curve shape is closed, false otherwise. |
boolean |
isShapeControlEnabled(int id)
Returns true if a (not replicated) non-persistent control is enabled, false otherwise. |
boolean |
isShapeControlEnabled(int id,
int index)
Should be overridden to return true if a non-persistent control is enabled, false otherwise. |
boolean |
isShapeControlVertical(int id)
Returns true if a (not replicated) non-persistent control is layed out vertically, false if horizontally. |
boolean |
isShapeControlVertical(int id,
int index)
Should be overridden to return true if a non-persistent control is layed out vertically, false if horizontally. |
boolean |
isShapePublic(int id)
Should be overridden to return true if a non-persistent shape is visible on its container's presentation, false otherwise. |
boolean |
isShapeVisible(int id)
Should be overridden to return true if a non-persistent shape is visible, false otherwise. |
boolean |
isShapeWithManualControlPoints(int id)
Should be overridden to return true if a non-persistent curve
shape has control points specified manually, false otherwise. |
boolean |
isShapeWithManualControlPoints(int id,
int index)
Should be overridden to return true if a non-persistent curve
shape has control points specified manually, false otherwise. |
static boolean |
modelElementContains(double px,
double py,
double x,
double y)
Tests if a standard not resizable model element (like variable, parameter, event, port, pseudo state, etc.) contains the point with coordinates (x,y). |
static boolean |
modelElementContains(double px,
double py,
double x,
double y,
double width,
double height)
Tests if a resizable model element (like stock variable) contains the point with coordinates (x,y). |
boolean |
onClickIconAt(double px,
double py,
boolean publicOnly)
Tests if any of the icon shapes contain the point with the coordinates (px,py), and, if yes, executes the shape's reaction on click at that point. |
boolean |
onClickModelAt(Panel panel,
double px,
double py,
int clickCount,
boolean publicOnly)
Should be overridden to test if any of the model elements contain the point with the coordinates (px,py), and, if yes, execute the corresponding action. |
boolean |
onClickPresentationAt(double px,
double py,
boolean publicOnly)
Tests if any of the presentation shapes contain the point with the coordinates (px,py), and, if yes, executes the shape's reaction on click at that point. |
void |
onItemRemoved(int id,
int index,
int removedIndex,
boolean programmatically)
Should be overridden to execute the action associated with a non-persistent chart item-removed event. |
void |
onSelectionChanged(int id,
int index,
int[] selectedIndices,
boolean programmatically)
Should be overridden to execute the action associated with a non-persistent chart item-selection-changed event. |
boolean |
onShapeClick(int id,
int index,
double clickx,
double clicky)
Should be overridden to define reaction on mouse click on a non-persistent shape. |
boolean |
onShapeClickAt(int id,
double px,
double py,
boolean publicOnly)
Tests if a (possibly, replicated) non-persistent shape contains the point with the coordinates (px,py), and, if yes, executes the shape's reaction on click at that point. |
void |
onShapeGroupDraw(int id,
int index,
Panel panel,
java.awt.Graphics2D g)
Should be overridden to do custom drawing after the (non-persistent) group contents has been drawn. |
boolean |
presentationContains(double px,
double py)
Tests if any of the presentation shapes contain the point with the coordinates (px,py). |
void |
readCustomData(java.io.ObjectInputStream in)
This method may be overridden to perform custom data reading when loading model snapshot |
void |
setControlValueToDefault(int id)
Sets a non-replicated non-persistent control value to what was provided as the default one. |
void |
setControlValueToDefault(int id,
int index)
Sets a non-persistent control value to what was provided as the default one. |
void |
writeCustomData(java.io.ObjectOutputStream out)
This method may be overridden to perform custom data writing when saving model snapshot |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SHAPE_GROUP
public static final int SHAPE_PIXEL
public static final int SHAPE_LINE
public static final int SHAPE_POLYLINE
public static final int SHAPE_CURVE
public static final int SHAPE_ARC
public static final int SHAPE_RECTANGLE
public static final int SHAPE_ROUNDED_RECTANGLE
public static final int SHAPE_OVAL
public static final int SHAPE_TEXT
public static final int SHAPE_IMAGE
public static final int SHAPE_CAD
public static final int SHAPE_BUTTON
public static final int SHAPE_CHECKBOX
public static final int SHAPE_RADIOBUTTONS
public static final int SHAPE_SLIDER
public static final int SHAPE_TEXTFIELD
public static final int SHAPE_COMBOBOX
public static final int SHAPE_EMBEDDED_OBJECT
public static final int SHAPE_CHART_STACK
public static final int SHAPE_CHART_PIE
public static final int SHAPE_CHART_BAR
public static final int SHAPE_CHART_PLOT
public static final int SHAPE_CHART_TIME_PLOT
public static final int SHAPE_CHART_TIME_STACK
public static final int SHAPE_CHART_TIME_COLOR
public static final int SHAPE_CHART_HISTOGRAM
public static final int SHAPE_CHART_HISTOGRAM2D
public static final int SHAPE_LISTBOX
public static final int SHAPE_FILECHOOSER
public static final int SHAPE_PROGRESSBAR
public static final int NAVIGATION_NONE
ShapeWindow3D.setNavigationMode(int),
Constant Field Valuespublic static final int NAVIGATION_FULL
ShapeWindow3D.setNavigationMode(int),
Constant Field Valuespublic static final int NAVIGATION_LIMITED_TO_Z_ABOVE_ZERO
ShapeWindow3D.setNavigationMode(int),
Constant Field Valuespublic static final int NAVIGATION_ROTATION_ONLY
ShapeWindow3D.setNavigationMode(int),
Constant Field Valuespublic static final int LINE_STYLE_SOLID
public static final int LINE_STYLE_DOTTED
public static final int LINE_STYLE_DASHED
public static final int ALIGNMENT_LEFT
public static final int ALIGNMENT_CENTER
public static final int ALIGNMENT_RIGHT
public static final int CAD_INVERTED
customLayerColors[i] != null)
getShapeCADDrawingAttributes(int, int),
ShapeCAD.ShapeCAD(Presentable, boolean, double, double, double, double, String, String, int, Color, String[], Color[], int),
Constant Field Valuespublic static final int CAD_ANTIALIASING
getShapeCADDrawingAttributes(int, int),
ShapeCAD.ShapeCAD(Presentable, boolean, double, double, double, double, String, String, int, Color, String[], Color[], int),
Constant Field Values| Constructor Detail |
|---|
public Presentable()
| Method Detail |
|---|
public abstract Engine getEngine()
public abstract Presentation getPresentation()
public Experiment<?> getExperiment()
public java.lang.Object getPersistentShape(int id)
id - the shape id
public java.lang.String getNameOfShape(int id)
id - the shape id
public int getShapeType(int id)
id - the shape id
public int getShapeReplication(int id)
id - the shape id
public int[] getShapeGroupContent(int id)
id - the non-persistent group id
public java.lang.Object getShapeEmbeddedObject(int id)
id - the shape id
public final ActiveObject getShapeEmbeddedObject(int id,
int index)
id - the shape idindex - the embedded object index (for replicated objects)
public boolean isShapeVisible(int id)
id - the shape id
public boolean isShapePublic(int id)
id - the shape id
public double getShapeX(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeX(int id)
id - the shape id
public double getShapeY(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeY(int id)
id - the shape id
public double getShapeRotation(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeRotation(int id)
id - the shape id
public double getShapeScaleX(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeScaleX(int id)
id - the shape id
public double getShapeScaleY(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeScaleY(int id)
id - the shape id
public java.awt.Color getShapeFillColor(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final java.awt.Color getShapeFillColor(int id)
id - the shape id
public java.awt.Color getShapeLineColor(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final java.awt.Color getShapeLineColor(int id)
id - the shape id
public double getShapeLineWidth(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeLineWidth(int id)
id - the shape id
public int getShapeLineStyle(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final int getShapeLineStyle(int id)
id - the shape
public double getShapeLineDx(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeLineDx(int id)
id - the shape
public double getShapeLineDy(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeLineDy(int id)
id - the shape
public double getShapeWidth(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeWidth(int id)
id - the shape id
public double getShapeHeight(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeHeight(int id)
id - the shape id
public double getShapeRadiusX(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeRadiusX(int id)
id - the shape id
public double getShapeRadiusY(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeRadiusY(int id)
id - the shape id
public double getShapeArcStartAngle(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeArcStartAngle(int id)
id - the shape id
public double getShapeArcAngle(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double getShapeArcAngle(int id)
id - the shape id
public int getShapeNPoints(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final int getShapeNPoints(int id)
id - the shape id
public double[] getShapePointsDx(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double[] getShapePointsDx(int id)
id - the shape id
public double[] getShapePointsDy(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final double[] getShapePointsDy(int id)
id - the shape id
public boolean isShapeClosed(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final boolean isShapeClosed(int id)
id - the shape id
public boolean isShapeWithManualControlPoints(int id,
int index)
true if a non-persistent curve
shape has control points specified manually, false otherwise.
id - the shape idindex - index of the shape (for replicated shapes)
false (automatic control points) by defaultpublic final boolean isShapeWithManualControlPoints(int id)
true if a non-persistent curve
shape has control points specified manually, false otherwise.
id - the shape id
false (automatic control points) by default
public java.lang.Object getShapeText(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final java.lang.Object getShapeText(int id)
id - the shape id
public java.awt.Font getShapeFont(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final java.awt.Font getShapeFont(int id)
id - the shape id
public int getShapeTextAlignment(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final int getShapeTextAlignment(int id)
id - the shape id
public java.lang.String getShapePackagePrefix(int id)
id is defined,
formatted using '/' characters; with '/' character at the beginning and at the end
id - the shape id
id is defined,
formatted using '/' characters; with '/' character at the beginning and at the end
public java.lang.String[] getShapeImageFileNames(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final java.lang.String[] getShapeImageFileNames(int id)
id - the shape id
public java.lang.String getShapeCADFileName(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public java.lang.String[] getShapeCADVisibleLayerNames(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public java.awt.Color[] getShapeCADCustomLayerColors(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final java.lang.String getShapeCADFileName(int id)
id - the shape id
@Deprecated
public boolean isShapeCADNegative(int id,
int index)
getShapeCADDrawingAttributes(int, int)
instead
@Deprecated public boolean isShapeCADNegative(int id)
getShapeCADDrawingAttributes(int) instead
public int getShapeCADDrawingAttributes(int id,
int index)
CAD_* constants,
e.g. CAD_NEGATIVE | CAD_ANTIALIASING.
id - the shape idindex - index of the shape (for replicated shapes)
public int getShapeCADDrawingAttributes(int id)
CAD_* constants,
e.g. CAD_NEGATIVE | CAD_ANTIALIASING.
id - the shape id
public int getShapeImageNumber(int id,
int index)
id - the shape idindex - index of the shape (for replicated shapes)
public final int getShapeImageNumber(int id)
id - the shape id
public boolean isShapeControlEnabled(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final boolean isShapeControlEnabled(int id)
id - the control id
public int getShapeControlValueType(int id,
int index)
ShapeControl.TYPE_* constants) for a non-persistent
control supporting several value types: ShapeSlider,
ShapeTextField, ShapeComboBox.
id - the control idindex - index of the component (for replicated components)
public final double getShapeControlValueType(int id)
ShapeControl.TYPE_* constants) for a (not replicated)
non-persistent control supporting several value types: ShapeSlider,
ShapeTextField, ShapeComboBox.
id - the control id
public double getShapeControlMinimum(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final double getShapeControlMinimum(int id)
id - the control id
public double getShapeControlMaximum(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final double getShapeControlMaximum(int id)
id - the control id
public boolean isShapeControlVertical(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final boolean isShapeControlVertical(int id)
id - the control id
public java.lang.String[] getShapeControlTexts(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final java.lang.String[] getShapeControlTexts(int id)
id - the control id
public java.lang.String[][] getShapeControlTexts2D(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final java.lang.String[][] getShapeControlTexts2D(int id)
id - the control id
public int getShapeControlType(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final int getShapeControlType(int id)
id - the control id
public boolean getShapeControlMultipleSelectionMode(int id,
int index)
true if a (not replicated)
non-persistent control (like list box) has multiple-selection ability (false
otherwise).
id - the control idindex - of the component (for replicated components)
true if a (not replicated) non-persistent control
has multiple-selection abilitypublic final boolean getShapeControlMultipleSelectionMode(int id)
true if a (not replicated) non-persistent control
(like list box) has multiple-selection ability.
id - the control id
true if a (not replicated) non-persistent control
has multiple-selection ability
public boolean getShapeControlDefaultValueBoolean(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final boolean getShapeControlDefaultValueBoolean(int id)
id - the control id
public int getShapeControlDefaultValueInt(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final int getShapeControlDefaultValueInt(int id)
id - the control id
public double getShapeControlDefaultValueDouble(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final double getShapeControlDefaultValueDouble(int id)
id - the control id
public java.lang.String getShapeControlDefaultValueString(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public final java.lang.String getShapeControlDefaultValueString(int id)
id - the control id
public java.lang.String getShapeControlProgressString(int id,
int index,
double value,
int percent)
id - the control idindex - index of the component (for replicated components)value - the current value of progress barpercent - the current percent value of progress bar (integer number, 0..100)
public final java.lang.String getShapeControlProgressString(int id,
double value,
int percent)
id - the control idvalue - the current value of progress barpercent - the current percent value of progress bar (integer number, 0..100)
public void executeShapeControlAction(int id,
int index)
id - the control idindex - index of the component (for replicated components)
public void executeShapeControlAction(int id,
int index,
boolean value)
id - the control idindex - index of the component (for replicated components)value - the value of the component
public void executeShapeControlAction(int id,
int index,
int value)
id - the control idindex - index of the component (for replicated components)value - the value of the component
public void executeShapeControlAction(int id,
int index,
double value)
id - the control idindex - index of the component (for replicated components)value - the value of the component
public void executeShapeControlAction(int id,
int index,
java.lang.String value)
id - the control idindex - index of the component (for replicated components)value - the value of the component
public void executeShapeControlAction(int id,
int index,
java.lang.String value,
java.lang.String[] values)
id - the control idindex - index of the component (for replicated components)value - the value of the component (the first value in component has several values)values - the values of the component
public void onSelectionChanged(int id,
int index,
int[] selectedIndices,
boolean programmatically)
id - the chart idindex - index of the component (for replicated components)selectedIndices - the array of currently selected indices
(never null; may be empty)programmatically - this parameter is always false for non-persistent chartsChart.selectItem(int, boolean) and Chart.setSelectedItemIndices(int[]))
or by user mouse-click)
public void onItemRemoved(int id,
int index,
int removedIndex,
boolean programmatically)
id - the chart idindex - index of the component (for replicated components)removedIndex - the index of removed chart itemprogrammatically - this parameter is always false for non-persistent chartsChart.remove(ChartItem), Chart.remove(int) or Chart.removeAll())
or by user choice in the chart legend context menu)
public Chart.Properties getShapeChartProperties(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public java.util.ArrayList<DataItem> getShapeChartDataItems(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public java.util.ArrayList<DataSet> getShapeChartDataSets(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public java.util.ArrayList<HistogramData> getShapeChartHistograms(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public java.util.ArrayList<Histogram2DData> getShapeChartHistograms2D(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public java.util.ArrayList<java.lang.String> getShapeChartDataTitles(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public java.util.ArrayList<java.awt.Color> getShapeChartDataColors(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public java.util.ArrayList<Chart2DPlot.Appearance> getShapeChartDataPlotOptions(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public java.awt.Color getShapeChartColorFromDouble(int id,
int index,
double value)
id - the chart idindex - index of the chart (for replicated charts)value - the value
public java.util.ArrayList<Histogram.Appearance> getShapeChartHistogramOptions(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public java.util.ArrayList<Histogram2D.Appearance> getShapeChartHistogram2DOptions(int id,
int index)
id - the chart idindex - index of the chart (for replicated charts)
public ShapeControlManager getShapeControlManager()
public ShapeControl getShapeControl(int id,
int index)
id - the control idindex - index of the control (for replicated controls)
public ShapeControl getShapeControl(int id)
id - the control id
public void setControlValueToDefault(int id,
int index)
id - the control idindex - index of the control (for replicated controls)public void setControlValueToDefault(int id)
id - the control idpublic int getViewAreas(java.util.Map<java.lang.String,ViewArea> output)
ViewAreas of this presentable to the given
map output, if it is not null.0.
output - the map for view areas (field name -> view area),
not cleared by this method, may be null: in this
case the method only returns the number of view areas.
public final void drawPresentation(Panel panel,
java.awt.Graphics2D g,
boolean publicOnly)
panel - the panel where the drawing is doneg - the graphics contextpublicOnly - if true, this method draws only shapes marked as public
public final void drawModel(Panel panel,
java.awt.Graphics2D g,
boolean publicOnly)
panel - the presentation panelg - the graphics contextpublicOnly - if true, this method draws only shapes marked as public
public void drawModelElements(Panel panel,
java.awt.Graphics2D g,
boolean publicOnly)
panel - the presentation panelg - the graphics contextpublicOnly - if true, this method draws only shapes marked as public
public static boolean modelElementContains(double px,
double py,
double x,
double y)
px - the x coordinate of the pointpy - the y coordinate of the pointx - the x coordinate of the model element centery - the y coordinate of the model element center
true if the point nearby the model element
public static boolean modelElementContains(double px,
double py,
double x,
double y,
double width,
double height)
px - the x coordinate of the pointpy - the y coordinate of the pointx - the x coordinate of the model element centery - the y coordinate of the model element centerwidth - the width of the model elementheight - the height of the model element
true if the point nearby the model element
public void onShapeGroupDraw(int id,
int index,
Panel panel,
java.awt.Graphics2D g)
id - the shape group idindex - index of the group (for replicated groups)panel - the panel where the drawing is doneg - the graphics context where the shape is drawn
public final boolean onClickPresentationAt(double px,
double py,
boolean publicOnly)
px - the x coordinate of the clickpy - the y coordinate of the clickpublicOnly - if true, not public shapes are ignored (false returned)
public final boolean onClickIconAt(double px,
double py,
boolean publicOnly)
px - the x coordinate of the clickpy - the y coordinate of the clickpublicOnly - if true, not public shapes are ignored (false returned)
public final boolean presentationContains(double px,
double py)
px - the x coordinate of the clickpy - the y coordinate of the click
public final boolean iconContains(double px,
double py)
px - the x coordinate of the clickpy - the y coordinate of the click
public boolean onClickModelAt(Panel panel,
double px,
double py,
int clickCount,
boolean publicOnly)
panel - the presentation panelpx - the x coordinate of the clickpy - the y coordinate of the clickclickCount - the number of clickspublicOnly - if true, not public shapes are ignored (false returned)
public boolean onShapeClick(int id,
int index,
double clickx,
double clicky)
AbstractShapeGISMap,
coordinates are geographical. By default, does nothing and
returns false.
id - the shape idindex - index of the shape (for replicated shapes)clickx - the x coordinate of the click relative to the shapeAbstractShapeGISMap: for more information
see AbstractShapeGISMap.onClick(double, double))clicky - the y coordinate of the click relative to the shapeAbstractShapeGISMap: for more information
see AbstractShapeGISMap.onClick(double, double))
public final void drawShape(int id,
Panel panel,
java.awt.Graphics2D g,
java.awt.geom.AffineTransform xform,
boolean publicOnly)
id - the shape idpanel - the panel where the drawing is doneg - the graphics context where the shape is drawnxform - the original transformation of the graphics that must be set before the drawingpublicOnly - if true, this method draws only shapes marked as public
public final boolean onShapeClickAt(int id,
double px,
double py,
boolean publicOnly)
id - the shape idpx - the x coordinate of the clickpy - the y coordinate of the clickpublicOnly - if true, not public shapes are ignored (false returned)
public final boolean contains(int id,
double px,
double py)
id - the shape idpx - the x coordinate of the clickpy - the y coordinate of the click
public void drawPlainVariable(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object var,
boolean constant)
panel - the presentation panelg - the graphics contextx - x coordinate of the variable image (center)y - y coordinate of the variable image (center)xname - x coordinate of the variable name textyname - y coordinate of the variable name textname - the variable namevar - the variable itselfconstant - either this variable is constant or not
public void drawCollection(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object collection)
panel - the presentation panelg - the graphics contextx - x coordinate of the collection image (center)y - y coordinate of the collection image (center)xname - x coordinate of the collection name textyname - y coordinate of the collection name textname - the collection namecollection - the collection itself
public void drawFunction(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name)
panel - the presentation panelg - the graphics contextx - x coordinate of the function image (center)y - y coordinate of the function image (center)xname - x coordinate of the function name textyname - y coordinate of the function name textname - the function name
public void drawTableFunction(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name)
panel - the presentation panelg - the graphics contextx - x coordinate of the table function image (center)y - y coordinate of the table function image (center)xname - x coordinate of the table function name textyname - y coordinate of the table function name textname - the table function name
public void drawSchedule(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
Schedule<?> s)
panel - the presentation panelg - the graphics contextx - x coordinate of the schedule image (center)y - y coordinate of the schedule image (center)xname - x coordinate of the schedule name textyname - y coordinate of the schedule name textname - the name of the schedule, or nulls - the schedule itself
public void drawDataset(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object dataset)
panel - the presentation panelg - the graphics contextx - x coordinate of the table dataset image (center)y - y coordinate of the table dataset image (center)xname - x coordinate of the table dataset name textyname - y coordinate of the table dataset name textname - the table dataset name
public void drawStatistics(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object statistics)
panel - the presentation panelg - the graphics contextx - x coordinate of the table statistics image (center)y - y coordinate of the table statistics image (center)xname - x coordinate of the table statistics name textyname - y coordinate of the table statistics name textname - the table statistics name
public void drawHistogramData(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object histogramData)
panel - the presentation panelg - the graphics contextx - x coordinate of the table histogram data image (center)y - y coordinate of the table histogram data image (center)xname - x coordinate of the table histogram data name textyname - y coordinate of the table histogram data name textname - the table histogram data name
public void drawHistogram2DData(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object histogram2DData)
panel - the presentation panelg - the graphics contextx - x coordinate of the table histogram 2D data image (center)y - y coordinate of the table histogram 2D data image (center)xname - x coordinate of the table histogram 2D data name textyname - y coordinate of the table histogram 2D data name textname - the table histogram 2D data name
public void drawDatabase(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
panel - the presentation panelg - the graphics contextx - x coordinate of the database object image (center)y - y coordinate of the database object image (center)xname - x coordinate of the database object name textyname - y coordinate of the database object name textname - the database object name
public void drawQuery(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
panel - the presentation panelg - the graphics contextx - x coordinate of the query object image (center)y - y coordinate of the query object image (center)xname - x coordinate of the query object name textyname - y coordinate of the query object name textname - the query object name
public void drawKeyValueTable(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
panel - the presentation panelg - the graphics contextx - x coordinate of the table object image (center)y - y coordinate of the table object image (center)xname - x coordinate of the table object name textyname - y coordinate of the table object name textname - the table object name
public void drawInsert(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
panel - the presentation panelg - the graphics contextx - x coordinate of the insert object image (center)y - y coordinate of the insert object image (center)xname - x coordinate of the insert object name textyname - y coordinate of the insert object name textname - the insert object name
public void drawUpdate(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
panel - the presentation panelg - the graphics contextx - x coordinate of the update object image (center)y - y coordinate of the update object image (center)xname - x coordinate of the update object name textyname - y coordinate of the update object name textname - the update object name
public void drawTextFile(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
panel - the presentation panelg - the graphics contextx - x coordinate of the text file object image (center)y - y coordinate of the text file object image (center)xname - x coordinate of the text file object name textyname - y coordinate of the text file object name textname - the text file object name
public void drawExcelFile(Panel panel,
java.awt.Graphics2D g,
int x,
int y,
int xname,
int yname,
java.lang.String name,
java.lang.Object object)
panel - the presentation panelg - the graphics contextx - x coordinate of the Excel file object image (center)y - y coordinate of the Excel file object image (center)xname - x coordinate of the Excel file object name textyname - y coordinate of the Excel file object name textname - the Excel file object name
public void writeCustomData(java.io.ObjectOutputStream out)
throws java.io.IOException
out -
java.io.IOException
public void readCustomData(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in -
java.io.IOException
java.lang.ClassNotFoundException
public void finishReadObject_xjal(java.io.ObjectInputStream in,
java.lang.Class<? extends Presentable> callerClass)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||