Commit 560c2e24 authored by claes's avatar claes

*** empty log message ***

parent 735d85b1
package jpwr.jopc;
import jpwr.rt.*;
import jpwr.jop.*;
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.*;
import java.awt.font.*;
import javax.swing.*;
import java.awt.event.*;
public class JopcDisksup extends JopFrame implements JopUtilityIfc {
JPanel contentPane;
BorderLayout borderLayout1 = new BorderLayout();
LocalPanel localPanel = new LocalPanel();
boolean scrollbar = false;
Dimension size;
pwr_indsquare pwr_indsquare3;
pwr_valuelong pwr_valuelong4;
pwr_valuelong pwr_valuelong5;
pwr_valuesmall pwr_valuesmall7;
pwr_valuelong pwr_valuelong8;
pwr_valuesmall pwr_valuesmall11;
pwr_valuesmall pwr_valuesmall14;
pwr_valuesmall pwr_valuesmall17;
pwr_valuelong pwr_valuelong18;
public JopcDisksup( JopSession session, String instance, boolean scrollbar) {
super( session, instance);
this.scrollbar = scrollbar;
geInit();
}
public JopcDisksup( JopSession session, String instance, boolean scrollbar, boolean noinit) {
super( session, instance);
this.scrollbar = scrollbar;
if ( !noinit)
geInit();
}
public void geInit() {
JopSpider.setSystemName( "-i@l@@`(}");
engine.setAnimationScanTime( 500);
engine.setScanTime( 500);
size = new Dimension( 712, 271);
Dimension dsize = new Dimension(localPanel.original_width,localPanel.original_height);
this.addComponentListener(new AspectRatioListener(this,size));
contentPane = (JPanel) this.getContentPane();
contentPane.setLayout(borderLayout1);
if ( scrollbar)
contentPane.add( new JScrollPane(localPanel), BorderLayout.CENTER);
else
contentPane.add(localPanel, BorderLayout.CENTER);
contentPane.setOpaque(true);
localPanel.setLayout( new RatioLayout()); // scaletest
localPanel.setOpaque(true);
localPanel.setBackground(GeColor.getColor(51, GeColor.NO_COLOR));
this.setSize(size);
if ( engine.isInstance())
setTitle( engine.getInstance());
else
this.setTitle("JopcDisksup");
pwr_indsquare3 = new pwr_indsquare(session);
pwr_indsquare3.setBounds(new Rectangle(134,79,17,18));
localPanel.add(pwr_indsquare3, new Proportion(pwr_indsquare3.getBounds(), dsize));
pwr_valuelong4 = new pwr_valuelong(session);
pwr_valuelong4.setBounds(new Rectangle(152,78,529,19));
pwr_valuelong4.setBorderColor(33);
localPanel.add(pwr_valuelong4, new Proportion(pwr_valuelong4.getBounds(), dsize));
pwr_valuelong5 = new pwr_valuelong(session);
pwr_valuelong5.setBounds(new Rectangle(134,13,546,24));
pwr_valuelong5.setBorderColor(33);
localPanel.add(pwr_valuelong5, new Proportion(pwr_valuelong5.getBounds(), dsize));
pwr_valuesmall7 = new pwr_valuesmall(session);
pwr_valuesmall7.setBounds(new Rectangle(133,144,55,19));
pwr_valuesmall7.setFillColor(31);
pwr_valuesmall7.setBorderColor(33);
localPanel.add(pwr_valuesmall7, new Proportion(pwr_valuesmall7.getBounds(), dsize));
pwr_valuelong8 = new pwr_valuelong(session);
pwr_valuelong8.setBounds(new Rectangle(134,38,546,24));
pwr_valuelong8.setBorderColor(33);
localPanel.add(pwr_valuelong8, new Proportion(pwr_valuelong8.getBounds(), dsize));
pwr_valuesmall11 = new pwr_valuesmall(session);
pwr_valuesmall11.setBounds(new Rectangle(133,105,55,19));
pwr_valuesmall11.setFillColor(31);
pwr_valuesmall11.setBorderColor(33);
localPanel.add(pwr_valuesmall11, new Proportion(pwr_valuesmall11.getBounds(), dsize));
pwr_valuesmall14 = new pwr_valuesmall(session);
pwr_valuesmall14.setBounds(new Rectangle(334,105,55,19));
pwr_valuesmall14.setFillColor(31);
pwr_valuesmall14.setBorderColor(33);
localPanel.add(pwr_valuesmall14, new Proportion(pwr_valuesmall14.getBounds(), dsize));
pwr_valuesmall17 = new pwr_valuesmall(session);
pwr_valuesmall17.setBounds(new Rectangle(133,167,55,19));
pwr_valuesmall17.setFillColor(31);
pwr_valuesmall17.setBorderColor(33);
localPanel.add(pwr_valuesmall17, new Proportion(pwr_valuesmall17.getBounds(), dsize));
pwr_valuelong18 = new pwr_valuelong(session);
pwr_valuelong18.setBounds(new Rectangle(134,190,546,24));
pwr_valuelong18.setBorderColor(33);
localPanel.add(pwr_valuelong18, new Proportion(pwr_valuelong18.getBounds(), dsize));
pwr_indsquare3.dd.setDynType(33554432);
pwr_indsquare3.dd.setActionType(0);
pwr_indsquare3.dd.setElements(new GeDynElemIfc[] {
new GeDynStatusColor(pwr_indsquare3.dd, "$object.Status##Status",38)
});
pwr_valuelong4.dd.setDynType(1025);
pwr_valuelong4.dd.setActionType(0);
pwr_valuelong4.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuelong4.dd, "$object.Status##Status","%1m")
});
pwr_valuelong5.dd.setDynType(1025);
pwr_valuelong5.dd.setActionType(0);
pwr_valuelong5.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuelong5.dd, "$object.Description##String80","%s")
});
pwr_valuesmall7.dd.setDynType(1025);
pwr_valuesmall7.dd.setActionType(0);
pwr_valuesmall7.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuesmall7.dd, "$object.ScanTime##Float32","%6.0f")
});
pwr_valuelong8.dd.setDynType(1025);
pwr_valuelong8.dd.setActionType(0);
pwr_valuelong8.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuelong8.dd, "$object.DiskName##String80","%s")
});
pwr_valuesmall11.dd.setDynType(1025);
pwr_valuesmall11.dd.setActionType(0);
pwr_valuesmall11.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuesmall11.dd, "$object.CurrentUse##Float32","%7.2f")
});
pwr_valuesmall14.dd.setDynType(1025);
pwr_valuesmall14.dd.setActionType(0);
pwr_valuesmall14.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuesmall14.dd, "$object.UsedMaxLImit##Float32","%7.2f")
});
pwr_valuesmall17.dd.setDynType(1025);
pwr_valuesmall17.dd.setActionType(0);
pwr_valuesmall17.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuesmall17.dd, "$object.Action##Int32","%d")
});
pwr_valuelong18.dd.setDynType(1025);
pwr_valuelong18.dd.setActionType(0);
pwr_valuelong18.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuelong18.dd, "$object.Command##String80","%s")
});
engine.setFrameReady();
}
class LocalPanel extends JPanel {
public LocalPanel() {}
int fillColor = 9999;
int originalFillColor = 9999;
int textColor = 9999;
int originalTextColor = 9999;
int borderColor = 9999;
int colorTone = 0;
int originalColorTone = 0;
int colorShift = 0;
int originalColorShift = 0;
int colorBrightness = 0;
int originalColorBrightness = 0;
int colorIntensity = 0;
int originalColorIntensity = 0;
int colorInverse = 0;
int originalColorInverse = 0;
int shadow = 0;
boolean dimmed = false;
public void setColorTone( int colorTone) {
this.colorTone = colorTone;
originalColorTone = colorTone;
}
public int getColorTone() {
return colorTone;
}
public void setColorShift( int colorShift) {
this.colorShift = colorShift;
originalColorShift = colorShift;
}
public int getColorShift() {
return colorShift;
}
public void setColorBrightness( int colorBrightness) {
this.colorBrightness = colorBrightness;
originalColorBrightness = colorBrightness;
}
public int getColorBrightness() {
return colorBrightness;
}
public void setColorIntensity( int colorIntensity) {
this.colorIntensity = colorIntensity;
originalColorIntensity = colorIntensity;
}
public int getColorIntensity() {
return colorIntensity;
}
public void setFillColor( int fillColor) {
this.fillColor = fillColor;
this.originalFillColor = fillColor;
}
public void resetFillColor() {
fillColor = originalFillColor;
}
public int getFillColor() {
return fillColor;
}
public void setBorderColor( int borderColor) {
this.borderColor = borderColor;
}
public int getBorderColor() {
return borderColor;
}
public int original_width = 704;
public int original_height = 227;
double rotate;
public void setRotate( double rotate) {
if ( rotate < 0)
this.rotate = rotate % 360 + 360;
else
this.rotate = rotate % 360;
}
public double getRotate() { return rotate;}
Shape[] shapes = new Shape[] {
new Rectangle2D.Float(12.1124F, 8.74151F, 675.281F, 213.802F),
new Polygon( new int[] { 12, 687, 685, 14, 14, 12}, new int[] { 9, 9, 11, 11, 220, 223}, 6),
new Polygon( new int[] { 687, 687, 685, 685, 14, 12}, new int[] { 223, 9, 11, 220, 220, 223}, 6),
new Rectangle2D.Float(15.4982F, 73.2021F, 669.616F, 60.5772F),
new Polygon( new int[] { 15, 685, 685, 16, 16, 15}, new int[] { 73, 73, 74, 74, 133, 134}, 6),
new Polygon( new int[] { 685, 685, 685, 685, 16, 15}, new int[] { 134, 73, 74, 133, 133, 134}, 6),
};
public void paint(Graphics g1) {
Graphics2D g = (Graphics2D) g1;
Component c;
Point p;
paintComponent(g);
for ( int i = 0; i < getComponentCount(); i++) {
AffineTransform save = g.getTransform();
c = getComponent(i);
p = c.getLocation();
g.translate((int)p.getX(), (int)p.getY());
c.paint(g);
g.setTransform(save);
}
}
public void paintComponent(Graphics g1) {
Graphics2D g = (Graphics2D) g1;
float width = getWidth();
float height = getHeight();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
double scaleWidth = (1.0*width/original_width);
double scaleHeight = (1.0*height/original_height);
AffineTransform save = g.getTransform();
g.setColor(getBackground());
g.fill(new Rectangle(0,0,getWidth(),getHeight()));
g.transform( AffineTransform.getScaleInstance( scaleWidth, scaleHeight)); // scaletest
AffineTransform save_tmp;
{
int fcolor = GeColor.getDrawtype(31, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[1]);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[2]);
}
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "ScanTime",18, 160);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "Status",17, 94);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "Description",18, 28);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "DiskName",18, 53);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "CurrentUse",18, 120);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.PLAIN, 12));
g.drawString( "%",195, 120);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "MaxLimit",251, 120);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.PLAIN, 12));
g.drawString( "%",396, 120);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "Action",18, 182);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "Command",18, 205);
{
int fcolor = GeColor.getDrawtype(31, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[4]);
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[5]);
}
g.setTransform(save);
}
public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;}
}
protected class pwr_indsquare extends GeComponent {
Dimension size;
public pwr_indsquare( JopSession session)
{
super( session);
size = new Dimension( 17, 18);
}
public int original_width = 17;
public int original_height = 18;
Shape[] shapes = new Shape[] {
new Rectangle2D.Float(2F, 2F, 13.4831F, 14.6067F),
new Polygon( new int[] { 2, 15, 13, 4, 4, 2}, new int[] { 2, 2, 4, 4, 15, 17}, 6),
new Polygon( new int[] { 15, 15, 13, 13, 4, 2}, new int[] { 17, 2, 4, 15, 15, 17}, 6),
};
public void paintComponent(Graphics g1) {
animationCount = 1;
if ( !visible)
return;
Graphics2D g = (Graphics2D) g1;
float width = getWidth();
float height = getHeight();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
if ( 45.0 <= rotate && rotate < 135.0) {
g.translate( width, 0.0);
g.rotate( Math.PI * rotate/180, 0.0, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else if ( 135.0 <= rotate && rotate < 225.0)
{
g.rotate( Math.PI * rotate/180, width/2, height/2);
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
}
else if ( 225.0 <= rotate && rotate < 315.0)
{
g.translate( -height, 0.0);
g.rotate( Math.PI * rotate/180, height, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
if ( (dd.dynType & dd.mDynType_Rotate) != 0 && dd.rotate != 0) {
g.rotate( Math.PI * dd.rotate/180,
(dd.x0 - getX())*original_width/width,
(dd.y0 - getY()) * original_height / height);
}
AffineTransform save = g.getTransform();
AffineTransform save_tmp;
int rounds = 1;
if ( fillLevel != 1F)
rounds = 2;
int oldColor = 0;
for ( int i = 0; i < rounds; i++) {
if ( rounds == 2) {
switch ( i) {
case 0:
if ( levelColorTone != GeColor.COLOR_TONE_NO) {
oldColor = colorTone;
colorTone = levelColorTone;
}
else if ( levelFillColor != GeColor.COLOR_NO) {
oldColor = fillColor;
fillColor = levelFillColor;
}
break;
case 1:
if ( levelColorTone != GeColor.COLOR_TONE_NO)
colorTone = oldColor;
else if ( levelFillColor != GeColor.COLOR_NO)
fillColor = oldColor;
break;
}
switch ( levelDirection) {
case Ge.DIRECTION_UP:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,fillLevel*original_height+Ge.cJBean_Offset,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,original_width,fillLevel * original_height+Ge.cJBean_Offset));
break;
case Ge.DIRECTION_DOWN:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,original_width,(1-fillLevel)*original_height+Ge.cJBean_Offset));
else
g.setClip(new Rectangle2D.Float(0F,(1-fillLevel)*original_height+Ge.cJBean_Offset,original_width,original_height));
break;
case Ge.DIRECTION_RIGHT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(fillLevel*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,fillLevel*width+Ge.cJBean_Offset,height));
break;
case Ge.DIRECTION_LEFT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,(1-fillLevel)*original_width+Ge.cJBean_Offset,original_height));
else
g.setClip(new Rectangle2D.Float((1-fillLevel)*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
break;
}
}
{
int fcolor = GeColor.getDrawtype(293, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.getColor( fcolor));
g.fill( shapes[0]);
if ( shadow != 0) {
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[1]);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[2]);
}
g.setStroke( new BasicStroke(1F));
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, borderColor, dimmed));
g.draw( shapes[0]);
}
}
if ( rounds == 2)
g.setClip(null);
g.setTransform(save);
}
public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;}
}
protected class pwr_valuelong extends GeComponent {
Dimension size;
public pwr_valuelong( JopSession session)
{
super( session);
size = new Dimension( 601, 19);
}
String annot1 = new String();
public String getAnnot1() { return annot1;}
public void setAnnot1( String s) { annot1 = s;}
Font annot1Font = new Font("Helvetica", Font.BOLD, 10);
int annot1Color = 0;
public void setAnnot1Font( Font font) { annot1Font = font;}
public void setAnnot1Color( int color) { annot1Color = color;}
public Font getAnnot1Font() { return annot1Font;}
public int original_width = 601;
public int original_height = 19;
Shape[] shapes = new Shape[] {
new Rectangle2D.Float(2F, 2F, 597.753F, 15.7303F),
new Polygon( new int[] { 2, 600, 599, 3, 3, 2}, new int[] { 2, 2, 3, 3, 17, 18}, 6),
new Polygon( new int[] { 600, 600, 599, 599, 3, 2}, new int[] { 18, 2, 3, 17, 17, 18}, 6),
};
public void paintComponent(Graphics g1) {
animationCount = 1;
if ( !visible)
return;
Graphics2D g = (Graphics2D) g1;
float width = getWidth();
float height = getHeight();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
if ( 45.0 <= rotate && rotate < 135.0) {
g.translate( width, 0.0);
g.rotate( Math.PI * rotate/180, 0.0, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else if ( 135.0 <= rotate && rotate < 225.0)
{
g.rotate( Math.PI * rotate/180, width/2, height/2);
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
}
else if ( 225.0 <= rotate && rotate < 315.0)
{
g.translate( -height, 0.0);
g.rotate( Math.PI * rotate/180, height, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
if ( (dd.dynType & dd.mDynType_Rotate) != 0 && dd.rotate != 0) {
g.rotate( Math.PI * dd.rotate/180,
(dd.x0 - getX())*original_width/width,
(dd.y0 - getY()) * original_height / height);
}
AffineTransform save = g.getTransform();
AffineTransform save_tmp;
int rounds = 1;
if ( fillLevel != 1F)
rounds = 2;
int oldColor = 0;
for ( int i = 0; i < rounds; i++) {
if ( rounds == 2) {
switch ( i) {
case 0:
if ( levelColorTone != GeColor.COLOR_TONE_NO) {
oldColor = colorTone;
colorTone = levelColorTone;
}
else if ( levelFillColor != GeColor.COLOR_NO) {
oldColor = fillColor;
fillColor = levelFillColor;
}
break;
case 1:
if ( levelColorTone != GeColor.COLOR_TONE_NO)
colorTone = oldColor;
else if ( levelFillColor != GeColor.COLOR_NO)
fillColor = oldColor;
break;
}
switch ( levelDirection) {
case Ge.DIRECTION_UP:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,fillLevel*original_height+Ge.cJBean_Offset,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,original_width,fillLevel * original_height+Ge.cJBean_Offset));
break;
case Ge.DIRECTION_DOWN:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,original_width,(1-fillLevel)*original_height+Ge.cJBean_Offset));
else
g.setClip(new Rectangle2D.Float(0F,(1-fillLevel)*original_height+Ge.cJBean_Offset,original_width,original_height));
break;
case Ge.DIRECTION_RIGHT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(fillLevel*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,fillLevel*width+Ge.cJBean_Offset,height));
break;
case Ge.DIRECTION_LEFT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,(1-fillLevel)*original_width+Ge.cJBean_Offset,original_height));
else
g.setClip(new Rectangle2D.Float((1-fillLevel)*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
break;
}
}
{
int fcolor = GeColor.getDrawtype(41, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.getColor( fcolor));
g.fill( shapes[0]);
if ( shadow != 0) {
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[1]);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[2]);
}
g.setStroke( new BasicStroke(1F));
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, borderColor, dimmed));
g.draw( shapes[0]);
}
g.setColor(GeColor.getColor( annot1Color , colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont( annot1Font);
save_tmp = g.getTransform();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_OFF);
g.transform( AffineTransform.getScaleInstance( original_width/width *
height/original_height, 1));
if ( annot1 != null)
g.drawString( annot1, 8 * original_height / height * width / original_width, 14F);
g.setTransform( save_tmp);
}
if ( rounds == 2)
g.setClip(null);
g.setTransform(save);
}
public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;}
}
protected class pwr_valuesmall extends GeComponent {
Dimension size;
public pwr_valuesmall( JopSession session)
{
super( session);
size = new Dimension( 55, 19);
}
String annot1 = new String();
public String getAnnot1() { return annot1;}
public void setAnnot1( String s) { annot1 = s;}
Font annot1Font = new Font("Helvetica", Font.BOLD, 10);
int annot1Color = 0;
public void setAnnot1Font( Font font) { annot1Font = font;}
public void setAnnot1Color( int color) { annot1Color = color;}
public Font getAnnot1Font() { return annot1Font;}
public int original_width = 55;
public int original_height = 19;
Shape[] shapes = new Shape[] {
new Rectangle2D.Float(2F, 2F, 51.6854F, 15.7303F),
new Polygon( new int[] { 2, 54, 53, 3, 3, 2}, new int[] { 2, 2, 3, 3, 17, 18}, 6),
new Polygon( new int[] { 54, 54, 53, 53, 3, 2}, new int[] { 18, 2, 3, 17, 17, 18}, 6),
};
public void paintComponent(Graphics g1) {
animationCount = 1;
if ( !visible)
return;
Graphics2D g = (Graphics2D) g1;
float width = getWidth();
float height = getHeight();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
if ( 45.0 <= rotate && rotate < 135.0) {
g.translate( width, 0.0);
g.rotate( Math.PI * rotate/180, 0.0, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else if ( 135.0 <= rotate && rotate < 225.0)
{
g.rotate( Math.PI * rotate/180, width/2, height/2);
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
}
else if ( 225.0 <= rotate && rotate < 315.0)
{
g.translate( -height, 0.0);
g.rotate( Math.PI * rotate/180, height, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
if ( (dd.dynType & dd.mDynType_Rotate) != 0 && dd.rotate != 0) {
g.rotate( Math.PI * dd.rotate/180,
(dd.x0 - getX())*original_width/width,
(dd.y0 - getY()) * original_height / height);
}
AffineTransform save = g.getTransform();
AffineTransform save_tmp;
int rounds = 1;
if ( fillLevel != 1F)
rounds = 2;
int oldColor = 0;
for ( int i = 0; i < rounds; i++) {
if ( rounds == 2) {
switch ( i) {
case 0:
if ( levelColorTone != GeColor.COLOR_TONE_NO) {
oldColor = colorTone;
colorTone = levelColorTone;
}
else if ( levelFillColor != GeColor.COLOR_NO) {
oldColor = fillColor;
fillColor = levelFillColor;
}
break;
case 1:
if ( levelColorTone != GeColor.COLOR_TONE_NO)
colorTone = oldColor;
else if ( levelFillColor != GeColor.COLOR_NO)
fillColor = oldColor;
break;
}
switch ( levelDirection) {
case Ge.DIRECTION_UP:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,fillLevel*original_height+Ge.cJBean_Offset,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,original_width,fillLevel * original_height+Ge.cJBean_Offset));
break;
case Ge.DIRECTION_DOWN:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,original_width,(1-fillLevel)*original_height+Ge.cJBean_Offset));
else
g.setClip(new Rectangle2D.Float(0F,(1-fillLevel)*original_height+Ge.cJBean_Offset,original_width,original_height));
break;
case Ge.DIRECTION_RIGHT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(fillLevel*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,fillLevel*width+Ge.cJBean_Offset,height));
break;
case Ge.DIRECTION_LEFT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,(1-fillLevel)*original_width+Ge.cJBean_Offset,original_height));
else
g.setClip(new Rectangle2D.Float((1-fillLevel)*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
break;
}
}
{
int fcolor = GeColor.getDrawtype(41, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.getColor( fcolor));
g.fill( shapes[0]);
if ( shadow != 0) {
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[1]);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[2]);
}
g.setStroke( new BasicStroke(1F));
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, borderColor, dimmed));
g.draw( shapes[0]);
}
g.setColor(GeColor.getColor( annot1Color , colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont( annot1Font);
save_tmp = g.getTransform();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_OFF);
g.transform( AffineTransform.getScaleInstance( original_width/width *
height/original_height, 1));
if ( annot1 != null)
g.drawString( annot1, 8 * original_height / height * width / original_width, 14F);
g.setTransform( save_tmp);
}
if ( rounds == 2)
g.setClip(null);
g.setTransform(save);
}
public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;}
}
public int getUtilityType() {
return JopUtility.GRAPH;
}
public PwrtObjid getUtilityObjid() {
return utilityObjid;
}
public String getUtilityName() {
return this.getClass().getName();
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
#ifndef cnv_file_h
#define cnv_file_h
class CnvFile {
public:
ofstream f;
};
#endif
package jpwr.jopc;
import jpwr.rt.*;
import jpwr.jop.*;
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.*;
import java.awt.font.*;
import javax.swing.*;
import java.awt.event.*;
public class JopcDisksup extends JopFrame implements JopUtilityIfc {
JPanel contentPane;
BorderLayout borderLayout1 = new BorderLayout();
LocalPanel localPanel = new LocalPanel();
boolean scrollbar = false;
Dimension size;
pwr_indsquare pwr_indsquare3;
pwr_valuelong pwr_valuelong4;
pwr_valuelong pwr_valuelong5;
pwr_valuesmall pwr_valuesmall7;
pwr_valuelong pwr_valuelong8;
pwr_valuesmall pwr_valuesmall11;
pwr_valuesmall pwr_valuesmall14;
pwr_valuesmall pwr_valuesmall17;
pwr_valuelong pwr_valuelong18;
public JopcDisksup( JopSession session, String instance, boolean scrollbar) {
super( session, instance);
this.scrollbar = scrollbar;
geInit();
}
public JopcDisksup( JopSession session, String instance, boolean scrollbar, boolean noinit) {
super( session, instance);
this.scrollbar = scrollbar;
if ( !noinit)
geInit();
}
public void geInit() {
JopSpider.setSystemName( "-i@l@@`(}");
engine.setAnimationScanTime( 500);
engine.setScanTime( 500);
size = new Dimension( 712, 271);
Dimension dsize = new Dimension(localPanel.original_width,localPanel.original_height);
this.addComponentListener(new AspectRatioListener(this,size));
contentPane = (JPanel) this.getContentPane();
contentPane.setLayout(borderLayout1);
if ( scrollbar)
contentPane.add( new JScrollPane(localPanel), BorderLayout.CENTER);
else
contentPane.add(localPanel, BorderLayout.CENTER);
contentPane.setOpaque(true);
localPanel.setLayout( new RatioLayout()); // scaletest
localPanel.setOpaque(true);
localPanel.setBackground(GeColor.getColor(51, GeColor.NO_COLOR));
this.setSize(size);
if ( engine.isInstance())
setTitle( engine.getInstance());
else
this.setTitle("JopcDisksup");
pwr_indsquare3 = new pwr_indsquare(session);
pwr_indsquare3.setBounds(new Rectangle(134,79,17,18));
localPanel.add(pwr_indsquare3, new Proportion(pwr_indsquare3.getBounds(), dsize));
pwr_valuelong4 = new pwr_valuelong(session);
pwr_valuelong4.setBounds(new Rectangle(152,78,529,19));
pwr_valuelong4.setBorderColor(33);
localPanel.add(pwr_valuelong4, new Proportion(pwr_valuelong4.getBounds(), dsize));
pwr_valuelong5 = new pwr_valuelong(session);
pwr_valuelong5.setBounds(new Rectangle(134,13,546,24));
pwr_valuelong5.setBorderColor(33);
localPanel.add(pwr_valuelong5, new Proportion(pwr_valuelong5.getBounds(), dsize));
pwr_valuesmall7 = new pwr_valuesmall(session);
pwr_valuesmall7.setBounds(new Rectangle(133,144,55,19));
pwr_valuesmall7.setFillColor(31);
pwr_valuesmall7.setBorderColor(33);
localPanel.add(pwr_valuesmall7, new Proportion(pwr_valuesmall7.getBounds(), dsize));
pwr_valuelong8 = new pwr_valuelong(session);
pwr_valuelong8.setBounds(new Rectangle(134,38,546,24));
pwr_valuelong8.setBorderColor(33);
localPanel.add(pwr_valuelong8, new Proportion(pwr_valuelong8.getBounds(), dsize));
pwr_valuesmall11 = new pwr_valuesmall(session);
pwr_valuesmall11.setBounds(new Rectangle(133,105,55,19));
pwr_valuesmall11.setFillColor(31);
pwr_valuesmall11.setBorderColor(33);
localPanel.add(pwr_valuesmall11, new Proportion(pwr_valuesmall11.getBounds(), dsize));
pwr_valuesmall14 = new pwr_valuesmall(session);
pwr_valuesmall14.setBounds(new Rectangle(334,105,55,19));
pwr_valuesmall14.setFillColor(31);
pwr_valuesmall14.setBorderColor(33);
localPanel.add(pwr_valuesmall14, new Proportion(pwr_valuesmall14.getBounds(), dsize));
pwr_valuesmall17 = new pwr_valuesmall(session);
pwr_valuesmall17.setBounds(new Rectangle(133,167,55,19));
pwr_valuesmall17.setFillColor(31);
pwr_valuesmall17.setBorderColor(33);
localPanel.add(pwr_valuesmall17, new Proportion(pwr_valuesmall17.getBounds(), dsize));
pwr_valuelong18 = new pwr_valuelong(session);
pwr_valuelong18.setBounds(new Rectangle(134,190,546,24));
pwr_valuelong18.setBorderColor(33);
localPanel.add(pwr_valuelong18, new Proportion(pwr_valuelong18.getBounds(), dsize));
pwr_indsquare3.dd.setDynType(33554432);
pwr_indsquare3.dd.setActionType(0);
pwr_indsquare3.dd.setElements(new GeDynElemIfc[] {
new GeDynStatusColor(pwr_indsquare3.dd, "$object.Status##Status",38)
});
pwr_valuelong4.dd.setDynType(1025);
pwr_valuelong4.dd.setActionType(0);
pwr_valuelong4.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuelong4.dd, "$object.Status##Status","%1m")
});
pwr_valuelong5.dd.setDynType(1025);
pwr_valuelong5.dd.setActionType(0);
pwr_valuelong5.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuelong5.dd, "$object.Description##String80","%s")
});
pwr_valuesmall7.dd.setDynType(1025);
pwr_valuesmall7.dd.setActionType(0);
pwr_valuesmall7.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuesmall7.dd, "$object.ScanTime##Float32","%6.0f")
});
pwr_valuelong8.dd.setDynType(1025);
pwr_valuelong8.dd.setActionType(0);
pwr_valuelong8.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuelong8.dd, "$object.DiskName##String80","%s")
});
pwr_valuesmall11.dd.setDynType(1025);
pwr_valuesmall11.dd.setActionType(0);
pwr_valuesmall11.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuesmall11.dd, "$object.CurrentUse##Float32","%7.2f")
});
pwr_valuesmall14.dd.setDynType(1025);
pwr_valuesmall14.dd.setActionType(0);
pwr_valuesmall14.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuesmall14.dd, "$object.UsedMaxLImit##Float32","%7.2f")
});
pwr_valuesmall17.dd.setDynType(1025);
pwr_valuesmall17.dd.setActionType(0);
pwr_valuesmall17.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuesmall17.dd, "$object.Action##Int32","%d")
});
pwr_valuelong18.dd.setDynType(1025);
pwr_valuelong18.dd.setActionType(0);
pwr_valuelong18.dd.setElements(new GeDynElemIfc[] {
new GeDynValue(pwr_valuelong18.dd, "$object.Command##String80","%s")
});
engine.setFrameReady();
}
class LocalPanel extends JPanel {
public LocalPanel() {}
int fillColor = 9999;
int originalFillColor = 9999;
int textColor = 9999;
int originalTextColor = 9999;
int borderColor = 9999;
int colorTone = 0;
int originalColorTone = 0;
int colorShift = 0;
int originalColorShift = 0;
int colorBrightness = 0;
int originalColorBrightness = 0;
int colorIntensity = 0;
int originalColorIntensity = 0;
int colorInverse = 0;
int originalColorInverse = 0;
int shadow = 0;
boolean dimmed = false;
public void setColorTone( int colorTone) {
this.colorTone = colorTone;
originalColorTone = colorTone;
}
public int getColorTone() {
return colorTone;
}
public void setColorShift( int colorShift) {
this.colorShift = colorShift;
originalColorShift = colorShift;
}
public int getColorShift() {
return colorShift;
}
public void setColorBrightness( int colorBrightness) {
this.colorBrightness = colorBrightness;
originalColorBrightness = colorBrightness;
}
public int getColorBrightness() {
return colorBrightness;
}
public void setColorIntensity( int colorIntensity) {
this.colorIntensity = colorIntensity;
originalColorIntensity = colorIntensity;
}
public int getColorIntensity() {
return colorIntensity;
}
public void setFillColor( int fillColor) {
this.fillColor = fillColor;
this.originalFillColor = fillColor;
}
public void resetFillColor() {
fillColor = originalFillColor;
}
public int getFillColor() {
return fillColor;
}
public void setBorderColor( int borderColor) {
this.borderColor = borderColor;
}
public int getBorderColor() {
return borderColor;
}
public int original_width = 704;
public int original_height = 227;
double rotate;
public void setRotate( double rotate) {
if ( rotate < 0)
this.rotate = rotate % 360 + 360;
else
this.rotate = rotate % 360;
}
public double getRotate() { return rotate;}
Shape[] shapes = new Shape[] {
new Rectangle2D.Float(12.1124F, 8.74151F, 675.281F, 213.802F),
new Polygon( new int[] { 12, 687, 685, 14, 14, 12}, new int[] { 9, 9, 11, 11, 220, 223}, 6),
new Polygon( new int[] { 687, 687, 685, 685, 14, 12}, new int[] { 223, 9, 11, 220, 220, 223}, 6),
new Rectangle2D.Float(15.4982F, 73.2021F, 669.616F, 60.5772F),
new Polygon( new int[] { 15, 685, 685, 16, 16, 15}, new int[] { 73, 73, 74, 74, 133, 134}, 6),
new Polygon( new int[] { 685, 685, 685, 685, 16, 15}, new int[] { 134, 73, 74, 133, 133, 134}, 6),
};
public void paint(Graphics g1) {
Graphics2D g = (Graphics2D) g1;
Component c;
Point p;
paintComponent(g);
for ( int i = 0; i < getComponentCount(); i++) {
AffineTransform save = g.getTransform();
c = getComponent(i);
p = c.getLocation();
g.translate((int)p.getX(), (int)p.getY());
c.paint(g);
g.setTransform(save);
}
}
public void paintComponent(Graphics g1) {
Graphics2D g = (Graphics2D) g1;
float width = getWidth();
float height = getHeight();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
double scaleWidth = (1.0*width/original_width);
double scaleHeight = (1.0*height/original_height);
AffineTransform save = g.getTransform();
g.setColor(getBackground());
g.fill(new Rectangle(0,0,getWidth(),getHeight()));
g.transform( AffineTransform.getScaleInstance( scaleWidth, scaleHeight)); // scaletest
AffineTransform save_tmp;
{
int fcolor = GeColor.getDrawtype(31, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[1]);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[2]);
}
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "ScanTime",18, 160);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "Status",17, 94);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "Description",18, 28);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "DiskName",18, 53);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "CurrentUse",18, 120);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.PLAIN, 12));
g.drawString( "%",195, 120);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "MaxLimit",251, 120);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.PLAIN, 12));
g.drawString( "%",396, 120);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "Action",18, 182);
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont(new Font("Helvetica", Font.BOLD, 12));
g.drawString( "Command",18, 205);
{
int fcolor = GeColor.getDrawtype(31, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[4]);
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[5]);
}
g.setTransform(save);
}
public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;}
}
protected class pwr_indsquare extends GeComponent {
Dimension size;
public pwr_indsquare( JopSession session)
{
super( session);
size = new Dimension( 17, 18);
}
public int original_width = 17;
public int original_height = 18;
Shape[] shapes = new Shape[] {
new Rectangle2D.Float(2F, 2F, 13.4831F, 14.6067F),
new Polygon( new int[] { 2, 15, 13, 4, 4, 2}, new int[] { 2, 2, 4, 4, 15, 17}, 6),
new Polygon( new int[] { 15, 15, 13, 13, 4, 2}, new int[] { 17, 2, 4, 15, 15, 17}, 6),
};
public void paintComponent(Graphics g1) {
animationCount = 1;
if ( !visible)
return;
Graphics2D g = (Graphics2D) g1;
float width = getWidth();
float height = getHeight();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
if ( 45.0 <= rotate && rotate < 135.0) {
g.translate( width, 0.0);
g.rotate( Math.PI * rotate/180, 0.0, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else if ( 135.0 <= rotate && rotate < 225.0)
{
g.rotate( Math.PI * rotate/180, width/2, height/2);
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
}
else if ( 225.0 <= rotate && rotate < 315.0)
{
g.translate( -height, 0.0);
g.rotate( Math.PI * rotate/180, height, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
if ( (dd.dynType & dd.mDynType_Rotate) != 0 && dd.rotate != 0) {
g.rotate( Math.PI * dd.rotate/180,
(dd.x0 - getX())*original_width/width,
(dd.y0 - getY()) * original_height / height);
}
AffineTransform save = g.getTransform();
AffineTransform save_tmp;
int rounds = 1;
if ( fillLevel != 1F)
rounds = 2;
int oldColor = 0;
for ( int i = 0; i < rounds; i++) {
if ( rounds == 2) {
switch ( i) {
case 0:
if ( levelColorTone != GeColor.COLOR_TONE_NO) {
oldColor = colorTone;
colorTone = levelColorTone;
}
else if ( levelFillColor != GeColor.COLOR_NO) {
oldColor = fillColor;
fillColor = levelFillColor;
}
break;
case 1:
if ( levelColorTone != GeColor.COLOR_TONE_NO)
colorTone = oldColor;
else if ( levelFillColor != GeColor.COLOR_NO)
fillColor = oldColor;
break;
}
switch ( levelDirection) {
case Ge.DIRECTION_UP:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,fillLevel*original_height+Ge.cJBean_Offset,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,original_width,fillLevel * original_height+Ge.cJBean_Offset));
break;
case Ge.DIRECTION_DOWN:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,original_width,(1-fillLevel)*original_height+Ge.cJBean_Offset));
else
g.setClip(new Rectangle2D.Float(0F,(1-fillLevel)*original_height+Ge.cJBean_Offset,original_width,original_height));
break;
case Ge.DIRECTION_RIGHT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(fillLevel*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,fillLevel*width+Ge.cJBean_Offset,height));
break;
case Ge.DIRECTION_LEFT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,(1-fillLevel)*original_width+Ge.cJBean_Offset,original_height));
else
g.setClip(new Rectangle2D.Float((1-fillLevel)*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
break;
}
}
{
int fcolor = GeColor.getDrawtype(293, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.getColor( fcolor));
g.fill( shapes[0]);
if ( shadow != 0) {
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[1]);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[2]);
}
g.setStroke( new BasicStroke(1F));
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, borderColor, dimmed));
g.draw( shapes[0]);
}
}
if ( rounds == 2)
g.setClip(null);
g.setTransform(save);
}
public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;}
}
protected class pwr_valuelong extends GeComponent {
Dimension size;
public pwr_valuelong( JopSession session)
{
super( session);
size = new Dimension( 601, 19);
}
String annot1 = new String();
public String getAnnot1() { return annot1;}
public void setAnnot1( String s) { annot1 = s;}
Font annot1Font = new Font("Helvetica", Font.BOLD, 10);
int annot1Color = 0;
public void setAnnot1Font( Font font) { annot1Font = font;}
public void setAnnot1Color( int color) { annot1Color = color;}
public Font getAnnot1Font() { return annot1Font;}
public int original_width = 601;
public int original_height = 19;
Shape[] shapes = new Shape[] {
new Rectangle2D.Float(2F, 2F, 597.753F, 15.7303F),
new Polygon( new int[] { 2, 600, 599, 3, 3, 2}, new int[] { 2, 2, 3, 3, 17, 18}, 6),
new Polygon( new int[] { 600, 600, 599, 599, 3, 2}, new int[] { 18, 2, 3, 17, 17, 18}, 6),
};
public void paintComponent(Graphics g1) {
animationCount = 1;
if ( !visible)
return;
Graphics2D g = (Graphics2D) g1;
float width = getWidth();
float height = getHeight();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
if ( 45.0 <= rotate && rotate < 135.0) {
g.translate( width, 0.0);
g.rotate( Math.PI * rotate/180, 0.0, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else if ( 135.0 <= rotate && rotate < 225.0)
{
g.rotate( Math.PI * rotate/180, width/2, height/2);
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
}
else if ( 225.0 <= rotate && rotate < 315.0)
{
g.translate( -height, 0.0);
g.rotate( Math.PI * rotate/180, height, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
if ( (dd.dynType & dd.mDynType_Rotate) != 0 && dd.rotate != 0) {
g.rotate( Math.PI * dd.rotate/180,
(dd.x0 - getX())*original_width/width,
(dd.y0 - getY()) * original_height / height);
}
AffineTransform save = g.getTransform();
AffineTransform save_tmp;
int rounds = 1;
if ( fillLevel != 1F)
rounds = 2;
int oldColor = 0;
for ( int i = 0; i < rounds; i++) {
if ( rounds == 2) {
switch ( i) {
case 0:
if ( levelColorTone != GeColor.COLOR_TONE_NO) {
oldColor = colorTone;
colorTone = levelColorTone;
}
else if ( levelFillColor != GeColor.COLOR_NO) {
oldColor = fillColor;
fillColor = levelFillColor;
}
break;
case 1:
if ( levelColorTone != GeColor.COLOR_TONE_NO)
colorTone = oldColor;
else if ( levelFillColor != GeColor.COLOR_NO)
fillColor = oldColor;
break;
}
switch ( levelDirection) {
case Ge.DIRECTION_UP:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,fillLevel*original_height+Ge.cJBean_Offset,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,original_width,fillLevel * original_height+Ge.cJBean_Offset));
break;
case Ge.DIRECTION_DOWN:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,original_width,(1-fillLevel)*original_height+Ge.cJBean_Offset));
else
g.setClip(new Rectangle2D.Float(0F,(1-fillLevel)*original_height+Ge.cJBean_Offset,original_width,original_height));
break;
case Ge.DIRECTION_RIGHT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(fillLevel*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,fillLevel*width+Ge.cJBean_Offset,height));
break;
case Ge.DIRECTION_LEFT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,(1-fillLevel)*original_width+Ge.cJBean_Offset,original_height));
else
g.setClip(new Rectangle2D.Float((1-fillLevel)*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
break;
}
}
{
int fcolor = GeColor.getDrawtype(41, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.getColor( fcolor));
g.fill( shapes[0]);
if ( shadow != 0) {
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[1]);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[2]);
}
g.setStroke( new BasicStroke(1F));
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, borderColor, dimmed));
g.draw( shapes[0]);
}
g.setColor(GeColor.getColor( annot1Color , colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont( annot1Font);
save_tmp = g.getTransform();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_OFF);
g.transform( AffineTransform.getScaleInstance( original_width/width *
height/original_height, 1));
if ( annot1 != null)
g.drawString( annot1, 8 * original_height / height * width / original_width, 14F);
g.setTransform( save_tmp);
}
if ( rounds == 2)
g.setClip(null);
g.setTransform(save);
}
public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;}
}
protected class pwr_valuesmall extends GeComponent {
Dimension size;
public pwr_valuesmall( JopSession session)
{
super( session);
size = new Dimension( 55, 19);
}
String annot1 = new String();
public String getAnnot1() { return annot1;}
public void setAnnot1( String s) { annot1 = s;}
Font annot1Font = new Font("Helvetica", Font.BOLD, 10);
int annot1Color = 0;
public void setAnnot1Font( Font font) { annot1Font = font;}
public void setAnnot1Color( int color) { annot1Color = color;}
public Font getAnnot1Font() { return annot1Font;}
public int original_width = 55;
public int original_height = 19;
Shape[] shapes = new Shape[] {
new Rectangle2D.Float(2F, 2F, 51.6854F, 15.7303F),
new Polygon( new int[] { 2, 54, 53, 3, 3, 2}, new int[] { 2, 2, 3, 3, 17, 18}, 6),
new Polygon( new int[] { 54, 54, 53, 53, 3, 2}, new int[] { 18, 2, 3, 17, 17, 18}, 6),
};
public void paintComponent(Graphics g1) {
animationCount = 1;
if ( !visible)
return;
Graphics2D g = (Graphics2D) g1;
float width = getWidth();
float height = getHeight();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
if ( 45.0 <= rotate && rotate < 135.0) {
g.translate( width, 0.0);
g.rotate( Math.PI * rotate/180, 0.0, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else if ( 135.0 <= rotate && rotate < 225.0)
{
g.rotate( Math.PI * rotate/180, width/2, height/2);
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
}
else if ( 225.0 <= rotate && rotate < 315.0)
{
g.translate( -height, 0.0);
g.rotate( Math.PI * rotate/180, height, 0.0);
g.transform( AffineTransform.getScaleInstance( height/original_width,
width/original_height));
}
else
g.transform( AffineTransform.getScaleInstance( width/original_width,
height/original_height));
if ( (dd.dynType & dd.mDynType_Rotate) != 0 && dd.rotate != 0) {
g.rotate( Math.PI * dd.rotate/180,
(dd.x0 - getX())*original_width/width,
(dd.y0 - getY()) * original_height / height);
}
AffineTransform save = g.getTransform();
AffineTransform save_tmp;
int rounds = 1;
if ( fillLevel != 1F)
rounds = 2;
int oldColor = 0;
for ( int i = 0; i < rounds; i++) {
if ( rounds == 2) {
switch ( i) {
case 0:
if ( levelColorTone != GeColor.COLOR_TONE_NO) {
oldColor = colorTone;
colorTone = levelColorTone;
}
else if ( levelFillColor != GeColor.COLOR_NO) {
oldColor = fillColor;
fillColor = levelFillColor;
}
break;
case 1:
if ( levelColorTone != GeColor.COLOR_TONE_NO)
colorTone = oldColor;
else if ( levelFillColor != GeColor.COLOR_NO)
fillColor = oldColor;
break;
}
switch ( levelDirection) {
case Ge.DIRECTION_UP:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,fillLevel*original_height+Ge.cJBean_Offset,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,original_width,fillLevel * original_height+Ge.cJBean_Offset));
break;
case Ge.DIRECTION_DOWN:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,original_width,(1-fillLevel)*original_height+Ge.cJBean_Offset));
else
g.setClip(new Rectangle2D.Float(0F,(1-fillLevel)*original_height+Ge.cJBean_Offset,original_width,original_height));
break;
case Ge.DIRECTION_RIGHT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(fillLevel*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
else
g.setClip(new Rectangle2D.Float(0F,0F,fillLevel*width+Ge.cJBean_Offset,height));
break;
case Ge.DIRECTION_LEFT:
if ( i == 0)
g.setClip(new Rectangle2D.Float(0F,0F,(1-fillLevel)*original_width+Ge.cJBean_Offset,original_height));
else
g.setClip(new Rectangle2D.Float((1-fillLevel)*original_width+Ge.cJBean_Offset,0F,original_width,original_height));
break;
}
}
{
int fcolor = GeColor.getDrawtype(41, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, fillColor, dimmed);
g.setColor(GeColor.getColor( fcolor));
g.fill( shapes[0]);
if ( shadow != 0) {
g.setColor(GeColor.shiftColor( fcolor, -2, colorInverse));
g.fill( shapes[1]);
g.setColor(GeColor.shiftColor( fcolor, 2, colorInverse));
g.fill( shapes[2]);
}
g.setStroke( new BasicStroke(1F));
g.setColor(GeColor.getColor(0, colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, borderColor, dimmed));
g.draw( shapes[0]);
}
g.setColor(GeColor.getColor( annot1Color , colorTone,
colorShift, colorIntensity, colorBrightness, colorInverse, textColor, dimmed));
g.setFont( annot1Font);
save_tmp = g.getTransform();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_OFF);
g.transform( AffineTransform.getScaleInstance( original_width/width *
height/original_height, 1));
if ( annot1 != null)
g.drawString( annot1, 8 * original_height / height * width / original_width, 14F);
g.setTransform( save_tmp);
}
if ( rounds == 2)
g.setClip(null);
g.setTransform(save);
}
public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;}
}
public int getUtilityType() {
return JopUtility.GRAPH;
}
public PwrtObjid getUtilityObjid() {
return utilityObjid;
}
public String getUtilityName() {
return this.getClass().getName();
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
.TH rt_ini "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
rt_ini - start, restart or stop the Proview runtime environment
.SH SYNOPSIS
.B rt_ini
[\fIOPTION\fR]
.SH DESCRIPTION
Startup process for the Proview runtime environment.
.SH OPTIONS
.HP
\fB\-a\fR
.IP
Application file. The application file defines the application processes for
the node. The default name is $pwrp_load/ld_appl_'node'_'busid'.txt, where node is
the nodename and busid is the QCOM bus id, for example
$pwrp_load/ld_appl_vwxn1t_507.txt
.HP
\fB\-b\fR
.IP
Boot file. The default bootfile is $pwrp_load/ld_boot_'node'_'busid'.txt, where node
is the nodename and busid the QCOM bus id, for example
$pwrp_load/ld_appl_vwxn1t_0507.txt
.HP
\fB\-c\fR
.IP
Console file. The output of log messages to the console device can be redirected with
the -c option.
.HP
\fB\-d\fR
.IP
Load file directory. Default is $pwrp_load.
.HP
\fB\-e\fR
.IP
Ignore errors.
.HP
\fB\-f\fR
.IP
Ignore fatal errors.
.HP
\fB\-h\fR
.IP
Print help.
.HP
\fB\-i\fR
.IP
Interactive. Print error messages to terminal.
.HP
\fB\-n\fR
.IP
Node name.
.HP
\fB\-p\fR
.IP
Plc file. Default is $pwrp_exe/plc_'node'_'busid' where node id the node name and busid
the QCOM bus id.
.HP
\fB\-q\fR
.IP
QCOM bus id.
.HP
\fB\-r\fR
.IP
Soft restart.
.HP
\fB\-s\fR
.IP
Stop Proview.
.HP
\fB\-v\fR
.IP
Verbose.
.HP
\fB\-w\fR
.IP
Ignore warnings.
.HP
\fB\-A\fR
.IP
Alias file. Default is $pwrp_load/pwrp_alias.dat
.HP
\fB\-?\fR
.IP
Print help.
.SH FILES
/etc/pwrp_profile
The Proview system wide configuration file.
.SH "SEE ALSO"
.BR pwr(1)
.TH rt_rtt "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
rt_rtt - Proview Runtime Terminal Tool
.SH SYNOPSIS
.B rt_rtt
[user] [script] [configuration]
.SH DESCRIPTION
Examine and navigate in the realtime database from a VT100 terminal.
.SH OPTIONS
.HP
\fBuser\fR
.IP
The user of the session. OP for operator, SYS for system manager.
.HP
\fBscript\fR
.IP
A rtt script file.
.HP
\fBconfiguration\fR
.IP
A RttConfig object that configures the session.
.SH AUTHOR
Written by cs.
.SH "SEE ALSO"
.BR rt_xtt(1)
.TH rt_xtt "1" "April 2005" "Proview" "Proview Manual"
.SH NAME
rt_xtt - Proview Operator Environment
.SH SYNOPSIS
.B rt_xtt
[\fIOPTION\fR] [opplace]
.SH DESCRIPTION
The Proview Operator Environment contains a set of utitlities to display information
about the process and the Proview system:
.RS
\- Operator window.
.RE
.RS
\- Process Graphics drawn in the Ge editor.
.RE
.RS
\- Trends and fastcurves.
.RE
.RS
\- Helptexts.
.RE
.RS
\- Navigator for the realtime database.
.RE
.RS
\- Alarms and events.
.RE
.SH OPTIONS
.HP
\fBopplace\fR
.IP
The name of the OpPlace object for the operator place.
.HP
\fB\-l\fR
.IP
Language.
.RS
en_us English
.RE
.RS
sv_se Swedish.
.RE
.RS
en_us is default.
.RE
.HP
\fB\-u\fR
.IP
Use opplace object with the same name as the current user.
.SH AUTHOR
Written by cs.
.SH "SEE ALSO"
.BR pwr(1),
.BR rt_ini(1)
#define xnav_bitmap_attrref10_width 15
#define xnav_bitmap_attrref10_height 10
static unsigned char xnav_bitmap_attrref10_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0xb0, 0x7f, 0xff, 0x40, 0xb0, 0x7f,
0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#define xnav_bitmap_attrref12_width 18
#define xnav_bitmap_attrref12_height 12
static char xnav_bitmap_attrref12_bits[] = {
0x00, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x40, 0x00, 0x00,
static unsigned char xnav_bitmap_attrref12_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00,
0xc0, 0xfe, 0x03, 0xff, 0x03, 0x02, 0xc0, 0xfe, 0x03, 0x40, 0x00, 0x00,
0x00, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x00, 0x00, 0x00};
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#define xnav_bitmap_attrref14_width 21
#define xnav_bitmap_attrref14_height 14
static unsigned char xnav_bitmap_attrref14_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
0x60, 0x00, 0x00, 0xe0, 0xfe, 0x1f, 0xff, 0x03, 0x10, 0xe0, 0xfe, 0x1f,
0x60, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#define xnav_bitmap_attrref16_width 24
#define xnav_bitmap_attrref16_height 16
static unsigned char xnav_bitmap_attrref16_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0x00, 0x00, 0x80, 0x01, 0x00, 0x80, 0xfb, 0xff, 0xff, 0x0f, 0x80,
0x80, 0xfb, 0xff, 0x80, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#define xnav_bitmap_attrref18_width 27
#define xnav_bitmap_attrref18_height 18
static unsigned char xnav_bitmap_attrref18_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
0x00, 0x03, 0x00, 0x00, 0x00, 0xf7, 0xff, 0x07, 0xfe, 0x1f, 0x00, 0x04,
0x00, 0xf7, 0xff, 0x07, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#define xnav_bitmap_attrref20_width 30
#define xnav_bitmap_attrref20_height 20
static unsigned char xnav_bitmap_attrref20_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
0x00, 0x06, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0xde, 0xff, 0x3f,
0xfe, 0x7f, 0x00, 0x20, 0x00, 0xde, 0xff, 0x3f, 0x00, 0x0e, 0x00, 0x00,
0x00, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#define xnav_bitmap_attrref24_width 36
#define xnav_bitmap_attrref24_height 24
static unsigned char xnav_bitmap_attrref24_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x08, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x38, 0xff,
0xff, 0x0f, 0x00, 0x78, 0x01, 0x00, 0x08, 0xfe, 0xff, 0x01, 0x00, 0x08,
0x00, 0x78, 0x01, 0x00, 0x08, 0x00, 0x38, 0xff, 0xff, 0x0f, 0x00, 0x18,
0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#define xnav_bitmap_attrref8_width 12
#define xnav_bitmap_attrref8_height 8
static unsigned char xnav_bitmap_attrref8_bits[] = {
0x00, 0x00, 0x08, 0x00, 0xd8, 0x0f, 0x7f, 0x08, 0xd8, 0x0f, 0x08, 0x00,
0x00, 0x00, 0x00, 0x00};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment