|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
jview.JNormalizedCanvas
jview.JViewportCanvas
jview.JFrameCanvas
jview.JBoxedCanvas
stella.jview.JTargetHistory
public class JTargetHistory
This class reads HistoryAware targets and scans their history for
picks. It displays the time on the x-axis and the taret name on the y-axis.
Successful picks are plotted as filled rectangles, while aborted executions
(i.e. non-successful picks) are shown as crosses.
This class supports command-line arguments instead of a properties file.
PropertyParser,
Serialized Form| Nested Class Summary | |
|---|---|
private static class |
JTargetHistory.TargetNameFormat
A special number formatter that translates the index of the target in y-direction to a target name. |
private static class |
JTargetHistory.XShape
An x-glyph like shape that can be shifted and sized. |
| Nested classes/interfaces inherited from class jview.JBoxedCanvas |
|---|
JBoxedCanvas.Datum, JBoxedCanvas.Test |
| Nested classes/interfaces inherited from class jview.JViewportCanvas |
|---|
JViewportCanvas.ViewportKey |
| Nested classes/interfaces inherited from class jview.JNormalizedCanvas |
|---|
JNormalizedCanvas.ShowImage |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private static String |
ABORT
The drawing info identifier for abort draws. |
private static int |
ABSOULTEHEIGHT
An absolute size-shrink to hold the dates at bottom. |
private static Color |
BACKGROUND
The default background. |
private static boolean |
DEFABORT
Show aborted (i.e. |
private static Color |
DEFABORTCOLOR
The default unknown user color. |
private static Font |
DEFFONT
The default font to use. |
private static double |
DEFINCLINATION
The inclination angle at which the merit or S/N should be shown. |
private static int |
DEFMAXTARGETS
The maximum number of targets per side. |
private static DecimalFormat |
DEFMERITFORMAT
Show pick merit if available. |
private static double |
DEFMINWIDTH
The minimum pixel width of successful bars. |
private static double |
DEFMOUSEOFF
If pick is further than this, reset. |
private static int |
DEFNAMEEXTRA
The extra inset for name labels. |
private static int |
DEFPREFERREDWIDTH
The default preferred width |
private static boolean |
DEFSHOWCOORDINATE
The default cursor position marking. |
private static boolean |
DEFSHOWDELTAX
The default delta x drawing. |
private static boolean |
DEFSHOWDELTAY
The default delta x drawing. |
private static boolean |
DEFSHOWMERIT
Show pick merit if available. |
private static boolean |
DEFSHOWVALUE
Show S/N if given. |
private static boolean |
DEFSORTDATE
Sort according to first observation. |
private static boolean |
DEFSUCCESS
Show successful targets. |
private static Color |
DEFUNKNOWNCOLOR
The default unknown user color. |
private static DecimalFormat |
DEFVALUEFORMAT
Default database value format. |
private static boolean |
DRAWBOX
We want a box. |
private static Color |
FOREGROUND
The default forground. |
static String |
KEY_ABORT
Show aborted targets. |
static String |
KEY_ABORTCOLOR
The color to use for aborted targets. |
static String |
KEY_FONT
The font to use for target names. |
static String |
KEY_INCLINATION
The inclination angle for merit and S/N |
static String |
KEY_MAXTARGETS
The key to the maximum targets per side. |
static String |
KEY_MERITFORMAT
Show merit (first number extracted from comment). |
static String |
KEY_MINWIDTH
The key to the minimum pixel width for successful bars. |
static String |
KEY_MOUSEOFF
If user clicks on blank canvas, we should supply an empty pick. |
static String |
KEY_NAMEEXTRA
The x-extra space for target name labels.. |
static String |
KEY_SHOWMERIT
Show merit (first number extracted from comment). |
static String |
KEY_SHOWVALUE
True, if an obs-database value should be shown. |
static String |
KEY_SORTDATE
Sort targets for first observation or alphabeticallly. |
static String |
KEY_SUCCESS
Show successful targets. |
static String |
KEY_UNKNOWNCOLOR
The color to use for unknown users. |
static String |
KEY_VALUEFORMAT
Format on how to show the value. |
static String |
KEY_VALUENAME
Name of the value that should be shown. |
private static int |
LABELAT
We want labels only at the bottom. |
private static double |
LABELYSTEP
The big ticks=grid should be at each target. |
private Map |
meritlist
All merits. |
private static String |
MERITTOGGLE
The label at the unzoom item. |
private static double |
RELATIVEHEIGHT
No need for bottom relative size. |
private static double |
RELATIVEWIDTH
No need for bottom relative size. |
private Map |
snlist
All S/N. |
private static String |
SNTOGGLE
The label at the unzoom item. |
private Map |
targetcolor
A mapping of target names to target colors. |
private static int |
TICKAT
We want ticks on top and bottom. |
private static boolean |
TICKYGRID
We want a horizontal grid. |
private static String |
UNKNOWN
The drawing info identifier for unknown users. |
private static double |
XINSETRELATIVE
The inset to the left. |
private static double |
YINSETRELATIVE
A relative inset in y. |
| Fields inherited from class jview.JViewportCanvas |
|---|
MAXVIEW, VIEWPORTIMAGEPROPERTY, VIEWPORTPROPERTY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JTargetHistory(ResourceSupplying info)
Constructs a new jtarget history parameter. |
|
| Method Summary | |
|---|---|
boolean |
applyHistory(Map name2pick,
Map pick2value)
Applies a mapping of target names to HistoryAware.Picks of that
target. |
boolean |
applyValue(String parameter,
Format how)
Changes the database value and format that should be displayed. |
HistoryAware.Pick |
getPick(Point mouse)
Returns the pick event related to a mouse click on the canvas. |
void |
init()
Adds the cursor. |
void |
paintComponent(Graphics g)
The toggleable S/N and merits need extra treatment. |
protected void |
prepareCanvas(Graphics g)
We prepare the canvas for plotting the data. |
void |
setComposedProperties(ResourceSupplying info)
Add my defaults to the properties. |
void |
setTargetAndUserList(Map<String,String> targets,
Map<String,? extends Paint> colors)
The list of all targets is set from the outside. |
| Methods inherited from class jview.JBoxedCanvas |
|---|
getBestDateFormat, getDefaultFormatX, getDefaultFormatY, getUserTransformation, getUserTransformation, printComponent, setUserTransformation, setUserTransformation, silentlySelectViewport, xIsDate, yIsDate |
| Methods inherited from class jview.JFrameCanvas |
|---|
calculateActiveCanvas, calculateShapeTransform, getArea, isScreenInNormalized, paintObjects, wasReshaped |
| Methods inherited from class jview.JViewportCanvas |
|---|
addAttachedViewport, addZoom, getViewport, getViewportImage, isMaximalViewport, isNormalizedOnScreen, removeAttachedViewport, resetViewport, selectArea, selectViewport, setViewportImage, transferView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jview.Zoomable |
|---|
selectArea, selectViewport |
| Methods inherited from interface jview.NormalizedCoordinates |
|---|
getArea, getNormalized, getNormalizedRect, getScreen, getScreenRect, getViewport, isNormalizedOnScreen, isScreenInNormalized |
| Field Detail |
|---|
public static final String KEY_SORTDATE
public static final String KEY_SUCCESS
public static final String KEY_ABORT
public static final String KEY_INCLINATION
public static final String KEY_SHOWVALUE
public static final String KEY_VALUENAME
public static final String KEY_VALUEFORMAT
public static final String KEY_SHOWMERIT
public static final String KEY_MERITFORMAT
public static final String KEY_MAXTARGETS
public static final String KEY_MINWIDTH
public static final String KEY_FONT
public static final String KEY_NAMEEXTRA
public static final String KEY_UNKNOWNCOLOR
public static final String KEY_ABORTCOLOR
public static final String KEY_MOUSEOFF
private static final boolean DEFSORTDATE
private static final boolean DEFSUCCESS
private static final boolean DEFABORT
private static final double DEFINCLINATION
private static final boolean DEFSHOWVALUE
private static final boolean DEFSHOWMERIT
private static final int DEFMAXTARGETS
private static final int DEFPREFERREDWIDTH
private static final double DEFMINWIDTH
private static final int DEFNAMEEXTRA
private static final Color DEFUNKNOWNCOLOR
private static final Color DEFABORTCOLOR
private static final Font DEFFONT
private static final DecimalFormat DEFVALUEFORMAT
private static final DecimalFormat DEFMERITFORMAT
private static final boolean DRAWBOX
private static final double XINSETRELATIVE
private static final double YINSETRELATIVE
private static final int ABSOULTEHEIGHT
private static final double RELATIVEWIDTH
private static final double RELATIVEHEIGHT
private static final Color FOREGROUND
private static final Color BACKGROUND
private static final int TICKAT
private static final int LABELAT
private static final double LABELYSTEP
private static final boolean TICKYGRID
private static final double DEFMOUSEOFF
private static final boolean DEFSHOWCOORDINATE
private static final boolean DEFSHOWDELTAX
private static final boolean DEFSHOWDELTAY
private static final String MERITTOGGLE
private static final String SNTOGGLE
private static final String UNKNOWN
private static final String ABORT
private Map targetcolor
private Map snlist
private Map meritlist
| Constructor Detail |
|---|
public JTargetHistory(ResourceSupplying info)
init() section, where a list of plottable shapes is
constructed.
| Method Detail |
|---|
public void setComposedProperties(ResourceSupplying info)
setComposedProperties in interface ResourceAwaresetComposedProperties in class JBoxedCanvas
public void setTargetAndUserList(Map<String,String> targets,
Map<String,? extends Paint> colors)
targets - A mapping of target names to user names.colors - A mapping of user names to preferred colors.public void init()
init in interface Initializableinit in class JBoxedCanvas
public boolean applyValue(String parameter,
Format how)
applyHistory(java.util.Map, java.util.Map) is called after
this method.
applyHistory(java.util.Map, java.util.Map) should be called.
public boolean applyHistory(Map name2pick,
Map pick2value)
HistoryAware.Picks of that
target. The plot is sized to display all targets.
protected void prepareCanvas(Graphics g)
prepareCanvas in class JBoxedCanvaspublic HistoryAware.Pick getPick(Point mouse)
public void paintComponent(Graphics g)
paintComponent in class JNormalizedCanvas
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||