public class KennLine extends Object implements Realtime
Modifier and Type | Class and Description |
---|---|
protected class |
KennLine.Anchor |
(package private) class |
KennLine.Animation |
static class |
KennLine.MoveMode |
protected class |
KennLine.SwingRep
Last graphic experiments are VERY OLD and in
metatools/mvc/SwingBoxAndLineView (currently not in make)
..
|
Modifier and Type | Field and Description |
---|---|
static RenderingHints |
aliasRenderingHints |
(package private) SortedMap<Float,KennLine.Anchor> |
anchors |
(package private) Map<String,KennLine.Anchor> |
anchorsByLabel |
(package private) Set<KennLine.Animation> |
animations |
(package private) boolean |
antiAlias |
(package private) KennLine.Anchor |
firstAnchor |
(package private) @Opt String |
label |
static String |
LABEL_FIRST |
static String |
LABEL_LAST |
(package private) KennLine.Anchor |
lastAnchor |
(package private) float |
maxKey |
(package private) float |
maxValue |
(package private) float |
minKey |
(package private) float |
minKeyDistance |
(package private) float |
minValue |
(package private) KennLine.Anchor |
preSelected |
(package private) KennLine.Anchor |
selected |
(package private) float |
snapValueDistance |
(package private) KennLine.SwingRep |
swingRep |
DEFAULT_AFAP_INTERRUPT_LATENCY, DEFAULT_SLEEP_TIME_MS
Constructor and Description |
---|
KennLine() |
KennLine(@Opt String label) |
KennLine(@Opt String label,
float minKey,
float maxKey,
float minValue,
float maxValue) |
Modifier and Type | Method and Description |
---|---|
FloatUnaryOperator |
asFloat() |
(package private) GeneralPath |
combineGraphics(@Opt KennLine.Animation animX,
@Opt KennLine.Animation animY) |
(package private) void |
do_select(KennLine.Anchor anchor) |
@Opt KennLine.Anchor |
getAnchor(float f) |
@Opt KennLine.Anchor |
getAnchor(String label) |
@Opt KennLine.Anchor |
getAnchorByPosition(int i) |
float |
getFloat(float pos) |
@Opt KennLine.Anchor |
getNextAnchor(float f) |
@Opt KennLine.Anchor |
getNextAnchor(KennLine.Anchor anchor) |
@Opt KennLine.Anchor |
getPrevAnchor(float f) |
@Opt KennLine.Anchor |
getPrevAnchor(KennLine.Anchor anchor) |
KennLine.SwingRep |
getSwingRep() |
(package private) void |
insert(KennLine.Anchor anchor) |
void |
insert(@Opt String label,
float key,
float value) |
static void |
main(String[] args) |
static float |
minMax(float min,
float max,
float value) |
(package private) int |
model2view_x(float key) |
(package private) int |
model2view_y(float value) |
(package private) KennLine.Anchor |
nextAnchor(float f)
Attention only called when next anchor does exist.
|
(package private) KennLine.Anchor |
nextAnchor(KennLine.Anchor anchor)
Attention only called when next anchor does exist.
|
(package private) KennLine.Anchor |
prevAnchor(float f)
Attention only called when next anchor does exist.
|
(package private) KennLine.Anchor |
prevAnchor(KennLine.Anchor anchor)
Attention only called when next anchor does exist.
|
(package private) void |
reCacheAnimations() |
void |
run()
Processes an event.
|
void |
select(KennLine.Anchor anchor) |
void |
setAntiAlias(boolean antiAlias) |
protected void |
updateGraphics() |
protected void |
updateGraphics(KennLine.Anchor anchor) |
(package private) float |
view2model_x(int x) |
(package private) float |
view2model_y(int y) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adHoc, afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, sequence, times, times
final float minKey
final float maxKey
final float minValue
final float maxValue
final SortedMap<Float,KennLine.Anchor> anchors
final Map<String,KennLine.Anchor> anchorsByLabel
KennLine.Anchor selected
KennLine.Anchor preSelected
final float minKeyDistance
final float snapValueDistance
boolean antiAlias
public static final String LABEL_FIRST
public static final String LABEL_LAST
final KennLine.Anchor firstAnchor
final KennLine.Anchor lastAnchor
final Set<KennLine.Animation> animations
KennLine.SwingRep swingRep
public static final RenderingHints aliasRenderingHints
public KennLine(@Opt @Opt String label, float minKey, float maxKey, float minValue, float maxValue)
public KennLine()
public void setAntiAlias(boolean antiAlias)
public FloatUnaryOperator asFloat()
public void run()
Realtime
Any implementation of this method should complete promptly and normally. In particular it must not block indefinitely.
public float getFloat(float pos)
@Opt public @Opt KennLine.Anchor getAnchor(String label)
@Opt public @Opt KennLine.Anchor getAnchor(float f)
@Opt public @Opt KennLine.Anchor getAnchorByPosition(int i)
void insert(KennLine.Anchor anchor)
void reCacheAnimations()
public static float minMax(float min, float max, float value)
KennLine.Anchor nextAnchor(KennLine.Anchor anchor)
KennLine.Anchor prevAnchor(KennLine.Anchor anchor)
KennLine.Anchor nextAnchor(float f)
KennLine.Anchor prevAnchor(float f)
@Opt public @Opt KennLine.Anchor getNextAnchor(KennLine.Anchor anchor)
@Opt public @Opt KennLine.Anchor getPrevAnchor(KennLine.Anchor anchor)
@Opt public @Opt KennLine.Anchor getNextAnchor(float f)
@Opt public @Opt KennLine.Anchor getPrevAnchor(float f)
public void select(KennLine.Anchor anchor)
void do_select(KennLine.Anchor anchor)
public KennLine.SwingRep getSwingRep()
int model2view_x(float key)
int model2view_y(float value)
float view2model_x(int x)
float view2model_y(int y)
protected void updateGraphics(KennLine.Anchor anchor)
protected void updateGraphics()
final GeneralPath combineGraphics(@Opt @Opt KennLine.Animation animX, @Opt @Opt KennLine.Animation animY)
public static void main(String[] args)