Stefan Schuermans commited on 2017-05-20 17:27:56
Showing 2 changed files, with 48 additions and 48 deletions.
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
# a blinkenarea.org project |
5 | 5 |
|
6 | 6 |
BLINKENLIB:=../BlinkenLibJava/BlinkenLib.jar |
7 |
-JFLEXIPIX:=../JFlexiPix/JFlexiPix.jar |
|
7 |
+JETHERPIX:=../JEtherPix/JEtherPix.jar |
|
8 | 8 |
|
9 | 9 |
VERSION_MAJOR:=1 |
10 | 10 |
VERSION_MINOR:=4 |
... | ... |
@@ -21,7 +21,7 @@ IMG:=$(P)/images |
21 | 21 |
|
22 | 22 |
GENJAVA:=$(P)/Version.java |
23 | 23 |
|
24 |
-CLASSPATH:=.:$(BLINKENLIB):$(JFLEXIPIX) |
|
24 |
+CLASSPATH:=.:$(BLINKENLIB):$(JETHERPIX) |
|
25 | 25 |
|
26 | 26 |
CLASS_FILES:=$(P)/BlinkenFileFilter.class $(P)/BlinkenFrameDisplay.class \ |
27 | 27 |
$(P)/BlinkenFrameDisplayListener.class $(P)/BlinkenFrameDisplayInterceptor.class \ |
... | ... |
@@ -90,7 +90,7 @@ public class Blimp extends JApplet |
90 | 90 |
JMenuItem menuPlayStart, menuPlayStop; |
91 | 91 |
JCheckBoxMenuItem menuPlayBegin, menuPlayLoop; |
92 | 92 |
ButtonGroup groupOutput; |
93 |
- JRadioButtonMenuItem menuOutputNone, menuOutputMcuf, menuOutputMcufFile, menuOutputFlexiPix; |
|
93 |
+ JRadioButtonMenuItem menuOutputNone, menuOutputMcuf, menuOutputMcufFile, menuOutputEtherPix; |
|
94 | 94 |
JMenuItem menuHelpAbout; |
95 | 95 |
JPanel panel, panelStatus, panelMain, panelFrames, panelOuterFrame; //panels of main window |
96 | 96 |
JPanel panelMiddleFrame, panelFrame, panelDuration, panelColors; |
... | ... |
@@ -144,9 +144,9 @@ public class Blimp extends JApplet |
144 | 144 |
DatagramSocket outMcufSock; // UDP socket to send MCUF output on |
145 | 145 |
String outMcufFileName; // name of MCUF output file |
146 | 146 |
FileOutputStream outMcufFile; // file/device to output MCUF to |
147 |
- File outFlexiPixCurDir = null; //directory of config file |
|
148 |
- File outFlexiPixCurFile = null; //config file |
|
149 |
- org.blinkenarea.JFlexiPix.Display outFlexiPixDisplay; //FlexiPix display |
|
147 |
+ File outEtherPixCurDir = null; //directory of config file |
|
148 |
+ File outEtherPixCurFile = null; //config file |
|
149 |
+ org.blinkenarea.JEtherPix.Display outEtherPixDisplay; //EtherPix display |
|
150 | 150 |
|
151 | 151 |
//other variables |
152 | 152 |
boolean noRecurseZoomAspect = false; //set when changing zoom or aspect value per program to inhibit recursion triggered by events |
... | ... |
@@ -1309,9 +1309,9 @@ public class Blimp extends JApplet |
1309 | 1309 |
outMcufFile = null; |
1310 | 1310 |
} |
1311 | 1311 |
|
1312 |
- //close FlexiPix output |
|
1313 |
- if( outFlexiPixDisplay != null ) |
|
1314 |
- outFlexiPixDisplay = null; |
|
1312 |
+ //close EtherPix output |
|
1313 |
+ if( outEtherPixDisplay != null ) |
|
1314 |
+ outEtherPixDisplay = null; |
|
1315 | 1315 |
|
1316 | 1316 |
//set status to no output |
1317 | 1317 |
menuOutputNone.setSelected( true ); |
... | ... |
@@ -1458,8 +1458,8 @@ public class Blimp extends JApplet |
1458 | 1458 |
outFrame( ); |
1459 | 1459 |
} |
1460 | 1460 |
|
1461 |
- //"Output FlexiPix" was chosen from menu |
|
1462 |
- private void actionOutputFlexiPix( ) |
|
1461 |
+ //"Output EtherPix" was chosen from menu |
|
1462 |
+ private void actionOutputEtherPix( ) |
|
1463 | 1463 |
{ |
1464 | 1464 |
JFileChooser fileChooser; |
1465 | 1465 |
String cfgFile; |
... | ... |
@@ -1469,32 +1469,32 @@ public class Blimp extends JApplet |
1469 | 1469 |
|
1470 | 1470 |
//ask for config file |
1471 | 1471 |
fileChooser = new JFileChooser( ); |
1472 |
- fileChooser.setDialogTitle( "Blimp - Output FlexiPix..." ); |
|
1473 |
- if( outFlexiPixCurDir != null ) |
|
1474 |
- fileChooser.setCurrentDirectory( outFlexiPixCurDir ); |
|
1472 |
+ fileChooser.setDialogTitle( "Blimp - Output EtherPix..." ); |
|
1473 |
+ if( outEtherPixCurDir != null ) |
|
1474 |
+ fileChooser.setCurrentDirectory( outEtherPixCurDir ); |
|
1475 | 1475 |
if( fileChooser.showOpenDialog( dialogParent ) != JFileChooser.APPROVE_OPTION ) |
1476 | 1476 |
return; |
1477 | 1477 |
//save current directory and current file |
1478 |
- outFlexiPixCurDir = fileChooser.getCurrentDirectory( ); |
|
1479 |
- outFlexiPixCurFile = fileChooser.getSelectedFile( ); |
|
1480 |
- cfgFile = outFlexiPixCurFile.getPath( ); |
|
1478 |
+ outEtherPixCurDir = fileChooser.getCurrentDirectory( ); |
|
1479 |
+ outEtherPixCurFile = fileChooser.getSelectedFile( ); |
|
1480 |
+ cfgFile = outEtherPixCurFile.getPath( ); |
|
1481 | 1481 |
|
1482 |
- //create FlexiPix display |
|
1482 |
+ //create EtherPix display |
|
1483 | 1483 |
try |
1484 | 1484 |
{ |
1485 |
- outFlexiPixDisplay = new org.blinkenarea.JFlexiPix.Display( cfgFile, null ); |
|
1485 |
+ outEtherPixDisplay = new org.blinkenarea.JEtherPix.Display( cfgFile, null ); |
|
1486 | 1486 |
} |
1487 | 1487 |
catch( Exception e ) |
1488 | 1488 |
{ |
1489 | 1489 |
//cannot create display -> turn off output |
1490 | 1490 |
actionOutputNone( ); |
1491 |
- labelStatus.setText( "FlexiPix output: cannot create display: " + e.getMessage( ) ); |
|
1491 |
+ labelStatus.setText( "EtherPix output: cannot create display: " + e.getMessage( ) ); |
|
1492 | 1492 |
return; |
1493 | 1493 |
} |
1494 | 1494 |
|
1495 |
- //set status to FlexiPix output |
|
1496 |
- menuOutputFlexiPix.setSelected( true ); |
|
1497 |
- labelStatus.setText( "FlexiPix output using \"" + cfgFile + "\" ..." ); |
|
1495 |
+ //set status to EtherPix output |
|
1496 |
+ menuOutputEtherPix.setSelected( true ); |
|
1497 |
+ labelStatus.setText( "EtherPix output using \"" + cfgFile + "\" ..." ); |
|
1498 | 1498 |
|
1499 | 1499 |
//output current frame |
1500 | 1500 |
outFrame( ); |
... | ... |
@@ -1520,10 +1520,10 @@ public class Blimp extends JApplet |
1520 | 1520 |
org.blinkenarea.BlinkenLib.Version.Major, |
1521 | 1521 |
org.blinkenarea.BlinkenLib.Version.Minor, |
1522 | 1522 |
org.blinkenarea.BlinkenLib.Version.Revision ) + |
1523 |
- String.format( "contains JFlexiPix %d.%d.%d\n", |
|
1524 |
- org.blinkenarea.JFlexiPix.Version.Major, |
|
1525 |
- org.blinkenarea.JFlexiPix.Version.Minor, |
|
1526 |
- org.blinkenarea.JFlexiPix.Version.Revision ), |
|
1523 |
+ String.format( "contains JEtherPix %d.%d.%d\n", |
|
1524 |
+ org.blinkenarea.JEtherPix.Version.Major, |
|
1525 |
+ org.blinkenarea.JEtherPix.Version.Minor, |
|
1526 |
+ org.blinkenarea.JEtherPix.Version.Revision ), |
|
1527 | 1527 |
"Blimp - About...", |
1528 | 1528 |
JOptionPane.INFORMATION_MESSAGE ); |
1529 | 1529 |
} |
... | ... |
@@ -2301,8 +2301,8 @@ public class Blimp extends JApplet |
2301 | 2301 |
actionOutputMcuf( ); |
2302 | 2302 |
else if( e.getSource( ) == menuOutputMcufFile ) |
2303 | 2303 |
actionOutputMcufFile( ); |
2304 |
- else if( e.getSource( ) == menuOutputFlexiPix ) |
|
2305 |
- actionOutputFlexiPix( ); |
|
2304 |
+ else if( e.getSource( ) == menuOutputEtherPix ) |
|
2305 |
+ actionOutputEtherPix( ); |
|
2306 | 2306 |
else if( e.getSource( ) == timerOut ) |
2307 | 2307 |
actionOutTimer( ); |
2308 | 2308 |
else if( e.getSource( ) == menuHelpAbout ) |
... | ... |
@@ -2541,9 +2541,9 @@ public class Blimp extends JApplet |
2541 | 2541 |
if( menuOutputMcufFile.isSelected( ) ) |
2542 | 2542 |
outMcufFile( ); |
2543 | 2543 |
|
2544 |
- //FlexiPix output |
|
2545 |
- if( menuOutputFlexiPix.isSelected( ) ) |
|
2546 |
- outFlexiPix( ); |
|
2544 |
+ //EtherPix output |
|
2545 |
+ if( menuOutputEtherPix.isSelected( ) ) |
|
2546 |
+ outEtherPix( ); |
|
2547 | 2547 |
|
2548 | 2548 |
//re-output after 1 s |
2549 | 2549 |
timerOut.setInitialDelay( 1000 ); |
... | ... |
@@ -2599,22 +2599,22 @@ public class Blimp extends JApplet |
2599 | 2599 |
} |
2600 | 2600 |
} |
2601 | 2601 |
|
2602 |
- //output current frame to FlexiPix |
|
2603 |
- private void outFlexiPix( ) |
|
2602 |
+ //output current frame to EtherPix |
|
2603 |
+ private void outEtherPix( ) |
|
2604 | 2604 |
{ |
2605 | 2605 |
BlinkenFrame frame; |
2606 | 2606 |
int width, height; |
2607 | 2607 |
byte [] data; |
2608 | 2608 |
|
2609 |
- // exit if no FlexiPix display |
|
2610 |
- if( outFlexiPixDisplay == null ) |
|
2609 |
+ // exit if no EtherPix display |
|
2610 |
+ if( outEtherPixDisplay == null ) |
|
2611 | 2611 |
return; |
2612 | 2612 |
|
2613 |
- //convert current frame to 24bit RGB and FlexiPix display size |
|
2613 |
+ //convert current frame to 24bit RGB and EtherPix display size |
|
2614 | 2614 |
frame = new BlinkenFrame( curFrame ); |
2615 | 2615 |
frame.resize( frame.getHeight( ), frame.getWidth( ), 3, 255 ); |
2616 |
- width = outFlexiPixDisplay.getWidth( ); |
|
2617 |
- height = outFlexiPixDisplay.getHeight( ); |
|
2616 |
+ width = outEtherPixDisplay.getWidth( ); |
|
2617 |
+ height = outEtherPixDisplay.getHeight( ); |
|
2618 | 2618 |
frame.scale( height, width ); |
2619 | 2619 |
|
2620 | 2620 |
//convert frame into MCUF data |
... | ... |
@@ -2622,14 +2622,14 @@ public class Blimp extends JApplet |
2622 | 2622 |
if( data == null || data.length == 0 ) |
2623 | 2623 |
return; |
2624 | 2624 |
|
2625 |
- //transfer data to FlexiPix display object |
|
2626 |
- outFlexiPixDisplay.data(data, |
|
2625 |
+ //transfer data to EtherPix display object |
|
2626 |
+ outEtherPixDisplay.data(data, |
|
2627 | 2627 |
3, width * 3, // x stride, y stride |
2628 | 2628 |
12, // index of top-left pixel |
2629 | 2629 |
0, 0, width, height); // whole area |
2630 | 2630 |
|
2631 |
- //send packets to real FlexiPix display |
|
2632 |
- outFlexiPixDisplay.send( ); |
|
2631 |
+ //send packets to real EtherPix display |
|
2632 |
+ outEtherPixDisplay.send( ); |
|
2633 | 2633 |
} |
2634 | 2634 |
|
2635 | 2635 |
//entry point of main thread |
... | ... |
@@ -2893,11 +2893,11 @@ public class Blimp extends JApplet |
2893 | 2893 |
menuOutputMcufFile.addActionListener( this ); |
2894 | 2894 |
menuOutput.add( menuOutputMcufFile ); |
2895 | 2895 |
groupOutput.add( menuOutputMcufFile ); |
2896 |
- menuOutputFlexiPix = new JRadioButtonMenuItem( "FlexiPix", false ); |
|
2897 |
- menuOutputFlexiPix.setMnemonic( KeyEvent.VK_F ); |
|
2898 |
- menuOutputFlexiPix.addActionListener( this ); |
|
2899 |
- menuOutput.add( menuOutputFlexiPix ); |
|
2900 |
- groupOutput.add( menuOutputFlexiPix ); |
|
2896 |
+ menuOutputEtherPix = new JRadioButtonMenuItem( "EtherPix", false ); |
|
2897 |
+ menuOutputEtherPix.setMnemonic( KeyEvent.VK_E ); |
|
2898 |
+ menuOutputEtherPix.addActionListener( this ); |
|
2899 |
+ menuOutput.add( menuOutputEtherPix ); |
|
2900 |
+ groupOutput.add( menuOutputEtherPix ); |
|
2901 | 2901 |
menuOutputNone.setSelected( true ); |
2902 | 2902 |
//help menu |
2903 | 2903 |
menuHelp = new JMenu( "Help" ); |
2904 | 2904 |