Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7844f1e0
Kaydet (Commit)
7844f1e0
authored
May 31, 2010
tarafından
Ingrid Halama
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
chart47: #i83866# reset to 2D to speed up following tests
üst
5cbe5065
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
_Chart3DBarProperties.java
qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java
+34
-0
No files found.
qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java
Dosyayı görüntüle @
7844f1e0
...
...
@@ -93,6 +93,40 @@ public class _Chart3DBarProperties extends MultiPropertyTest {
throw
new
StatusException
(
"Couldn't change Diagram to 3D"
,
e
);
}
}
/**
* Sets the diagram back to 2D as 2D rendering is much faster for the following tests.
*/
protected
void
after
()
{
log
.
println
(
"Setting Diagram back to 2D"
);
XChartDocument
doc
=
(
XChartDocument
)
tEnv
.
getObjRelation
(
"CHARTDOC"
);
if
(
doc
==
null
)
throw
new
StatusException
(
Status
.
failed
(
"Relation 'CHARTDOC' not found"
));
log
.
println
(
"Change Diagram to 3D"
);
oObj
=
(
XPropertySet
)
UnoRuntime
.
queryInterface
(
XPropertySet
.
class
,
doc
.
getDiagram
()
);
try
{
oObj
.
setPropertyValue
(
"Dim3D"
,
new
Boolean
(
false
));
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
e
)
{
log
.
println
(
"Couldn't change Diagram back to 2D"
);
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't change Diagram back to 2D"
,
e
);
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
e
)
{
log
.
println
(
"Couldn't change Diagram back to 2D"
);
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't change Diagram back to 2D"
,
e
);
}
catch
(
com
.
sun
.
star
.
beans
.
PropertyVetoException
e
)
{
log
.
println
(
"Couldn't change Diagram back to 2D"
);
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't change Diagram back to 2D"
,
e
);
}
catch
(
com
.
sun
.
star
.
beans
.
UnknownPropertyException
e
)
{
log
.
println
(
"Couldn't change Diagram back to 2D"
);
e
.
printStackTrace
(
log
);
throw
new
StatusException
(
"Couldn't change Diagram back to 2D"
,
e
);
}
}
}
// finish class _Chart3DBarProperties
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment