Commit e0b7ed8e authored by claes's avatar claes

Adapted to resizable frame

parent 2526faff
/* /*
* Proview $Id: GeDynMove.java,v 1.4 2005-09-01 14:57:50 claes Exp $ * Proview $Id: GeDynMove.java,v 1.5 2005-11-04 11:41:52 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -52,8 +52,11 @@ public String moveYAttribute; ...@@ -52,8 +52,11 @@ public String moveYAttribute;
public double yOrig; public double yOrig;
public double wOrig; public double wOrig;
public double hOrig; public double hOrig;
public double wRootOrig;
public double wRootOld;
public double xScale = 1; public double xScale = 1;
public double yScale = 1; public double yScale = 1;
JRootPane rootpane;
boolean firstScan = true; boolean firstScan = true;
public GeDynMove( GeDyn dyn, String moveXAttribute, String moveYAttribute, public GeDynMove( GeDyn dyn, String moveXAttribute, String moveYAttribute,
...@@ -135,10 +138,15 @@ public String moveYAttribute; ...@@ -135,10 +138,15 @@ public String moveYAttribute;
Dimension size = ((JComponent)dyn.comp).getSize(); Dimension size = ((JComponent)dyn.comp).getSize();
wOrig= (double) size.width; wOrig= (double) size.width;
hOrig= (double) size.height; hOrig= (double) size.height;
rootpane = ((JComponent)dyn.comp).getRootPane();
wRootOrig = (double) rootpane.getWidth();
} }
double wRoot = (double) rootpane.getWidth();
if ( attrMoveXFound || attrMoveYFound) { if ( attrMoveXFound || attrMoveYFound) {
// Move // Move
Point loc = ((JComponent)dyn.comp).getLocation(); Point loc = ((JComponent)dyn.comp).getLocation();
Dimension size = ((JComponent)dyn.comp).getSize(); Dimension size = ((JComponent)dyn.comp).getSize();
float valueMoveX = 0; float valueMoveX = 0;
...@@ -160,11 +168,11 @@ public String moveYAttribute; ...@@ -160,11 +168,11 @@ public String moveYAttribute;
} }
if ( repaintNow) { if ( repaintNow) {
if ( attrMoveXFound){ if ( attrMoveXFound){
double xRatio=(size.width/wOrig); double xRatio = wRoot/wRootOrig;
loc.x = (int) ((xOrig + (valueMoveX - xOffset) * factor) * xRatio); loc.x = (int) ((xOrig + (valueMoveX - xOffset) * factor) * xRatio);
} }
if ( attrMoveYFound){ if ( attrMoveYFound){
double yRatio=(size.height/hOrig); double yRatio = wRoot/wRootOrig;
loc.y = (int) ((yOrig + (valueMoveY - yOffset) * factor) * yRatio); loc.y = (int) ((yOrig + (valueMoveY - yOffset) * factor) * yRatio);
} }
((JComponent)dyn.comp).setLocation( loc); ((JComponent)dyn.comp).setLocation( loc);
...@@ -181,14 +189,14 @@ public String moveYAttribute; ...@@ -181,14 +189,14 @@ public String moveYAttribute;
if ( attrScaleXFound) { if ( attrScaleXFound) {
valueScaleX = (float) (dyn.en.gdh.getObjectRefInfoFloat( scaleXp) * scaleFactor); valueScaleX = (float) (dyn.en.gdh.getObjectRefInfoFloat( scaleXp) * scaleFactor);
if ( valueScaleX != scaleXOldValue || firstScan) { if ( valueScaleX != scaleXOldValue || firstScan || wRoot != wRootOld) {
repaintNow = true; repaintNow = true;
scaleXOldValue = valueScaleX; scaleXOldValue = valueScaleX;
} }
} }
if ( attrScaleYFound) { if ( attrScaleYFound) {
valueScaleY = (float) (dyn.en.gdh.getObjectRefInfoFloat( scaleYp) * scaleFactor); valueScaleY = (float) (dyn.en.gdh.getObjectRefInfoFloat( scaleYp) * scaleFactor);
if ( valueScaleY != scaleYOldValue || firstScan) { if ( valueScaleY != scaleYOldValue || firstScan || wRoot != wRootOld) {
repaintNow = true; repaintNow = true;
scaleYOldValue = valueScaleY; scaleYOldValue = valueScaleY;
} }
...@@ -196,19 +204,19 @@ public String moveYAttribute; ...@@ -196,19 +204,19 @@ public String moveYAttribute;
if ( repaintNow) { if ( repaintNow) {
Rectangle rect = ((JComponent)dyn.comp).getBounds(); Rectangle rect = ((JComponent)dyn.comp).getBounds();
if ( attrScaleXFound) { if ( attrScaleXFound) {
rect.width = (int) (xScale * valueScaleX); rect.width = (int) (xScale * valueScaleX * wRoot / wRootOrig);
if ( rect.width < 1) if ( rect.width < 1)
rect.width = 1; rect.width = 1;
} }
if ( attrScaleYFound) { if ( attrScaleYFound) {
rect.height = (int) (yScale * valueScaleY); rect.height = (int) (yScale * valueScaleY * wRoot / wRootOrig);
if ( rect.height < 1) if ( rect.height < 1)
rect.height = 1; rect.height = 1;
} }
((JComponent)dyn.comp).setBounds( rect); ((JComponent)dyn.comp).setBounds( rect);
} }
} }
wRootOld = wRoot;
if ( firstScan) if ( firstScan)
firstScan = false; firstScan = false;
} }
......
/* /*
* Proview $Id: JopAxis.java,v 1.3 2005-09-01 14:57:50 claes Exp $ * Proview $Id: JopAxis.java,v 1.4 2005-11-04 11:42:05 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -114,10 +114,7 @@ public class JopAxis extends JComponent { ...@@ -114,10 +114,7 @@ public class JopAxis extends JComponent {
public void setRotate( double rotate) { this.rotate = rotate;} public void setRotate( double rotate) { this.rotate = rotate;}
public double getRotate() { return rotate;} public double getRotate() { return rotate;}
Shape[] shapes = null; Shape[] shapes = null;
GeneralPath[] curve = new GeneralPath[2];
Line2D.Float[] hLines; Line2D.Float[] hLines;
float[][] y_values = new float[2][];
float[][] x_values = new float[2][];
public void paint(Graphics g1) { public void paint(Graphics g1) {
super.paint(g1); super.paint(g1);
Graphics2D g = (Graphics2D) g1; Graphics2D g = (Graphics2D) g1;
...@@ -137,6 +134,8 @@ public class JopAxis extends JComponent { ...@@ -137,6 +134,8 @@ public class JopAxis extends JComponent {
float hTextPosX[]; float hTextPosX[];
float hTextPosY[]; float hTextPosY[];
String hText[]; String hText[];
float oldWidth;
float widthOrig = 0;
public void paintComponent(Graphics g1) { public void paintComponent(Graphics g1) {
int i, j; int i, j;
Graphics2D g = (Graphics2D) g1; Graphics2D g = (Graphics2D) g1;
...@@ -145,19 +144,27 @@ public class JopAxis extends JComponent { ...@@ -145,19 +144,27 @@ public class JopAxis extends JComponent {
AffineTransform save = g.getTransform(); AffineTransform save = g.getTransform();
float delta; float delta;
float value; float value;
boolean drawText = (minValue != maxValue);
g.setFont( font); if ( widthOrig == 0)
widthOrig = width;
if ( shapes == null) { //g.setFont( font);
g.setFont( font.deriveFont( width / widthOrig * font.getSize()));
if ( shapes == null || width != oldWidth) {
float lineLength = this.lineLength * width / widthOrig;
shapes = new Shape[1]; shapes = new Shape[1];
FontRenderContext frc = g.getFontRenderContext(); FontRenderContext frc = g.getFontRenderContext();
if ( lines > 0) if ( lines > 0)
{ {
hLines = new Line2D.Float[lines]; hLines = new Line2D.Float[lines];
if ( drawText) {
hText = new String[lines/valueQuotient + 1]; hText = new String[lines/valueQuotient + 1];
hTextPosY = new float[lines/valueQuotient + 1]; hTextPosY = new float[lines/valueQuotient + 1];
hTextPosX = new float[lines/valueQuotient + 1]; hTextPosX = new float[lines/valueQuotient + 1];
}
if ( 315 <= rotate || rotate < 45.0) { if ( 315 <= rotate || rotate < 45.0) {
shapes[0] = new Line2D.Float(width, 0F, width, height); shapes[0] = new Line2D.Float(width, 0F, width, height);
...@@ -169,7 +176,7 @@ public class JopAxis extends JComponent { ...@@ -169,7 +176,7 @@ public class JopAxis extends JComponent {
else else
hLines[i] = new Line2D.Float( width - 2F/3F*lineLength, hLines[i] = new Line2D.Float( width - 2F/3F*lineLength,
delta * i, width, delta * i); delta * i, width, delta * i);
if ( i % valueQuotient == 0) { if ( drawText && i % valueQuotient == 0) {
if ( maxValue > minValue) if ( maxValue > minValue)
value = maxValue - (maxValue - minValue) / ( lines - 1) * i; value = maxValue - (maxValue - minValue) / ( lines - 1) * i;
else else
...@@ -199,7 +206,7 @@ public class JopAxis extends JComponent { ...@@ -199,7 +206,7 @@ public class JopAxis extends JComponent {
else else
hLines[i] = new Line2D.Float( delta * i, hLines[i] = new Line2D.Float( delta * i,
height - 2F/3F*lineLength, delta * i, height); height - 2F/3F*lineLength, delta * i, height);
if ( i % valueQuotient == 0) { if ( drawText && i % valueQuotient == 0) {
if ( maxValue > minValue) if ( maxValue > minValue)
value = (maxValue - minValue) / ( lines - 1) * i; value = (maxValue - minValue) / ( lines - 1) * i;
else else
...@@ -230,7 +237,7 @@ public class JopAxis extends JComponent { ...@@ -230,7 +237,7 @@ public class JopAxis extends JComponent {
else else
hLines[i] = new Line2D.Float( 0F, hLines[i] = new Line2D.Float( 0F,
delta * i, 2F/3F*lineLength, delta * i); delta * i, 2F/3F*lineLength, delta * i);
if ( i % valueQuotient == 0) { if ( drawText && i % valueQuotient == 0) {
if ( maxValue > minValue) if ( maxValue > minValue)
value = (maxValue - minValue) / ( lines - 1) * i; value = (maxValue - minValue) / ( lines - 1) * i;
else else
...@@ -260,7 +267,7 @@ public class JopAxis extends JComponent { ...@@ -260,7 +267,7 @@ public class JopAxis extends JComponent {
else else
hLines[i] = new Line2D.Float( delta * i, hLines[i] = new Line2D.Float( delta * i,
0F , delta * i, 2F/3F*lineLength); 0F , delta * i, 2F/3F*lineLength);
if ( i % valueQuotient == 0) { if ( drawText && i % valueQuotient == 0) {
if ( maxValue > minValue) if ( maxValue > minValue)
value = maxValue - (maxValue - minValue) / ( lines - 1) * i; value = maxValue - (maxValue - minValue) / ( lines - 1) * i;
else else
...@@ -307,6 +314,7 @@ public class JopAxis extends JComponent { ...@@ -307,6 +314,7 @@ public class JopAxis extends JComponent {
g.draw( shapes[0]); g.draw( shapes[0]);
for ( i = 0; i < lines; i++) for ( i = 0; i < lines; i++)
g.draw( hLines[i]); g.draw( hLines[i]);
if ( drawText) {
for ( i = 0; i < lines; i++) { for ( i = 0; i < lines; i++) {
if ( i % valueQuotient == 0) { if ( i % valueQuotient == 0) {
g.drawString( hText[i/valueQuotient], hTextPosX[i/valueQuotient], g.drawString( hText[i/valueQuotient], hTextPosX[i/valueQuotient],
...@@ -314,6 +322,8 @@ public class JopAxis extends JComponent { ...@@ -314,6 +322,8 @@ public class JopAxis extends JComponent {
} }
} }
} }
oldWidth = width;
}
public Dimension getPreferredSize() { return size;} public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;} public Dimension getMinimumSize() { return size;}
float minValue = 0; float minValue = 0;
......
/* /*
* Proview $Id: GeDynMove.java,v 1.4 2005-09-01 14:57:50 claes Exp $ * Proview $Id: GeDynMove.java,v 1.5 2005-11-04 11:41:52 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -52,8 +52,11 @@ public String moveYAttribute; ...@@ -52,8 +52,11 @@ public String moveYAttribute;
public double yOrig; public double yOrig;
public double wOrig; public double wOrig;
public double hOrig; public double hOrig;
public double wRootOrig;
public double wRootOld;
public double xScale = 1; public double xScale = 1;
public double yScale = 1; public double yScale = 1;
JRootPane rootpane;
boolean firstScan = true; boolean firstScan = true;
public GeDynMove( GeDyn dyn, String moveXAttribute, String moveYAttribute, public GeDynMove( GeDyn dyn, String moveXAttribute, String moveYAttribute,
...@@ -135,10 +138,15 @@ public String moveYAttribute; ...@@ -135,10 +138,15 @@ public String moveYAttribute;
Dimension size = ((JComponent)dyn.comp).getSize(); Dimension size = ((JComponent)dyn.comp).getSize();
wOrig= (double) size.width; wOrig= (double) size.width;
hOrig= (double) size.height; hOrig= (double) size.height;
rootpane = ((JComponent)dyn.comp).getRootPane();
wRootOrig = (double) rootpane.getWidth();
} }
double wRoot = (double) rootpane.getWidth();
if ( attrMoveXFound || attrMoveYFound) { if ( attrMoveXFound || attrMoveYFound) {
// Move // Move
Point loc = ((JComponent)dyn.comp).getLocation(); Point loc = ((JComponent)dyn.comp).getLocation();
Dimension size = ((JComponent)dyn.comp).getSize(); Dimension size = ((JComponent)dyn.comp).getSize();
float valueMoveX = 0; float valueMoveX = 0;
...@@ -160,11 +168,11 @@ public String moveYAttribute; ...@@ -160,11 +168,11 @@ public String moveYAttribute;
} }
if ( repaintNow) { if ( repaintNow) {
if ( attrMoveXFound){ if ( attrMoveXFound){
double xRatio=(size.width/wOrig); double xRatio = wRoot/wRootOrig;
loc.x = (int) ((xOrig + (valueMoveX - xOffset) * factor) * xRatio); loc.x = (int) ((xOrig + (valueMoveX - xOffset) * factor) * xRatio);
} }
if ( attrMoveYFound){ if ( attrMoveYFound){
double yRatio=(size.height/hOrig); double yRatio = wRoot/wRootOrig;
loc.y = (int) ((yOrig + (valueMoveY - yOffset) * factor) * yRatio); loc.y = (int) ((yOrig + (valueMoveY - yOffset) * factor) * yRatio);
} }
((JComponent)dyn.comp).setLocation( loc); ((JComponent)dyn.comp).setLocation( loc);
...@@ -181,14 +189,14 @@ public String moveYAttribute; ...@@ -181,14 +189,14 @@ public String moveYAttribute;
if ( attrScaleXFound) { if ( attrScaleXFound) {
valueScaleX = (float) (dyn.en.gdh.getObjectRefInfoFloat( scaleXp) * scaleFactor); valueScaleX = (float) (dyn.en.gdh.getObjectRefInfoFloat( scaleXp) * scaleFactor);
if ( valueScaleX != scaleXOldValue || firstScan) { if ( valueScaleX != scaleXOldValue || firstScan || wRoot != wRootOld) {
repaintNow = true; repaintNow = true;
scaleXOldValue = valueScaleX; scaleXOldValue = valueScaleX;
} }
} }
if ( attrScaleYFound) { if ( attrScaleYFound) {
valueScaleY = (float) (dyn.en.gdh.getObjectRefInfoFloat( scaleYp) * scaleFactor); valueScaleY = (float) (dyn.en.gdh.getObjectRefInfoFloat( scaleYp) * scaleFactor);
if ( valueScaleY != scaleYOldValue || firstScan) { if ( valueScaleY != scaleYOldValue || firstScan || wRoot != wRootOld) {
repaintNow = true; repaintNow = true;
scaleYOldValue = valueScaleY; scaleYOldValue = valueScaleY;
} }
...@@ -196,19 +204,19 @@ public String moveYAttribute; ...@@ -196,19 +204,19 @@ public String moveYAttribute;
if ( repaintNow) { if ( repaintNow) {
Rectangle rect = ((JComponent)dyn.comp).getBounds(); Rectangle rect = ((JComponent)dyn.comp).getBounds();
if ( attrScaleXFound) { if ( attrScaleXFound) {
rect.width = (int) (xScale * valueScaleX); rect.width = (int) (xScale * valueScaleX * wRoot / wRootOrig);
if ( rect.width < 1) if ( rect.width < 1)
rect.width = 1; rect.width = 1;
} }
if ( attrScaleYFound) { if ( attrScaleYFound) {
rect.height = (int) (yScale * valueScaleY); rect.height = (int) (yScale * valueScaleY * wRoot / wRootOrig);
if ( rect.height < 1) if ( rect.height < 1)
rect.height = 1; rect.height = 1;
} }
((JComponent)dyn.comp).setBounds( rect); ((JComponent)dyn.comp).setBounds( rect);
} }
} }
wRootOld = wRoot;
if ( firstScan) if ( firstScan)
firstScan = false; firstScan = false;
} }
......
/* /*
* Proview $Id: JopAxis.java,v 1.3 2005-09-01 14:57:50 claes Exp $ * Proview $Id: JopAxis.java,v 1.4 2005-11-04 11:42:05 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -114,10 +114,7 @@ public class JopAxis extends JComponent { ...@@ -114,10 +114,7 @@ public class JopAxis extends JComponent {
public void setRotate( double rotate) { this.rotate = rotate;} public void setRotate( double rotate) { this.rotate = rotate;}
public double getRotate() { return rotate;} public double getRotate() { return rotate;}
Shape[] shapes = null; Shape[] shapes = null;
GeneralPath[] curve = new GeneralPath[2];
Line2D.Float[] hLines; Line2D.Float[] hLines;
float[][] y_values = new float[2][];
float[][] x_values = new float[2][];
public void paint(Graphics g1) { public void paint(Graphics g1) {
super.paint(g1); super.paint(g1);
Graphics2D g = (Graphics2D) g1; Graphics2D g = (Graphics2D) g1;
...@@ -137,6 +134,8 @@ public class JopAxis extends JComponent { ...@@ -137,6 +134,8 @@ public class JopAxis extends JComponent {
float hTextPosX[]; float hTextPosX[];
float hTextPosY[]; float hTextPosY[];
String hText[]; String hText[];
float oldWidth;
float widthOrig = 0;
public void paintComponent(Graphics g1) { public void paintComponent(Graphics g1) {
int i, j; int i, j;
Graphics2D g = (Graphics2D) g1; Graphics2D g = (Graphics2D) g1;
...@@ -145,19 +144,27 @@ public class JopAxis extends JComponent { ...@@ -145,19 +144,27 @@ public class JopAxis extends JComponent {
AffineTransform save = g.getTransform(); AffineTransform save = g.getTransform();
float delta; float delta;
float value; float value;
boolean drawText = (minValue != maxValue);
g.setFont( font); if ( widthOrig == 0)
widthOrig = width;
if ( shapes == null) { //g.setFont( font);
g.setFont( font.deriveFont( width / widthOrig * font.getSize()));
if ( shapes == null || width != oldWidth) {
float lineLength = this.lineLength * width / widthOrig;
shapes = new Shape[1]; shapes = new Shape[1];
FontRenderContext frc = g.getFontRenderContext(); FontRenderContext frc = g.getFontRenderContext();
if ( lines > 0) if ( lines > 0)
{ {
hLines = new Line2D.Float[lines]; hLines = new Line2D.Float[lines];
if ( drawText) {
hText = new String[lines/valueQuotient + 1]; hText = new String[lines/valueQuotient + 1];
hTextPosY = new float[lines/valueQuotient + 1]; hTextPosY = new float[lines/valueQuotient + 1];
hTextPosX = new float[lines/valueQuotient + 1]; hTextPosX = new float[lines/valueQuotient + 1];
}
if ( 315 <= rotate || rotate < 45.0) { if ( 315 <= rotate || rotate < 45.0) {
shapes[0] = new Line2D.Float(width, 0F, width, height); shapes[0] = new Line2D.Float(width, 0F, width, height);
...@@ -169,7 +176,7 @@ public class JopAxis extends JComponent { ...@@ -169,7 +176,7 @@ public class JopAxis extends JComponent {
else else
hLines[i] = new Line2D.Float( width - 2F/3F*lineLength, hLines[i] = new Line2D.Float( width - 2F/3F*lineLength,
delta * i, width, delta * i); delta * i, width, delta * i);
if ( i % valueQuotient == 0) { if ( drawText && i % valueQuotient == 0) {
if ( maxValue > minValue) if ( maxValue > minValue)
value = maxValue - (maxValue - minValue) / ( lines - 1) * i; value = maxValue - (maxValue - minValue) / ( lines - 1) * i;
else else
...@@ -199,7 +206,7 @@ public class JopAxis extends JComponent { ...@@ -199,7 +206,7 @@ public class JopAxis extends JComponent {
else else
hLines[i] = new Line2D.Float( delta * i, hLines[i] = new Line2D.Float( delta * i,
height - 2F/3F*lineLength, delta * i, height); height - 2F/3F*lineLength, delta * i, height);
if ( i % valueQuotient == 0) { if ( drawText && i % valueQuotient == 0) {
if ( maxValue > minValue) if ( maxValue > minValue)
value = (maxValue - minValue) / ( lines - 1) * i; value = (maxValue - minValue) / ( lines - 1) * i;
else else
...@@ -230,7 +237,7 @@ public class JopAxis extends JComponent { ...@@ -230,7 +237,7 @@ public class JopAxis extends JComponent {
else else
hLines[i] = new Line2D.Float( 0F, hLines[i] = new Line2D.Float( 0F,
delta * i, 2F/3F*lineLength, delta * i); delta * i, 2F/3F*lineLength, delta * i);
if ( i % valueQuotient == 0) { if ( drawText && i % valueQuotient == 0) {
if ( maxValue > minValue) if ( maxValue > minValue)
value = (maxValue - minValue) / ( lines - 1) * i; value = (maxValue - minValue) / ( lines - 1) * i;
else else
...@@ -260,7 +267,7 @@ public class JopAxis extends JComponent { ...@@ -260,7 +267,7 @@ public class JopAxis extends JComponent {
else else
hLines[i] = new Line2D.Float( delta * i, hLines[i] = new Line2D.Float( delta * i,
0F , delta * i, 2F/3F*lineLength); 0F , delta * i, 2F/3F*lineLength);
if ( i % valueQuotient == 0) { if ( drawText && i % valueQuotient == 0) {
if ( maxValue > minValue) if ( maxValue > minValue)
value = maxValue - (maxValue - minValue) / ( lines - 1) * i; value = maxValue - (maxValue - minValue) / ( lines - 1) * i;
else else
...@@ -307,6 +314,7 @@ public class JopAxis extends JComponent { ...@@ -307,6 +314,7 @@ public class JopAxis extends JComponent {
g.draw( shapes[0]); g.draw( shapes[0]);
for ( i = 0; i < lines; i++) for ( i = 0; i < lines; i++)
g.draw( hLines[i]); g.draw( hLines[i]);
if ( drawText) {
for ( i = 0; i < lines; i++) { for ( i = 0; i < lines; i++) {
if ( i % valueQuotient == 0) { if ( i % valueQuotient == 0) {
g.drawString( hText[i/valueQuotient], hTextPosX[i/valueQuotient], g.drawString( hText[i/valueQuotient], hTextPosX[i/valueQuotient],
...@@ -314,6 +322,8 @@ public class JopAxis extends JComponent { ...@@ -314,6 +322,8 @@ public class JopAxis extends JComponent {
} }
} }
} }
oldWidth = width;
}
public Dimension getPreferredSize() { return size;} public Dimension getPreferredSize() { return size;}
public Dimension getMinimumSize() { return size;} public Dimension getMinimumSize() { return size;}
float minValue = 0; float minValue = 0;
......
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