Skip to content

Commit

Permalink
Add point highlighter
Browse files Browse the repository at this point in the history
Fixes: #17
  • Loading branch information
adamcrume committed May 30, 2015
1 parent 649a88f commit 1e58210
Show file tree
Hide file tree
Showing 4 changed files with 582 additions and 55 deletions.
21 changes: 21 additions & 0 deletions src/main/java/plotter/tail/MetaAxis.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ abstract class MetaAxis implements AxisListener {

private NumberFormat format = new MultiscaleNumberFormat();

/** Format for displaying values more precisely. */
private NumberFormat preciseFormat = new MultiscaleNumberFormat(new DecimalFormat("#.######"), new DecimalFormat("0.######E0"), .01, 999.5);

// Only access from the Swing thread
private double min;

Expand Down Expand Up @@ -204,6 +207,24 @@ private void updateFormat() {
}


/**
* Returns the format for displaying values more precisely.
* @return the format for displaying values more precisely
*/
public NumberFormat getPreciseFormat() {
return preciseFormat;
}


/**
* Sets the format for displaying values more precisely.
* @param preciseFormat the format for displaying values more precisely
*/
public void setPreciseFormat(NumberFormat preciseFormat) {
this.preciseFormat = preciseFormat;
}


public double getMin() {
return min;
}
Expand Down
Loading

0 comments on commit 1e58210

Please sign in to comment.