summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Charts
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Charts')
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartHelper.java4
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartInCalc.java28
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartInDraw.java12
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartInWriter.java2
-rw-r--r--odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java8
5 files changed, 27 insertions, 27 deletions
diff --git a/odk/examples/DevelopersGuide/Charts/ChartHelper.java b/odk/examples/DevelopersGuide/Charts/ChartHelper.java
index 7208c58b30f5..90dccd153800 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartHelper.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartHelper.java
@@ -113,9 +113,9 @@ public class ChartHelper
aAny = new Any(new Type(Short.class),
new Short(com.sun.star.text.HoriOrientation.NONE));
xPropSet.setPropertyValue("HoriOrient", aAny );
- aAny = new Any(new Type(Integer.class), new Integer(aUpperLeft.Y));
+ aAny = new Any(new Type(Integer.class), Integer.valueOf(aUpperLeft.Y));
xPropSet.setPropertyValue("VertOrientPosition", aAny );
- aAny = new Any(new Type(Integer.class), new Integer(aUpperLeft.X));
+ aAny = new Any(new Type(Integer.class), Integer.valueOf(aUpperLeft.X));
xPropSet.setPropertyValue("HoriOrientPosition", aAny );
// retrieve the chart document as model of the OLE shape
diff --git a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
index ee493144f98a..76791e3bb9f9 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
@@ -176,7 +176,7 @@ public class ChartInCalc
// change attributes for all series
// set line width to 0.5mm
- aDiaProp.setPropertyValue( "LineWidth", new Integer( 50 ));
+ aDiaProp.setPropertyValue( "LineWidth", Integer.valueOf( 50 ));
}
}
@@ -193,7 +193,7 @@ public class ChartInCalc
for( int i = 1; i <= 3; i++ )
{
aSeriesProp = maDiagram.getDataRowProperties( i );
- aSeriesProp.setPropertyValue( "LineColor", new Integer(
+ aSeriesProp.setPropertyValue( "LineColor", Integer.valueOf(
0x400000 * i +
0x005000 * i +
0x0000ff - 0x40 * i ));
@@ -209,12 +209,12 @@ public class ChartInCalc
}
// set a bitmap via URL as symbol for the first series
- aSeriesProp.setPropertyValue( "SymbolType", new Integer( ChartSymbolType.BITMAPURL ));
+ aSeriesProp.setPropertyValue( "SymbolType", Integer.valueOf( ChartSymbolType.BITMAPURL ));
aSeriesProp.setPropertyValue( "SymbolBitmapURL", sUrl.toString() );
}
else
{
- aSeriesProp.setPropertyValue( "SymbolType", new Integer( ChartSymbolType.SYMBOL1 ));
+ aSeriesProp.setPropertyValue( "SymbolType", Integer.valueOf( ChartSymbolType.SYMBOL1 ));
aSeriesProp.setPropertyValue( "SymbolSize", new Size( 250, 250 ));
}
}
@@ -254,13 +254,13 @@ public class ChartInCalc
XPropertySet aPointProp = maDiagram.getDataPointProperties( 0, 1 );
// set a different, larger symbol
- aPointProp.setPropertyValue( "SymbolType", new Integer( ChartSymbolType.SYMBOL6 ));
+ aPointProp.setPropertyValue( "SymbolType", Integer.valueOf( ChartSymbolType.SYMBOL6 ));
aPointProp.setPropertyValue( "SymbolSize", new Size( 600, 600 ));
// add a label text with bold font, bordeaux red 14pt
- aPointProp.setPropertyValue( "DataCaption", new Integer( ChartDataCaption.VALUE ));
+ aPointProp.setPropertyValue( "DataCaption", Integer.valueOf( ChartDataCaption.VALUE ));
aPointProp.setPropertyValue( "CharHeight", new Float( 14.0 ));
- aPointProp.setPropertyValue( "CharColor", new Integer( 0x993366 ));
+ aPointProp.setPropertyValue( "CharColor", Integer.valueOf( 0x993366 ));
aPointProp.setPropertyValue( "CharWeight", new Float( FontWeight.BOLD ));
}
catch( IndexOutOfBoundsException ex )
@@ -281,7 +281,7 @@ public class ChartInCalc
{
// change background color of entire chart
aArea.setPropertyValue( "FillStyle", FillStyle.SOLID );
- aArea.setPropertyValue( "FillColor", new Integer( 0xeeeeee ));
+ aArea.setPropertyValue( "FillColor", Integer.valueOf( 0xeeeeee ));
}
}
@@ -296,7 +296,7 @@ public class ChartInCalc
// change background color of area
aWall.setPropertyValue( "FillStyle", FillStyle.SOLID );
- aWall.setPropertyValue( "FillColor", new Integer( 0xcccccc ));
+ aWall.setPropertyValue( "FillColor", Integer.valueOf( 0xcccccc ));
}
@@ -346,8 +346,8 @@ public class ChartInCalc
XAxisXSupplier.class, maDiagram ).getXAxis();
if( aAxisProp != null )
{
- aAxisProp.setPropertyValue( "Max", new Integer( 24 ));
- aAxisProp.setPropertyValue( "StepMain", new Integer( 3 ));
+ aAxisProp.setPropertyValue( "Max", Integer.valueOf( 24 ));
+ aAxisProp.setPropertyValue( "StepMain", Integer.valueOf( 3 ));
}
// change number format for y axis
@@ -370,7 +370,7 @@ public class ChartInCalc
if( aAxisProp != null )
{
- aAxisProp.setPropertyValue( "NumberFormat", new Integer( nNewNumberFormat ));
+ aAxisProp.setPropertyValue( "NumberFormat", Integer.valueOf( nNewNumberFormat ));
}
}
@@ -396,10 +396,10 @@ public class ChartInCalc
aDash.DashLen = 200;
aDash.Distance = 100;
- aGridProp.setPropertyValue( "LineColor", new Integer( 0x999999 ));
+ aGridProp.setPropertyValue( "LineColor", Integer.valueOf( 0x999999 ));
aGridProp.setPropertyValue( "LineStyle", LineStyle.DASH );
aGridProp.setPropertyValue( "LineDash", aDash );
- aGridProp.setPropertyValue( "LineWidth", new Integer( 30 ));
+ aGridProp.setPropertyValue( "LineWidth", Integer.valueOf( 30 ));
}
}
diff --git a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java
index ee9e05d49d79..19e4855461e5 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java
@@ -143,7 +143,7 @@ public class ChartInDraw
{
// change background color of entire chart
aArea.setPropertyValue( "FillStyle", FillStyle.SOLID );
- aArea.setPropertyValue( "FillColor", new Integer( 0xeeeeee ));
+ aArea.setPropertyValue( "FillColor", Integer.valueOf( 0xeeeeee ));
}
}
@@ -157,7 +157,7 @@ public class ChartInDraw
X3DDisplay.class, maDiagram ).getWall();
// change background color of area
- aWall.setPropertyValue( "FillColor", new Integer( 0xcccccc ));
+ aWall.setPropertyValue( "FillColor", Integer.valueOf( 0xcccccc ));
aWall.setPropertyValue( "FillStyle", FillStyle.SOLID );
}
@@ -193,7 +193,7 @@ public class ChartInDraw
aLegendProp.setPropertyValue( "Alignment", ChartLegendPosition.LEFT );
aLegendProp.setPropertyValue( "FillStyle", FillStyle.SOLID );
- aLegendProp.setPropertyValue( "FillColor", new Integer( 0xeeddee ));
+ aLegendProp.setPropertyValue( "FillColor", Integer.valueOf( 0xeeddee ));
}
@@ -208,12 +208,12 @@ public class ChartInDraw
aDiaProp.setPropertyValue( "Dim3D", aTrue );
aDiaProp.setPropertyValue( "Deep", aTrue );
// from Chart3DBarProperties:
- aDiaProp.setPropertyValue( "SolidType", new Integer( ChartSolidType.CYLINDER ));
+ aDiaProp.setPropertyValue( "SolidType", Integer.valueOf( ChartSolidType.CYLINDER ));
// change floor color to Magenta6
XPropertySet aFloor = UnoRuntime.queryInterface(
X3DDisplay.class, maDiagram ).getFloor();
- aFloor.setPropertyValue( "FillColor", new Integer( 0x6b2394 ));
+ aFloor.setPropertyValue( "FillColor", Integer.valueOf( 0x6b2394 ));
// apply changes to get a 3d scene
unlockControllers();
@@ -268,7 +268,7 @@ public class ChartInDraw
// in a chart by default only the second (non-specular) light source is switched on
// light source 1 is a specular light source
- aDiaProp.setPropertyValue( "D3DSceneLightColor1", new Integer( 0xff3333 ));
+ aDiaProp.setPropertyValue( "D3DSceneLightColor1", Integer.valueOf( 0xff3333 ));
// set direction
com.sun.star.drawing.Direction3D aDirection = new com.sun.star.drawing.Direction3D();
diff --git a/odk/examples/DevelopersGuide/Charts/ChartInWriter.java b/odk/examples/DevelopersGuide/Charts/ChartInWriter.java
index d9585c31ff6c..124616db46be 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartInWriter.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartInWriter.java
@@ -146,7 +146,7 @@ public class ChartInWriter
X3DDisplay.class, maDiagram ).getWall();
// change background color of area
- aWall.setPropertyValue( "FillColor", new Integer( 0xeecc99 ));
+ aWall.setPropertyValue( "FillColor", Integer.valueOf( 0xeecc99 ));
aWall.setPropertyValue( "FillStyle", FillStyle.SOLID );
}
diff --git a/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java b/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java
index 1af68e7cf570..8d15ff9d95d5 100644
--- a/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java
+++ b/odk/examples/DevelopersGuide/Charts/JavaSampleChartAddIn.java
@@ -167,8 +167,8 @@ public class JavaSampleChartAddIn extends WeakBase implements
XPropertySet aShapeProp = UnoRuntime.queryInterface(
XPropertySet.class, maTopLine );
- aShapeProp.setPropertyValue( "LineColor", new Integer( 0xe01010 ));
- aShapeProp.setPropertyValue( "LineWidth", new Integer( 50 ));
+ aShapeProp.setPropertyValue( "LineColor", Integer.valueOf( 0xe01010 ));
+ aShapeProp.setPropertyValue( "LineWidth", Integer.valueOf( 50 ));
aShapeProp.setPropertyValue( "Name", "top" );
}
}
@@ -190,8 +190,8 @@ public class JavaSampleChartAddIn extends WeakBase implements
XPropertySet aShapeProp = UnoRuntime.queryInterface(
XPropertySet.class, maBottomLine );
- aShapeProp.setPropertyValue( "LineColor", new Integer( 0x10e010 ));
- aShapeProp.setPropertyValue( "LineWidth", new Integer( 50 ));
+ aShapeProp.setPropertyValue( "LineColor", Integer.valueOf( 0x10e010 ));
+ aShapeProp.setPropertyValue( "LineWidth", Integer.valueOf( 50 ));
aShapeProp.setPropertyValue( "Name", "bottom" );
}
}