Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
LineChart実際に2つの軸を保持するを取得しました。xAxis とティックの境界を実際に操作する必要がありますが、軸を としてNumberAxis取得するAxisことはできません。
LineChart
NumberAxis
Axis
どうすればこれを解決できますか?
@uluk-biy が指摘しているように、が次のようAxisに作成されている場合、ここでアップキャストを安全に使用できNumericAxisます。
NumericAxis
NumericAxis numericAxis = (NumericAxis) axis;